#include <macro.h>
Inheritance diagram for Macro::
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< PMap > | parameter_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 |
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>
|
|
|
|
|
|
|
|
|
returns the to unsing macro. if the macro is a definition "" will be returned |
|
|
|
returns the name of the macro. if the macro is a call "" will be returned |
|
returns the whole tag.
Reimplemented from Tag. |
|
returns the text after parameter parsing from the definition macro.
|
|
returns the text of the macro. if the macro is a call "" will be returned |
|
|
|
is a call?
|
|
is a definition?
|
|
is a hard_macro?
|
|
is a soft_macro?
|
|
class not a macro?
Reimplemented from Tag. |
|
|
|
|
|
|
|
Reimplemented from Tag. |
|
|
|
|
|
|
|
|