KDevelop API Documentation

Macro Class Reference

#include <driver.h>

Collaboration diagram for Macro:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QString Argument

Public Member Functions

 Macro (bool hasArguments=false)
 Macro (const QString &n, const QString &b)
 Macro (const Macro &source)
Macrooperator= (const Macro &source)
bool operator== (const Macro &source) const
QString name () const
void setName (const QString &name)
QString fileName () const
void setFileName (const QString &fileName)
QString body () const
void setBody (const QString &body)
bool hasArguments () const
void setHasArguments (bool hasArguments)
QValueList< ArgumentargumentList () const
void clearArgumentList ()
void addArgument (const Argument &argument)
void addArgumentList (const QValueList< Argument > &arguments)

Private Attributes

QString m_name
QString m_fileName
QString m_body
bool m_hasArguments
QValueList< Argumentm_argumentList

Member Typedef Documentation

typedef QString Macro::Argument
 

Definition at line 89 of file driver.h.

Referenced by Lexer::processDefine().


Constructor & Destructor Documentation

Macro::Macro bool  hasArguments = false  )  [inline]
 

Definition at line 92 of file driver.h.

Macro::Macro const QString n,
const QString b
[inline]
 

Definition at line 93 of file driver.h.

Macro::Macro const Macro source  )  [inline]
 

Definition at line 95 of file driver.h.


Member Function Documentation

void Macro::addArgument const Argument argument  )  [inline]
 

Definition at line 136 of file driver.h.

Referenced by Lexer::processDefine().

void Macro::addArgumentList const QValueList< Argument > &  arguments  )  [inline]
 

Definition at line 137 of file driver.h.

QValueList<Argument> Macro::argumentList  )  const [inline]
 

Definition at line 133 of file driver.h.

Referenced by Lexer::nextToken().

QString Macro::body  )  const [inline]
 

Definition at line 128 of file driver.h.

Referenced by Lexer::nextToken().

void Macro::clearArgumentList  )  [inline]
 

Definition at line 135 of file driver.h.

QString Macro::fileName  )  const [inline]
 

Definition at line 125 of file driver.h.

Referenced by Driver::removeAllMacrosInFile().

bool Macro::hasArguments  )  const [inline]
 

Definition at line 131 of file driver.h.

Referenced by Lexer::nextToken().

QString Macro::name  )  const [inline]
 

Definition at line 122 of file driver.h.

Referenced by Driver::addMacro(), KDevDriver::addMacro(), and Driver::removeAllMacrosInFile().

Macro& Macro::operator= const Macro source  )  [inline]
 

Definition at line 102 of file driver.h.

References m_argumentList, m_body, m_fileName, m_hasArguments, and m_name.

bool Macro::operator== const Macro source  )  const [inline]
 

Definition at line 112 of file driver.h.

References m_argumentList, m_body, m_fileName, m_hasArguments, and m_name.

void Macro::setBody const QString body  )  [inline]
 

Definition at line 129 of file driver.h.

Referenced by Lexer::processDefine().

void Macro::setFileName const QString fileName  )  [inline]
 

Definition at line 126 of file driver.h.

Referenced by Lexer::processDefine().

void Macro::setHasArguments bool  hasArguments  )  [inline]
 

Definition at line 132 of file driver.h.

Referenced by Lexer::processDefine().

void Macro::setName const QString name  )  [inline]
 

Definition at line 123 of file driver.h.

Referenced by Lexer::processDefine().


Member Data Documentation

QValueList<Argument> Macro::m_argumentList [private]
 

Definition at line 144 of file driver.h.

Referenced by operator=(), and operator==().

QString Macro::m_body [private]
 

Definition at line 142 of file driver.h.

Referenced by operator=(), and operator==().

QString Macro::m_fileName [private]
 

Definition at line 141 of file driver.h.

Referenced by operator=(), and operator==().

bool Macro::m_hasArguments [private]
 

Definition at line 143 of file driver.h.

Referenced by operator=(), and operator==().

QString Macro::m_name [private]
 

Definition at line 140 of file driver.h.

Referenced by operator=(), and operator==().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:44:12 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003