A collection object that has more than 0 unit of Named Property. More...
Classes | |
class | const_iterator |
Public Types | |
typedef CFastMap< String, CVariant, StringTraits > | MapType |
Public Member Functions | |
const_iterator | begin () const |
const_iterator | end () const |
size_t | GetCount () const |
void | Remove (const String &key) |
void | Clear () |
bool | TryGetValue (const String &key, CVariant &ret) const |
bool | ContainsKey (const String &key) const |
bool | Add (const String &key, const CVariant &val) |
void | CopyKeysTo (CFastArray< String > &dest) |
PROUDSRV_API CVariant | GetField (const String &name) |
virtual PROUDSRV_API void | SetField (const String &name, const CVariant &value) |
virtual PROUDSRV_API void | RemoveField (const String &name) |
virtual PROUDSRV_API void | FromVariant (_variant_t from) |
virtual PROUDSRV_API void | FromByteArray (const ByteArray &from) |
virtual PROUDSRV_API void | FromByteArray (const uint8_t *data, int length) |
virtual PROUDSRV_API void | ToByteArray (ByteArray &output) |
PROUDSRV_API | CProperty () |
PROUDSRV_API | CProperty (const CProperty &rhs) |
CProperty (_variant_t from) | |
PROUDSRV_API | operator _variant_t () const |
PROUDSRV_API | operator ByteArrayPtr () const |
CProperty & | operator= (const _variant_t &from) |
CProperty & | operator= (ByteArray &from) |
CProperty & | operator= (const CProperty &rhs) |
PROUDSRV_API String | GetDumpedText () |
Protected Member Functions | |
virtual void | AssertThreadID (eAccessMode eMode) const |
virtual void | ClearThreadID () const |
Protected Attributes | |
MapType | m_map |
Friends | |
PROUDSRV_API CMessage & | operator<< (CMessage &packet, const CProperty &rhs) |
PROUDSRV_API CMessage & | operator>> (CMessage &packet, CProperty &rhs) |
A collection object that has more than 0 unit of Named Property.
Definition
Function
Usage example
Now a has { ('name','baehj'), ('id',123), ('height',176) }.
typedef CFastMap<String, CVariant, StringTraits> Proud::CProperty::MapType |
Map object that corresponds to field name and value
PROUDSRV_API Proud::CProperty::CProperty | ( | ) |
Base constructor
Proud::CProperty::CProperty | ( | _variant_t | from | ) |
Helper function that make compatibility with CVariant type
|
virtual |
The contents of variant of serialized bytearray type are to be deserialized and to be filled to this object.
from.. | oriinal to copy |
PROUDSRV_API String Proud::CProperty::GetDumpedText | ( | ) |
Used to read or write field value. Please refer db_adding_fields
Converts the contents of this collection object into text string then outputs
Gets a specific (key, value) pair in this collection object
name | key of pair whose value should be retrieved |
PROUDSRV_API Proud::CProperty::operator _variant_t | ( | ) | const |
Helper function that make compatibility with _variant_t type
|
inline |
Copy creator
|
virtual |
Removes specific (key, value) pair from this collection object
name | key value of pair to be removed |
Reimplemented in Proud::CPropNode.
|
virtual |
Specific (key, value) pair to be entered to this collection object. If there is the pair that has same key than new comer replaces itself with old one.
name | key of pair |
value | value of pair |
Reimplemented in Proud::CPropNode.
PropCollection's Message serialization helper functions