Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Macro Class Reference

class handling the macro tag. More...

#include <macro.h>

Inheritance diagram for Macro::

Tag List of all members.

Public Methods

 Macro (Line &line)
 Macro ()
bool operator! () const
 class not a macro? More...

bool is_definition () const
 is a definition? More...

bool is_call () const
 is a call? More...

std::string get_name () const
 returns the name of the macro. More...

std::string get_text () const
 returns the text of the macro. More...

std::string get_text (Macro def_macro)
 returns the text after parameter parsing from the definition macro. More...

std::string get_call () const
 returns the to unsing macro. More...

bool is_hard () const
 is a hard_macro? More...

bool is_soft () const
 is a soft_macro? More...

std::string get_tag () const
 returns the whole tag. More...

bool has_parameters () const
int get_level ()

Private Types

typedef std::list< PMapparameter_list
typedef parameter_list::iterator parameter_list_it

Private Attributes

std::string name
std::string text
std::string call
bool hard
bool definition
bool is_valid_tag
parameter_list parameters
bool par

Detailed Description

class handling the macro tag.

definition of the macro: <macro name="the_macro" text="the_text"> and optional you can add the "hard" switch. calling the macro: <macro the_macro>


Member Typedef Documentation

typedef std::list<PMap> Macro::parameter_list [private]
 

typedef parameter_list::iterator Macro::parameter_list_it [private]
 


Constructor & Destructor Documentation

Macro::Macro Line   line
 

Macro::Macro   [inline]
 


Member Function Documentation

std::string Macro::get_call   const [inline]
 

returns the to unsing macro.

if the macro is a definition "" will be returned

int Macro::get_level   [inline]
 

std::string Macro::get_name   const [inline]
 

returns the name of the macro.

if the macro is a call "" will be returned

std::string Macro::get_tag   const [inline]
 

returns the whole tag.

Reimplemented from Tag.

std::string Macro::get_text Macro    def_macro
 

returns the text after parameter parsing from the definition macro.

std::string Macro::get_text   const [inline]
 

returns the text of the macro.

if the macro is a call "" will be returned

bool Macro::has_parameters   const [inline]
 

bool Macro::is_call   const [inline]
 

is a call?

bool Macro::is_definition   const [inline]
 

is a definition?

bool Macro::is_hard   const [inline]
 

is a hard_macro?

bool Macro::is_soft   const [inline]
 

is a soft_macro?

bool Macro::operator!   const [inline]
 

class not a macro?

Reimplemented from Tag.


Member Data Documentation

std::string Macro::call [private]
 

bool Macro::definition [private]
 

bool Macro::hard [private]
 

bool Macro::is_valid_tag [private]
 

Reimplemented from Tag.

std::string Macro::name [private]
 

bool Macro::par [private]
 

parameter_list Macro::parameters [private]
 

std::string Macro::text [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:19:54 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001