DataDirector API
|
DataDirector attribute class corresponding to a signed 32-bit integer datatype. More...
#include <DDD_AttributeInt.h>
Public Member Functions | |
DDD_AttributeInt (const std::string &name, int initialVal, DDD_AttributeContainer *container, int validConnectionStates, bool persistent, DDD_AttributeBase *revertable) | |
virtual DataType | GetPreferredDataType () const |
virtual std::string | GetValueString () const |
virtual void | SetValueString (const std::string &value, bool notify, DDD_AttributeObserver *originator) |
virtual int | GetValueInt (void) const |
virtual void | SetValueInt (const int value, bool notify, DDD_AttributeObserver *originator) |
virtual unsigned int | GetValueUInt (void) const |
virtual void | SetValueUInt (const unsigned int value, bool notify, DDD_AttributeObserver *originator) |
virtual double | GetValueDouble (void) const |
virtual void | SetValueDouble (const double value, bool notify, DDD_AttributeObserver *originator) |
virtual bool | GetValueBool (void) const |
virtual void | SetValueBool (const bool value, bool notify, DDD_AttributeObserver *originator) |
virtual void | SetValueByteBuffer (const char *buffer, unsigned int length, bool notify, DDD_AttributeObserver *originator) |
virtual void | GetValueByteBuffer (char **buffer, unsigned int &length) |
Public Member Functions inherited from DDD_AttributeBase | |
DDD_AttributeBase (const std::string &name, DDD_AttributeContainer *container, int validConnectionStates, bool persistent, DDD_AttributeBase *revertable) | |
virtual | ~DDD_AttributeBase () |
bool | CanConnectAsInput () |
bool | CanConnectAsOutput () |
int | GetValidConnectionStates () |
ConnectionState | GetConnectionState () |
void | SetConnectionState (ConnectionState state) |
void | AddConnectionState (ConnectionState state) |
bool | ConnectionStateSupports (ConnectionState state) |
const char * | Name () const |
DDD_AttributeContainer * | GetContainer () |
void | IncreaseRefCount () |
void | DecreaseRefCount () |
int | RefCount () |
bool | AddObserver (DDD_AttributeObserver *observer) |
bool | RemoveObserver (DDD_AttributeObserver *observer) |
std::string | EditorSemantic () |
void | EditorSemantic (const std::string &semantic) |
std::string | EditorFormatString () |
void | EditorFormatString (const std::string &formatStr) |
std::string | Connectability () |
void | SetRevertable (DDD_AttributeBase *attr) |
DDD_AttributeBase * | GetRevertable (void) const |
void | SetPersistent (bool flag) |
bool | IsPersistent (void) const |
void | RevertValue () |
void | NotifyValueChanged (DDD_AttributeObserver *originator) |
Additional Inherited Members | |
Public Types inherited from DDD_AttributeBase | |
enum | ConnectionState { NOT_CONNECTED = 0, CONNECTED_INPUT = 1<<1, CONNECTED_OUTPUT = 1<<2, CONNECTED_IN_OUT = (CONNECTED_INPUT | CONNECTED_OUTPUT) } |
enum | DataType { STRING = 0, INT, UINT, DOUBLE, BOOLEAN, BYTEBUFFER } |
Static Public Member Functions inherited from DDD_AttributeBase | |
static const char * | DataTypeToString (DataType type) |
static DataType | StringToDataType (const char *string) |
Protected Attributes inherited from DDD_AttributeBase | |
ObserverList | _observerList |
DDD_AttributeContainer * | _container |
int | _refCount |
bool | _visiting |
std::string | _name |
ConnectionState | _connectionState |
int | _validConnectionStates |
std::string | _editorSemantic |
std::string | _editorFormatString |
DDD_AttributeBase * | _revertable |
bool | _persistent |
DataDirector attribute class corresponding to a signed 32-bit integer datatype.
DDD_AttributeInt | ( | const std::string & | name, |
int | initialVal, | ||
DDD_AttributeContainer * | container, | ||
int | validConnectionStates, | ||
bool | persistent, | ||
DDD_AttributeBase * | revertable | ||
) |
constructor
name | The attribute's name |
initialVal | The attribute's initial value |
container | The container that will "own" this attribute |
validConnectionStates | Valid connection states for the attribute (INPUT,OUTPUT, IN_OUT); see DDD_AttributeBase::ConnectionState |
persistent | True if it's a persistent attribute |
revertable | If not NULL, it's a pointer to the revertable attribute for this attribute |
|
virtual |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
value | Newly-allocated buffer returned length of buffer |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
Implements DDD_AttributeBase.
|
virtual |
Implements DDD_AttributeBase.
|
virtual |
Sets the value of this attribute using a bool value
value | The new value of the attribute |
notify | Whether or not to notify attribute observers |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
Sets the value of this attribute using a byte buffer value
value | The new buffer value of the attribute length of buffer |
notify | Whether or not to notify attribute observers |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
Sets the value of this attribute using a double value
value | The new value of the attribute |
notify | Whether or not to notify attribute observers |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
Sets the value of this attribute using an int value
value | The new value of the attribute |
notify | Whether or not to notify attribute observers |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
Sets the value of this attribute using a string value
value | The new value of the attribute |
notify | Whether or not to notify attribute observers |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.
|
virtual |
Sets the value of this attribute using an unsigned int value
value | The new value of the attribute |
notify | Whether or not to notify attribute observers |
DDD_AttributeConversionException |
Implements DDD_AttributeBase.