|
| virtual void | appendItem (RuntimeDataObjectSharedPtr item) |
| | Adds an item to the end of the list.
|
| |
| virtual RuntimeDataObjectSharedPtr | clone () override |
| | Clone the object as is.
|
| |
| virtual RuntimeDataObjectSharedPtr | createItem () |
| | Creates a new item based on stored item schema, or in case not present, from the first item stored currently in the list.
|
| |
| virtual RuntimeDataObjectSharedPtr | createItemInplace () |
| | Creates a list item and inserts it to the end of the list.
|
| |
| void | disableModificationNotifications () |
| | Disables modification notifications.
|
| |
| int | enableModificationNotifications () |
| | Enables modification notifications.
|
| |
| virtual bool | equals (RuntimeDataObjectSharedPtr other) override |
| | Comparison.
|
| |
| virtual RuntimeDataObjectSharedPtr | getItem (size_t index) |
| | Get item at specific position.
|
| |
| RuntimeDataObjectSharedPtr | getTemplateItem () const |
| | Retrieve template item.
|
| |
| virtual Type | getType () const override |
| | Retrieves the type of this data object.
|
| |
| shared_ptr< DataObject > | getUITemplateItem () const |
| | Gets UI template item.
|
| |
| virtual void | insertItem (RuntimeDataObjectSharedPtr item, size_t position) |
| | Inserts item into requested position.
|
| |
| virtual size_t | itemCount () |
| | return amount of items currently in list
|
| |
| virtual void | removeAllChildren () override |
| | Remove all list items under this.
|
| |
| virtual void | removeChild (const RuntimeDataObject &child) override |
| | Remove a list item under this.
|
| |
| virtual void | removeChild (size_t index) override |
| | Remove a list item within this.
|
| |
| virtual void | removeItem (size_t index) |
| | Release item at given position within the list.
|
| |
| virtual void | removeListItems () |
| | Remove all list items under this.
|
| |
| void | resizeTo (size_t size) |
| | Resizes the list to specific size.
|
| |
| | RuntimeDataObjectList (ConnectDomainSharedPtr domain, const string &name, const string nameOverride="") |
| | Standard constructor.
|
| |
| | RuntimeDataObjectList (ConnectDomainSharedPtr domain, const string &path, const string &name, const string nameOverride) |
| | Standard constructor.
|
| |
| bool | setSerializedJsonValues (const string &valueList) |
| | Set the list values from json data.
|
| |
| void | setTemplateItem (RuntimeDataObjectSharedPtr tmpl) |
| | Save the template item used to factorize objects.
|
| |
| void | setUITemplateItem (shared_ptr< DataObject > item) |
| | Sets UI template item.
|
| |
| 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.
|
| |
| virtual bool | copyValueFrom (RuntimeDataObjectSharedPtr other) |
| | Copies a value from other 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.
|
| |
| virtual string | getDefaultValueStr () const |
| | Virtual function which exists in this base class but should never be used. This is overridden in classes where its appropriate.
|
| |
| 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 |
| |
| virtual string | getSerializedValue () const |
| | Get the runtimedata object value in serialized format.
|
| |
| 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 bool | removeChild (const string &name) |
| | Remove specified child of this object.
|
| |
| 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.
|
| |
|
| typedef ChildContainer::const_iterator | ChildConstIterator |
| |
| typedef ChildContainer::const_reverse_iterator | ChildConstReverseIterator |
| |
| typedef vector< RuntimeDataObjectSharedPtr > | ChildContainer |
| | Iterators for children.
|
| |
| typedef function< void(RuntimeDataObject *self) | ModifiedFunction) |
| | Callback function type for change subscriptions.
|
| |
| typedef shared_ptr< void > | ModifiedSubscriptionToken |
| | Token type that can be used to identify the change subscription.
|
| |
| enum class | Persistence { NON_PERSISTENT
, PERSISTENT
} |
| | Is the runtime data object persistent or not. More...
|
| |
| enum | Type {
Object = 0
, Integer = 1
, Real = 2
, Bool = 3
,
String = 4
, List = 6
, Unknown = 100
} |
| | Type enumerations for different data object types. More...
|
| |
| static bool | isFreeformProperty (const string &propertyName) |
| | Checks whether the named property is one of the defined properties or not.
|
| |
| static Type | str2Type (const string &str) |
| | Convert a string to Type.
|
| |
| static string | type2Str (const Type type) |
| | Convert the type enumeration value to human readable string.
|
| |
| typedef unordered_map< RuntimeDataObjectSharedPtr, ModifiedSubscriptionToken > | ChildrenSubscriptionContainer |
| |
| enum | PrivateRuntimeFlags { NONE = 0x0
, HAS_SETTER = 0x0001
, HAS_NOTIFIER = 0x0010
, HAS_GETTER = 0x0100
} |
| |
| ChildContainer | m_children |
| | Children of the data object.
|
| |
| ChildrenSubscriptionContainer | m_childrenSubscriptionTokens |
| |
| ConnectDomainSharedPtr | m_domain |
| | The connect domain this dataobject is bound to.
|
| |
| int | m_flags |
| |
| string | m_name |
| | Name of the object.
|
| |
| uint32_t | m_nameHash |
| | Hash code of the name.
|
| |
| string | m_nameOverride |
| | UI Override for the name.
|
| |
| string | m_path |
| | Contains the full path of the object and its parents.
|
| |
| optional< unordered_map< string, string > > | m_properties |
| | Free form properties set for the object.
|
| |
| Type | m_type |
| | Possible type.
|
| |
| weak_ptr< DataObject > | m_UIDelegate |
| | UI class, kept as unknown here, just a pointer.
|
| |
| ModifiedSubscriptionToken | m_UIDelegateModificationToken |
| | Token for modification registrations of UI Delegate.
|
| |