#include <expandlib-vartype.h>
Inherited by expander::expvartype_bool< StringType, DefaultValue >, expander::expvartype_date< StringType >, expander::expvartype_list< StringType, ItemType >, expander::expvartype_numeric< StringType, NumType, NumTraits >, expander::expvartype_text< StringType >, and expander::expvartype_time< StringType, NotimeMSValue >.
Inheritance diagram for expander::expandvartype< StringType >:
Public Methods | |
virtual void | AppendValue (StringType &dest) const=0 |
Appends the value of the var to a string. | |
virtual void | AppendValue (StringType &dest, const FParamVectorType ¶ms, const FVarMapType &vars, ExpandResultsType &results) const=0 |
Appends the value of the var to a string, using params and rvars, putting any expanding results into results. | |
virtual void | SetValue (const StringType &s)=0 |
Sets this variable to the string specified. | |
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). |
This is the class all vartypes derive from.
Definition at line 50 of file expandlib-vartype.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 52 of file expandlib-vartype.h. Referenced by expander::expvartype_list< StringType, ItemType >::AppendValue(). |
|
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 53 of file expandlib-vartype.h. |
|
Appends the value of the var to a string, using params and rvars, putting any expanding results into results. This is called directly from 'expandable<StringType>::expand', when a variable with parameters has been found. Implemented in expander::expvartype_bool< StringType, DefaultValue >, expander::expvartype_date< StringType >, expander::expvartype_list< StringType, ItemType >, expander::expvartype_numeric< StringType, NumType, NumTraits >, expander::expvartype_text< StringType >, and expander::expvartype_time< StringType, NotimeMSValue >. |
|
Appends the value of the var to a string. This is called by operator+=(StringType &s,::expander::expandvartype<StringType> *v), which is called by 'expandable<StringType>::expand' when a variable without parameters has been found. Implemented in expander::expvartype_bool< StringType, DefaultValue >, expander::expvartype_date< StringType >, expander::expvartype_list< StringType, ItemType >, expander::expvartype_numeric< StringType, NumType, NumTraits >, expander::expvartype_text< StringType >, and expander::expvartype_time< StringType, NotimeMSValue >. |
|
Sets this variable to the string specified. This isn't called from ExpandLib itself, but it can be used by other programs. Implemented in expander::expvartype_bool< StringType, DefaultValue >, expander::expvartype_date< StringType >, expander::expvartype_list< StringType, ItemType >, expander::expvartype_numeric< StringType, NumType, NumTraits >, expander::expvartype_text< StringType >, and expander::expvartype_time< StringType, NotimeMSValue >. |