|
| virtual RuntimeDataObjectSharedPtr | clone () KZ_OVERRIDE |
| | Clone the object. More...
|
| |
| virtual bool | copyValueFrom (RuntimeDataObjectSharedPtr other) KZ_OVERRIDE |
| | Copies a value from passed object. More...
|
| |
| virtual bool | equals (RuntimeDataObjectSharedPtr object) KZ_OVERRIDE |
| | Comparison overload. More...
|
| |
| DataType | getDefaultValue () const |
| | Retrieve the default value for this object. More...
|
| |
| virtual string | getDefaultValueStr () const KZ_OVERRIDE |
| | Virtual function which exists in this base class but should never be used. This is overridden in classes where its appropriate. More...
|
| |
| string | getSerializedValue () const KZ_OVERRIDE |
| | Get the runtimedata object value in serialized format. More...
|
| |
| virtual Type | getType () const KZ_OVERRIDE |
| | Retrieves the type of this data object. More...
|
| |
| DataType | getValue () const |
| | Retrieves the value that is represented by this data object. More...
|
| |
| | RuntimeDataObjectTyped (ConnectDomain *domain, const string &name, const DataType &value, const string &nameOverride="") |
| | Constructor that initializes a typed data object from name and value. More...
|
| |
| | RuntimeDataObjectTyped (ConnectDomain *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. More...
|
| |
| bool | setValue (const DataType &value) |
| | Sets the value of this data object. More...
|
| |
| void | addChild (const RuntimeDataObjectSharedPtr &child) |
| | Adds data object as child of this object. More...
|
| |
| ModifiedSubscriptionToken | addModifiedNotificationHandler (ModifiedFunction callback) |
| | Allows to subscribe to modifications in this data context. More...
|
| |
| ChildConstIterator | beginChildren () const |
| | Returns iterator to start of the child container. More...
|
| |
| template<typename _ToClass > |
| shared_ptr< _ToClass > | castTo () |
| | Cast this object to specific type. More...
|
| |
| void | copyDataFrom (RuntimeDataObject &from) |
| | Copies basic data from provided object. More...
|
| |
| bool | createChild (const string &name, const RuntimeDataObject::Type dataType, const string &serializedDefaultValue, const bool persistent, const bool writable, const persistence::SettingFactory *settingFactory) |
| | Create a child under this runtime data object. More...
|
| |
| bool | createChildRecursive (const string &path, RuntimeDataObject::Type dataType, const string &serializedDefaultValue, const bool persistent, const bool writable, const persistence::SettingFactory *settingFactory) |
| | Create a child data object in the correct place in hierarchy specified by path. More...
|
| |
| 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. More...
|
| |
| ChildConstIterator | endChildren () const |
| | Returns iterator in the end of the child container. More...
|
| |
| RuntimeDataObjectSharedPtr | findChild (const string &name) |
| | Tries to find a child with given name. More...
|
| |
| RuntimeDataObjectSharedPtr | findChild (uint32_t hash) |
| | Tries to find a child with given name hash code. More...
|
| |
| template<typename _T > |
| shared_ptr< _T > | findChild (const string &name) |
| | Retrieve a typed children with specific name. More...
|
| |
| template<typename _T > |
| shared_ptr< _T > | findChild (uint32_t hash) |
| | Retrieve a typed children with specific name hash code. More...
|
| |
| RuntimeDataObjectSharedPtr | findChildRecursive (const string &path, bool passLists=true) |
| | Locates childs recursively. More...
|
| |
| template<typename _T > |
| shared_ptr< _T > | findChildRecursive (const string &path, bool passLists=true) |
| | Locates childs recursively. More...
|
| |
| RuntimeDataObjectSharedPtr | getChild (size_t index) const |
| | Retrieves a child object in given index. More...
|
| |
| 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. More...
|
| |
| size_t | getChildIndex (const RuntimeDataObject &child) const |
| | Retrieves the index of a child data object. More...
|
| |
| 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,. More...
|
| |
| int | getIntProperty (const string &name, int defaultValue=0) const |
| | Retrieve int property value. More...
|
| |
| string | getName () const |
| | Allows to retrieve the name of the object. More...
|
| |
| virtual uint32_t | getNameHash () |
| | retrieve hash code for the name portion of node More...
|
| |
| string | getNameOverride () const |
| | Retrieve the overriden name. More...
|
| |
| const string & | getPath () const |
| |
| string | getStringProperty (const string &name, const string defaultValue="") const |
| | Retrieve string property value. More...
|
| |
| template<typename _ToClass > |
| shared_ptr< _ToClass > | getUIDelegate () |
| | Retrieve UI Delegate and cast it to approriate type. More...
|
| |
| ModifiedSubscriptionToken | getUIDelegateModificationHandlerToken () const |
| | Retrieve UI Delegate specific modification handlers registration token. More...
|
| |
| bool | getWritable () const |
| | Retrieve writable status. More...
|
| |
| bool | hasChild (const RuntimeDataObject &child) const |
| | Checks whether or not the child exists. More...
|
| |
| bool | hasProperty (const string &name) |
| | Checks whether there is a property with given name. More...
|
| |
| virtual void | notifyModified (RuntimeDataObject *object=0) |
| | Triggers modification procedure in this data context, which invokes the subscriptions. More...
|
| |
| virtual void | removeAllChildren () |
| | Removes all children. More...
|
| |
| virtual void | removeChild (const RuntimeDataObject &child) |
| | Removes a child object from list of childs. More...
|
| |
| virtual void | removeChild (size_t index) |
| | Removes a child object in given index. More...
|
| |
| virtual bool | removeChild (const string &name) |
| | Remove specified child of this object. More...
|
| |
| bool | removeChildRecursive (const string &path) |
| | Remove specified child and all elements in the path that would become empty. More...
|
| |
| void | removeModifiedNotificationHandler (ModifiedSubscriptionToken token) |
| | Allows to unsubscribe from modifications in this data context. More...
|
| |
| void | removeProperty (const string &name) |
| | Removes a property with specific name. More...
|
| |
| | RuntimeDataObject (ConnectDomain *domain, const string &name, const string nameOverride="") |
| | Standard constructor. More...
|
| |
| | RuntimeDataObject (ConnectDomain *domain, const string &path, const string &name, const string nameOverride) |
| | Standard constructor. More...
|
| |
| void | setName (const string &value) |
| | Sets the name of the object. More...
|
| |
| void | setNameOverride (const string &value) |
| | Sets the overriden name of the object. More...
|
| |
| void | setProperty (const string &name, const string &value) |
| | Sets a local property - this information is not serialized. More...
|
| |
| void | setProperty (const string &name, int value) |
| | Sets a local property - this information is not serialized. More...
|
| |
| bool | setSerializedValue (const string &serializedValue) |
| | Set the value for this data object, if this is not typed or list type then this will fail. More...
|
| |
| void | setUIDelegateModificationHandlerToken (ModifiedSubscriptionToken token) |
| | Store UI Delegate modification handler handle. More...
|
| |
| void | setUIDelegete (shared_ptr< DataObject > deleg) |
| | Configures UI Delegate object for this content object. More...
|
| |
| void | setWritable (bool writable) |
| | Set writable flag. More...
|
| |
| virtual | ~RuntimeDataObject () |
| | C++ destructor. More...
|
| |
|
| typedef ChildContainer::const_iterator | ChildConstIterator |
| |
| typedef ChildContainer::const_reverse_iterator | ChildConstReverseIterator |
| |
| typedef vector< RuntimeDataObjectSharedPtr > | ChildContainer |
| | Iterators for children. More...
|
| |
| typedef function< void(RuntimeDataObject *self)> | ModifiedFunction |
| | Callback function type for change subscriptions. More...
|
| |
| typedef shared_ptr< void > | ModifiedSubscriptionToken |
| | Token type that can be used to identify the change subscription. More...
|
| |
| enum | Persistence { Persistence::NON_PERSISTENT,
Persistence::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. More...
|
| |
| static Type | str2Type (const string &str) |
| | Convert a string to Type. More...
|
| |
| static string | type2Str (const Type type) |
| | Convert the type enumeration value to human readable string. More...
|
| |
| typedef unordered_map< RuntimeDataObjectSharedPtr, ModifiedSubscriptionToken > | ChildrenSubscriptionContainer |
| |
| ChildContainer | m_children |
| | Children of the data object. More...
|
| |
| ChildrenSubscriptionContainer | m_childrenSubscriptionTokens |
| |
| ConnectDomain * | m_domain |
| | The connect domain this dataobject is bound to. More...
|
| |
| string | m_name |
| | Name of the object. More...
|
| |
| uint32_t | m_nameHash |
| | Hash code of the name. More...
|
| |
| string | m_nameOverride |
| | UI Override for the name. More...
|
| |
| string | m_path |
| | Contains the full path of the object and its parents. More...
|
| |
| optional< map< string, string > > | m_properties |
| | Free form properties set for the object. More...
|
| |
| Type | m_type |
| | Possible type. More...
|
| |
| weak_ptr< DataObject > | m_UIDelegate |
| | UI class, kept as unknown here, just a pointer. More...
|
| |
| ModifiedSubscriptionToken | m_UIDelegateModificationToken |
| | Token for modification registrations of UI Delegate. More...
|
| |
| bool | m_writable |
| | Is the object value externally writable (over the net) More...
|
| |
template<class DataType, RuntimeDataObject::Type DataTypeEnum>
class kanzi::connect::RuntimeDataObjectTyped< DataType, DataTypeEnum >
Template class that can be used to specialize standard types.
Provide basic functions to host / set / get value of given type.