#include <expandlib-vartype-date.h>
Inherits expander::expandvartype< StringType >< StringType >.
Inheritance diagram for expander::expvartype_date< StringType >:


Public Methods | |
| expvartype_date (int y=0, int m=0, int d=0) | |
| Constructor with a parameter of type bool, inits the value to H:M:S.MS.  | |
| expvartype_date (const _TCHAR *cs) | |
| Constructor with a C-style string as parameter, inits the value to 'cs' (converted).  | |
| expvartype_date (const StringType s) | |
| Constructor with a string as parameter, inits the value to 's' (converted).  | |
| virtual void | AppendValue (StringType &dest) const | 
| Appends the value of the var to a string.  | |
| virtual void | AppendValue (StringType &dest, const FParamVectorType ¶ms, const FVarMapType &vars, ExpandResultsType &results) const | 
| 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) | 
| Sets this variable to the string specified.  | |
| StringType | get_string () | 
| Returns date as a string.  | |
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).  | |
Protected Methods | |
| StringType | PadWithZeroes (const StringType &s, const unsigned int num) const | 
| Returns s, padded with zeroes from the left.  | |
| void | PadWithZeroesTo (StringType &d, const StringType &s, const unsigned int num) const | 
| Pads s from the left (with zeroes), result goes into d.  | |
Protected Attributes | |
| expander::expvartype_date::DateType | Date | 
| Used to hold the date.  | |
This class can be used in the program using ExpandLib for date variables.
Definition at line 49 of file expandlib-vartype-date.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.  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Constructor with a parameter of type bool, inits the value to H:M:S.MS. 
 Definition at line 94 of file expandlib-vartype-date.h.  | 
  
      
  | 
  ||||||||||
| 
 Constructor with a C-style string as parameter, inits the value to 'cs' (converted). 
 Definition at line 97 of file expandlib-vartype-date.h. References expander::expvartype_date< StringType >::SetValue().  | 
  
      
  | 
  ||||||||||
| 
 Constructor with a string as parameter, inits the value to 's' (converted). 
 Definition at line 103 of file expandlib-vartype-date.h. References expander::expvartype_date< StringType >::SetValue().  | 
  
      
  | 
  ||||||||||||||||||||||||
| 
 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. Implements expander::expandvartype< StringType >. Definition at line 127 of file expandlib-vartype-date.h. References expander::expvartype_date< StringType >::AppendValue().  | 
  
      
  | 
  ||||||||||
| 
 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. Implements expander::expandvartype< StringType >. Definition at line 107 of file expandlib-vartype-date.h. References expander::expvartype_date< StringType >::Date, expander::expvartype_date< StringType >::DateType::day, expander::expvartype_date< StringType >::DateType::month, expander::expvartype_date< StringType >::PadWithZeroesTo(), and expander::expvartype_date< StringType >::DateType::year. Referenced by expander::expvartype_date< StringType >::AppendValue(), and expander::expvartype_date< StringType >::get_string().  | 
  
      
  | 
  |||||||||
| 
 Returns date as a string. 
 Definition at line 168 of file expandlib-vartype-date.h. References expander::expvartype_date< StringType >::AppendValue().  | 
  
      
  | 
  ||||||||||||||||
| 
 Returns s, padded with zeroes from the left. 
 Definition at line 63 of file expandlib-vartype-date.h.  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Pads s from the left (with zeroes), result goes into d. 
 Definition at line 77 of file expandlib-vartype-date.h. Referenced by expander::expvartype_date< StringType >::AppendValue().  | 
  
      
  | 
  ||||||||||
| 
 Sets this variable to the string specified. This isn't called from ExpandLib itself, but it can be used by other programs. Implements expander::expandvartype< StringType >. Definition at line 131 of file expandlib-vartype-date.h. References expander::expvartype_date< StringType >::Date, expander::expvartype_date< StringType >::DateType::day, expander::expvartype_date< StringType >::DateType::month, and expander::expvartype_date< StringType >::DateType::year. Referenced by expander::expvartype_date< StringType >::expvartype_date().  | 
  
      
  | 
  |||||
| 
 Used to hold the date. 
 Referenced by expander::expvartype_date< StringType >::AppendValue(), and expander::expvartype_date< StringType >::SetValue().  | 
  
1.3-rc2