Home Texas Home

TVariable Assignment Operators

Assigns a new value to the TVariable. The SetDate and SetUTCTime with a void parameter list will be set to the current date and time.
TVariable& operator=(
   bool newValue
);
TVariable& operator=(
   char newValue
);
TVariable& operator=(
   short newValue
);
TVariable& operator=(
   int newValue
);
TVariable& operator=(
   __int64 newValue
);
TVariable& operator=(
   unsigned char newValue
);
TVariable& operator=(
   unsigned short newValue
);
TVariable& operator=(
   unsigned int newValue
);
TVariable& operator=(
   unsigned __int64 newValue
);
TVariable& operator=(
   float newValue
);
TVariable& operator=(
   double newValue
);
TVariable& operator=(
   FILETIME newValue
);
TVariable& operator=(
   const char* newValue
);
TVariable& operator=(
   const BYTE* newValue
);
TVariable& operator=(
   const char16_t* newValue
);
TVariable& operator=(
   TVariable *newReference
);
TVariable& operator=(
   const TVariable &newValue
);
TVariable& InitBinary(
   unsigned int value_l
);
TVariable& SetBinary(
   const void *newValue,
   unsigned int value_l = 0
);
TVariable& SetStructure(
   const BYTE *newValue,
   unsigned int format = 0,
   count BYTE **returnLocation = NULL
);
TVariable& SetStructure(
   const char16_t *newValue,
   unsigned int format = 0,
   const char16_t **returnLocation = NULL
);
TVariable& SetDate();
TVariable& SetDate(
   unsigned int newValue
);
TVariable& SetUTCTime();
TVariable& SetUTCTime(
   FILETIME newValue
);

Parameters

newValue TVariable will set the type by the inputted parameter type.
newReference Pointer to a TVariable.
value_l Binary length. If this parameter is set to zero, then expects the newValue to be a null terminating string.
format Please see Parameters for correct values.
returnLocation Enables caller to see if all the buffer contained a properly formated structure.

Return Values

These methods will return the new initialized TVariable.

Remarks

Example Use

TVariable var;
var = "This is a string";

Also See

Copy

Copyright © 2007, Ekky Software Pty Ltd.