Inheritance diagram for CP_DataValueList:
Public Member Functions | |
void | ClearList () |
UInt32 | GetCount () |
void | SetID (FourCharCode inIdentifier) |
FourCharCode | GetID () |
void | RegisterSignal (const CP_SignalHolder &inSignal) |
CP_DataValueSignal * | FindSignal (const CP_String &inSignalName) |
UInt32 | GetNumberSignals () |
CP_String | GetNthSignalName (UInt32 inSignalIndex) |
void | RegisterSlot (const CP_SlotHolder &inSlot) |
CP_DataValueSlot | FindSlot (const CP_String &inSlotName) |
UInt32 | GetNumberSlots () |
CP_String | GetNthSlotName (UInt32 inSlotIndex) |
template<class R, class P1, class P2> | |
CP_CommandHandlerSignal * | Connect (CPLAT::CP_CommandNo cmd, void(R::*handler)(P1, P2), SInt32 mode) |
template<class R, class P1, class P2> | |
void | Connect (CP_Object *control, const CPLAT::CP_String &signalName, void(R::*handler)(P1, P2)) |
void | disconnect_all () |
void | signal_connect (CP_Signal *inSender) |
void | signal_disconnect (CP_Signal *inSender) |
Constructor / Destructor | |
CP_DataValueList () | |
Constructor. | |
CP_DataValueList (const CP_DataValueList &inDataValueList) | |
virtual | ~CP_DataValueList () |
Destructor. | |
Data Value | |
void | AddValue (const CP_String &inDataKey, const CP_DataValueHolder &inDataValue) |
void | SetValue (const CP_String &inDataKey, const CP_DataValueHolder &inDataValue) |
void | RemoveValue (const CP_String &inDataKey) |
bool | GetOptionalValue (const CP_String &inDataKey, CP_DataValueHolder &inOutDataValue) |
operators | |
CP_DataValueList & | operator= (const CP_DataValueList &inDataValueList) |
Static Public Member Functions | |
static void | Connect (CP_Object *sender, const CP_String &signalName, CP_Object *receiver, const CP_String &slotName, const bool reciprocal=false) |
static void | Connect (CP_Object *sender, CP_Object *receiver, const bool reciprocal=false, const CP_String &signalName=kCP_Signal_ValueChanged, const CP_String &slotName=kCP_Slot_SetValue) |
Protected Attributes | |
CP_DataValue_Map | fDataValues |
CP_DataValueSignal | fValueChangedSignal |
CP_Signals_Array * | fSignals |
CP_Slots_Array * | fSlots |
FourCharCode | fObjectID |
sender_set | fSenders |
Static Protected Attributes | |
static FourCharCode | fObjectIDCount = 0 |
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Adds the passed in data value holder and key string to the list of data value keys this list holds.
|
|
Sets the value for the passed in data key to the value supplied in inDataValue. This is used if you want to change an existing value in this data value list. If there is no value with the passed in inDataKey, then a new entry is added to the end of the list.
|
|
Removes a value from the list with the passed in key.
|
|
Returns a data value in the passed in parameter from the data key. If the data specified by the key does not exist, then false is returned.
|
|
Erases all entries in the list.
|
|
|
|
Assignment operator.
|
|
Sets the identifier for this object. If a specific identifier is not set with this function, then a default id is used, which is simply a running count of the number of objects created.
|
|
Returns the objects identifier.
|
|
Registers the signal / signal name contained in the passed in inSignal object.
|
|
Finds the CP_DataValueSignal object that matches the passed in inSignalName.
|
|
Returns the number of signals for this object.
|
|
Returns the signal name of the passed in signal index.
|
|
Registers the slot / slot name contained in the passed in inSlot object.
|
|
Finds the CP_Slot1 object that matches the passed in inSlotName.
|
|
Returns the number of slots for this object.
|
|
Returns the slot name of the passed in signal index.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Holds the list of data values. |
|
|
|
List of registered signals for this object. |
|
List of registered slots for this object. |
|
Object identifier. |
|
|