7 #ifndef _VARIANTMAP_CLASS_HEADER_
8 #define _VARIANTMAP_CLASS_HEADER_
14 #pragma warning(disable:4251)
15 #pragma warning(disable:4786)
32 typedef std::map<cString, cVariant, cStringCompareFunc> tVariantMap;
void tVoid
The tVoid is always the definition for the void (non-type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
size_t tSize
type definition for a array size values, map size values etc.
A common result class usable as return value throughout.
Variant class which can handle all base data types.
static const cVariant vEmpty
Empty variant.
Type of map of strings to objects of type cVariant.
tResult Copy(const cVariantMap &Map)
This function assigns an existing variant map the cVariantMap object.
cVariant & GetRef(const cString &sKey)
This function retrieves a variant value reference from the list.
tVoid Initialize()
Initializes the cVariantMap object.
cVariant & operator[](const cString &sKey)
This function retrieves a variant value from the list.
tResult Delete(const cString &sKey)
This function removes one item from the map.
tVariantMap m_Map
The variant map.
cVariantMap()
Constructor that initializes an empty cVariantMap object.
tResult Set(const cString &sKey, const cVariant &vVariant)
This function stores a string value to the map.
tResult Get(tSize nIdx, cString &sKey, cVariant &vValue) const
This function retrieves both the key and the string value from the list.
cVariantMap & operator=(const cVariantMap &Map)
The cVariantMap assignment (=) operator reinitializes existing variant maps with an existing object.
tVoid Clear()
This function cleans up the map and frees all allocated memory blocks.
tSize GetItemCount() const
This function returns the number of items the map contains.
tBool IsEmpty() const
Check if map is empty.
cVariant & operator[](tSize nIdx)
This function retrieves a variant value from the list.
cVariant Get(const cString &sKey, const cVariant &vDefault=cVariant::vEmpty) const
This function retrieves a string value from the list.
cVariant & GetRef(tSize nIdx)
This function retrieves a variant value reference from the list.
virtual ~cVariantMap()
Destructor.
cVariantMap(const cVariantMap &Map)
Constructor that duplicates an existing variant map.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.