The data store is reponsible for storing value for primitives, objects and references to callbacks and resources.
It holds all data the process needs to share:
These are types of data contained:
Source code: examples/dataAccessLayerExample
Access: Data can only be accessed using a Data Access Layer.
Nested: A Data Store can contain another Data Store at a hierarchical path similar to directories in a file system.
Paths: are used to uniquely identify elements in the data store. A path can be relative or absolute.
|Configuration example||Resulting data path|
Relative paths are with respect to the current parent.
The data store elements vector owned by
EcDataStoreConfig can contain any type derived from
EcDataStoreConfig itself derives from
EcBaseDataStoreElement which allows for creating hierarchies of data store elements
Data Store configuration occurs in two steps
Child classes of
EcBaseDataStoreElement perform all initialization inside of
initializeImpl () and configuration inside of
All basic types, vectors of basic types, enums and existing
EcXmlObjects are supported and can be
keys and values.
EcDataStoreConfig has a utility method for adding
EcXmlDataMapElementType types by giving a key and a value.
This examples show how to add a basic type and vectors of basic type values, with different key types