KDevelop API Documentation

Macro Class Reference

#include <driver.h>

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.

References hasArguments(), and m_hasArguments.

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

Definition at line 93 of file driver.h.

References m_body, m_hasArguments, and m_name.

Macro::Macro const Macro source  )  [inline]
 

Definition at line 95 of file driver.h.

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


Member Function Documentation

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

Definition at line 136 of file driver.h.

References addArgument(), and m_argumentList.

Referenced by addArgument(), and Lexer::processDefine().

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

Definition at line 137 of file driver.h.

References addArgumentList(), and m_argumentList.

Referenced by addArgumentList().

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

Definition at line 133 of file driver.h.

References m_argumentList.

Referenced by Lexer::nextToken().

QString Macro::body  )  const [inline]
 

Definition at line 128 of file driver.h.

References m_body.

Referenced by Lexer::nextToken().

void Macro::clearArgumentList  )  [inline]
 

Definition at line 135 of file driver.h.

References m_argumentList, and m_hasArguments.

QString Macro::fileName  )  const [inline]
 

Definition at line 125 of file driver.h.

References m_fileName.

Referenced by Driver::removeAllMacrosInFile().

bool Macro::hasArguments  )  const [inline]
 

Definition at line 131 of file driver.h.

References m_hasArguments.

Referenced by Macro(), and Lexer::nextToken().

QString Macro::name  )  const [inline]
 

Definition at line 122 of file driver.h.

References m_name.

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.

References m_body, and setBody().

Referenced by Lexer::processDefine(), and setBody().

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

Definition at line 126 of file driver.h.

References m_fileName, and setFileName().

Referenced by Lexer::processDefine(), and setFileName().

void Macro::setHasArguments bool  hasArguments  )  [inline]
 

Definition at line 132 of file driver.h.

References m_hasArguments, and setHasArguments().

Referenced by Lexer::processDefine(), and setHasArguments().

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

Definition at line 123 of file driver.h.

References m_name, and setName().

Referenced by Lexer::processDefine(), and setName().


Member Data Documentation

QValueList<Argument> Macro::m_argumentList [private]
 

Definition at line 144 of file driver.h.

Referenced by addArgument(), addArgumentList(), argumentList(), clearArgumentList(), Macro(), operator=(), and operator==().

QString Macro::m_body [private]
 

Definition at line 142 of file driver.h.

Referenced by body(), Macro(), operator=(), operator==(), and setBody().

QString Macro::m_fileName [private]
 

Definition at line 141 of file driver.h.

Referenced by fileName(), Macro(), operator=(), operator==(), and setFileName().

bool Macro::m_hasArguments [private]
 

Definition at line 143 of file driver.h.

Referenced by clearArgumentList(), hasArguments(), Macro(), operator=(), operator==(), and setHasArguments().

QString Macro::m_name [private]
 

Definition at line 140 of file driver.h.

Referenced by Macro(), name(), operator=(), operator==(), and setName().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003