TVariable Casting Operators
Changes the Cast of a given variable or safely returns a cast of the data behind the variable.
TVariable& Cast( VariableType newType ); VariableType Type( const char16_t **returnType = NULL ); bool Boolean(); double Decimal( unsigned int format = 0 ); __int64 Integer( unsigned int format = 0 ); TVariable* Reference(); FILETIME UTCTime(); HANDLE Handle();/*Windows Version*/ int Handle();/*Linux and Solaris Versions*/ const BYTE* AString( unsigned int format = 0 ); const char16_t* WString( unsigned int format = 0 );
Parameters
| newType | The new variable type, TVariable::NONE will reset the variable. |
| returnType | The current variable type, TVariable::NONE would mean that the value has not been set. |
| format | See Parameters for more details. |
Return Values
These methods will return the a temporary const value created on the stack.
Remarks
Example Use
TVariable var("123");
var = var.Integer() + 10;
MessageBox(var.ToString());//return "133"

