|
virtual RuntimeDataObjectSharedPtr | clone () override |
| Clone the object.
|
|
virtual bool | copyValueFrom (RuntimeDataObjectSharedPtr other) override |
| Copies a value from passed object.
|
|
virtual bool | equals (RuntimeDataObjectSharedPtr object) override |
| Comparison overload.
|
|
DataType | getDefaultValue () const |
| Retrieve the default value for this object.
|
|
virtual string | getDefaultValueStr () const override |
| Virtual function which exists in this base class but should never be used. This is overridden in classes where its appropriate.
|
|
string | getSerializedValue () const override |
| Get the runtimedata object value in serialized format.
|
|
virtual Type | getType () const override |
| Retrieves the type of this data object.
|
|
DataType | getValue () const |
| Retrieves the value that is represented by this data object.
|
|
| RuntimeDataObjectTyped (ConnectDomainSharedPtr domain, const string &name, const DataType &value, const string &nameOverride="") |
| Constructor that initializes a typed data object from name and value.
|
|
| RuntimeDataObjectTyped (ConnectDomainSharedPtr domain, const string &path, const string &name, const DataType &value, const string &nameOverride, Persistence persistenceDefinition, const persistence::SettingFactory *settingFactory) |
| Constructor that initializes a typed data object from name and value.
|
|
bool | setValue (const DataType &value) |
| Sets the value of this data object.
|
|
void | addChild (const RuntimeDataObjectSharedPtr &child) |
| Adds data object as child of this object.
|
|
ModifiedSubscriptionToken | addModifiedNotificationHandler (ModifiedFunction callback) |
| Allows to subscribe to modifications in this data context.
|
|
ChildConstIterator | beginChildren () const |
| Returns iterator to start of the child container.
|
|
template<typename _ToClass > |
shared_ptr< _ToClass > | castTo () |
| Cast this object to specific type.
|
|
void | copyDataFrom (RuntimeDataObject &from) |
| Copies basic data from provided object.
|
|
bool | createChild (const string &name, const RuntimeDataObject::Type dataType, const string &serializedDefaultValue, const bool persistent, const int flags, const persistence::SettingFactory *settingFactory) |
| Create a child under this runtime data object.
|
|
bool | createChildRecursive (const string &path, RuntimeDataObject::Type dataType, const string &serializedDefaultValue, const bool persistent, const int flags, const persistence::SettingFactory *settingFactory) |
| Create a child data object in the correct place in hierarchy specified by path.
|
|
RuntimeDataObjectSharedPtr | createPathObjects (const string &path, const persistence::SettingFactory *settingFactory) |
| Create objects enough to have the given path in the runtime data and return the leaf object All created objects are of Type::Object.
|
|
ChildConstIterator | endChildren () const |
| Returns iterator in the end of the child container.
|
|
RuntimeDataObjectSharedPtr | findChild (const string &name) |
| Tries to find a child with given name.
|
|
template<typename _T > |
shared_ptr< _T > | findChild (const string &name) |
| Retrieve a typed children with specific name.
|
|
RuntimeDataObjectSharedPtr | findChild (uint32_t hash) |
| Tries to find a child with given name hash code.
|
|
template<typename _T > |
shared_ptr< _T > | findChild (uint32_t hash) |
| Retrieve a typed children with specific name hash code.
|
|
RuntimeDataObjectSharedPtr | findChildRecursive (const string &path, bool passLists=true) |
| Locates childs recursively.
|
|
template<typename _T > |
shared_ptr< _T > | findChildRecursive (const string &path, bool passLists=true) |
| Locates childs recursively.
|
|
bool | generatesGetter () const |
| Retrieve getter generation status.
|
|
RuntimeDataObjectSharedPtr | getChild (size_t index) const |
| Retrieves a child object in given index.
|
|
template<typename _T > |
shared_ptr< _T > | getChild (size_t index) const |
|
size_t | getChildCount () const |
| Retrieves the count of child objects in this data object.
|
|
size_t | getChildIndex (const RuntimeDataObject &child) const |
| Retrieves the index of a child data object.
|
|
void | getFreeformProperties (vector< pair< string, string > > &output) |
| Get list of the free form properties defined for the object output The freeform properties will be copied here,.
|
|
int | getIntProperty (const string &name, int defaultValue=0) const |
| Retrieve int property value.
|
|
string | getName () const |
| Allows to retrieve the name of the object.
|
|
virtual uint32_t | getNameHash () |
| retrieve hash code for the name portion of node
|
|
string | getNameOverride () const |
| Retrieve the overriden name.
|
|
const string & | getPath () const |
|
string | getStringProperty (const string &name, const string defaultValue="") const |
| Retrieve string property value.
|
|
template<typename _ToClass > |
shared_ptr< _ToClass > | getUIDelegate () |
| Retrieve UI Delegate and cast it to approriate type.
|
|
ModifiedSubscriptionToken | getUIDelegateModificationHandlerToken () const |
| Retrieve UI Delegate specific modification handlers registration token.
|
|
bool | getWritable () const |
| Retrieve writable status.
|
|
bool | hasChild (const RuntimeDataObject &child) const |
| Checks whether or not the child exists.
|
|
bool | hasProperty (const string &name) |
| Checks whether there is a property with given name.
|
|
virtual void | notifyModified (RuntimeDataObject *object=0) |
| Triggers modification procedure in this data context, which invokes the subscriptions.
|
|
virtual void | removeAllChildren () |
| Removes all children.
|
|
virtual void | removeChild (const RuntimeDataObject &child) |
| Removes a child object from list of childs.
|
|
virtual bool | removeChild (const string &name) |
| Remove specified child of this object.
|
|
virtual void | removeChild (size_t index) |
| Removes a child object in given index.
|
|
bool | removeChildRecursive (const string &path) |
| Remove specified child and all elements in the path that would become empty.
|
|
void | removeModifiedNotificationHandler (ModifiedSubscriptionToken token) |
| Allows to unsubscribe from modifications in this data context.
|
|
void | removeProperty (const string &name) |
| Removes a property with specific name.
|
|
| RuntimeDataObject (ConnectDomainSharedPtr domain, const string &name, const string nameOverride="") |
| Standard constructor.
|
|
| RuntimeDataObject (ConnectDomainSharedPtr domain, const string &path, const string &name, const string nameOverride) |
| Standard constructor.
|
|
bool | sendsEvent () const |
| Retrieve notifier event generation status.
|
|
void | setGenerateGetter (bool creteGetter) |
| Set generate getter flag.
|
|
void | setName (const string &value) |
| Sets the name of the object.
|
|
void | setNameOverride (const string &value) |
| Sets the overriden name of the object.
|
|
void | setProperty (const string &name, const string &value) |
| Sets a local property - this information is not serialized.
|
|
void | setProperty (const string &name, int value) |
| Sets a local property - this information is not serialized.
|
|
void | setSendsEvent (bool createEventOnChange) |
| Set generate notifier event flag.
|
|
bool | setSerializedValue (const string &serializedValue) |
| Set the value for this data object, if this is not typed or list type then this will fail.
|
|
void | setUIDelegateModificationHandlerToken (ModifiedSubscriptionToken token) |
| Store UI Delegate modification handler handle.
|
|
void | setUIDelegete (shared_ptr< DataObject > deleg) |
| Configures UI Delegate object for this content object.
|
|
void | setWritable (bool writable) |
| Set writable flag.
|
|
virtual | ~RuntimeDataObject () |
| C++ destructor.
|
|