#include <expandlib-cmd-unknownvars.h>
Inherits expander::expandcmd< StringType >< StringType >.
Inheritance diagram for expander::expcmd_unknownvars< StringType >:
Public Methods | |
expcmd_unknownvars (expandable< StringType > *const eobj) | |
The constructor. | |
virtual void | operator() (StringType &dest, const FParamVectorType ¶ms, const FVarMapType &vars, ExpandResultsType &results) const |
Appends the outcome of the command to 'dest'. | |
void | Register () |
Registers this command with 'expobj'. | |
Protected Types | |
typedef ::std::vector< StringType > | FParamVectorType |
The type used for the parameter vectors (MSVC wouldn't allow me to use template arguments in these typedefs, or I don't know how it should be done). | |
typedef ::std::map< StringType, ::expander::expandvartype< StringType > * > | FVarMapType |
The type used for the map of variables (MSVC wouldn't allow me to use template arguments in these typedefs, or I don't know how it should be done). | |
typedef ::std::map< StringType, ::expander::expandcmd< StringType > * > | FCmdMapType |
The type used for the map of commands (MSVC wouldn't allow me to use template arguments in these typedefs, or I don't know how it should be done). | |
Protected Attributes | |
expandable< StringType > *const | expobj |
A const pointer to the expander::expandable object this command belongs to. | |
const StringType | cmdname |
A const string containing the name of this command. |
Syntax:
#unknownvars(stringwithvars) Returns the number of unknown vars in the string
Definition at line 48 of file expandlib-cmd-unknownvars.h.
|
The type used for the map of commands (MSVC wouldn't allow me to use template arguments in these typedefs, or I don't know how it should be done).
Definition at line 68 of file expandlib-cmd.h. |
|
The type used for the parameter vectors (MSVC wouldn't allow me to use template arguments in these typedefs, or I don't know how it should be done).
Definition at line 66 of file expandlib-cmd.h. |
|
The type used for the map of variables (MSVC wouldn't allow me to use template arguments in these typedefs, or I don't know how it should be done).
Definition at line 67 of file expandlib-cmd.h. |
|
The constructor. This constructor gets a pointer to an expander::expandable object and passes that, along with the name of the command, to the expander::expandcmd constructor. Definition at line 55 of file expandlib-cmd-unknownvars.h. |
|
Appends the outcome of the command to 'dest'. The () operator of a command will process the params (using the vars and keeping statistics in results) and APPEND the outcome to dest. Implements expander::expandcmd< StringType >. Definition at line 57 of file expandlib-cmd-unknownvars.h. References expander::expandcmd< StringType >::expobj, and expander::expandresults::MissedVars. |
|
Registers this command with 'expobj'. Register adds itself to the expandable::cmdmap in expobj. But since there are no expandcmd instances (it's an abstract class), this will only be done by derived classes (which fill cmdname and expobj through the constructor). Definition at line 96 of file expandlib-cmd.h. References expander::expandable< StringType >::cmdmap. |
|
A const string containing the name of this command. This string is used by expandcmd::Register and initialized by the constructor, which is called by the constructor of a derived class (which passes its name to this class, so expandcmd::cmdname contains the right name. Definition at line 77 of file expandlib-cmd.h. |
|