template struct directive_base
is a base for specializations of template struct directive<Type>
More...
#include <directive.h>
|
static directive_type | get_type (std::string const &keyword) |
| Get the directive_type of a directive given a keyword.
|
|
template struct directive_base
is a base for specializations of template struct directive<Type>
Definition at line 54 of file directive.h.
Evaluate a directive.
- Parameters
-
keyword | The keyword indicating the directive type. |
chew | On entry, a chewer<parse_buffer> positioned to the offset in the associated parse_buffer from which to to scan. On return receives chew is positioned to the first offset not consumed. |
- Returns
- A
line_type
determined by evaluation denoting the action to be taken on this line.
Definition at line 65 of file directive.h.
Evaluate a directive.
- Parameters
-
type | The directive_type of the directive. |
chew | On entry, a chewer<parse_buffer> positioned to the offset in the associated parse_buffer from which to scan. On return chew is positioned to the first offset not consumed. |
- Returns
- A
line_type
determined by evaluation.
Evaluate an #ifdef
or #ifndef
directive.
- Parameters
-
type | The directive_type of the directive. |
chew | On entry, a chewer<parse_buffer> positioned to the offset in the associated parse_buffer from which to scan. On return chew is positioned to the first offset not consumed. |
- Returns
- A
line_type
determined by evaluation.
static void directive_base::report |
( |
std::string const & |
keyword, |
|
|
std::string const & |
arg |
|
) |
| |
|
staticprotected |
Report a directive.
- Parameters
-
keyword | The keyword indicating the directive type. |
arg | The body of the directive. |
static void directive_base::report |
( |
bool |
seen, |
|
|
std::string const & |
keyword, |
|
|
std::string const & |
arg |
|
) |
| |
|
staticprotected |
Report a directive.
- Parameters
-
seen | Has this directive already been seen? |
keyword | The keyword indicating the directive type. |
arg | The body of the directive. |
The member function reports the directive if it has not already been seen or if option --once-only
is not in effect.
The documentation for this struct was generated from the following file: