Concept element. Very base class of the ConceptRTModel classes. More...
Concept element. Very base class of the ConceptRTModel classes.
Public Member Methods | |
const bool & | GetIsInvocable () const |
Controls if the objet should be shown in the invocation. More... | |
const bool & | GetIsInvocable () |
Controls if the objet should be shown in the invocation. More... | |
void | SetIsInvocable (const bool &value) |
Controls if the objet should be shown in the invocation. More... | |
const bool & | GetIsSerialized () const |
Controls if the objet should be serialized. More... | |
const bool & | GetIsSerialized () |
Controls if the objet should be serialized. More... | |
void | SetIsSerialized (const bool &value) |
Controls if the objet should be serialized. More... | |
ConceptElement () | |
Default constructor. More... | |
ConceptElement (const ConceptElement &right) | |
Default constructor. More... | |
ConceptElement & | operator= (const ConceptElement &right) |
Assignment operator. More... | |
const StaticString< ConceptElementNameMaxLength > & | GetName () const |
Gets the name. More... | |
void | SetName (const PCChar8 name) |
Sets a name. More... | |
String | GetPath () const |
Gets the path of the ConceptElement. More... | |
ConceptContainer * | GetContainer () const |
Gets the container of the ConceptElement. More... | |
template<class ContainerType > | |
ContainerType * | GetContainerOfType () const |
Gets the container of a certain type the ConceptElement. More... | |
ConceptContainer * | GetRootContainer () const |
Gets the root container of the ConceptElement. More... | |
virtual const String | GetDisplayName () const |
Gets the display name. More... | |
virtual void | CopyDataFrom (const ConceptElement &source) |
Copies the data from another ConceptElement. More... | |
virtual void | CopyFrom (const ConceptElement &source) |
Copies itself from a given source. More... | |
virtual void | ReadFrom (IDataStore &dataStore, IMessageCollector *messages=NULL)=0 |
Reads from. More... | |
virtual void | WriteTo (IDataStore &dataStore) const =0 |
Writes to. More... | |
virtual void | Invoke (const DynamicInvocationRequest &request, DynamicInvocationResult &result)=0 |
Invokes the object fields and methods. More... | |
virtual BaseConceptFactory & | GetFactory () const =0 |
Gets the ConceptElement factory. More... | |
ConceptElement & | GetProvider () const |
Gets the provider of the ConceptElement if defined, throws a ConceptException otherwise. More... | |
template<class T > | |
T & | GetProvider () const |
Gets the provider of the ConceptElement if defined and of type T, throws a ConceptException otherwise. More... | |
bool | GetHasProvider () const |
Tests the existence of a provider. More... | |
template<class T > | |
bool | GetHasProvider () const |
Tests the existence of a provider of type T. More... | |
virtual ConceptElement * | Clone () const |
Makes a deep copy of this object. More... | |
virtual void | ResolveLinks () |
Resolve links. More... | |
virtual void | RetrieveProvidedFactories (BaseConceptFactories &factories, const Predicate< BaseConceptFactory & > &filter) |
Retrieve provided factories. More... | |
void | RetrieveProvidedFactories (BaseConceptFactories &factories) |
Retrieve provided factories. More... | |
virtual void | RetrieveFactories (BaseConceptFactories &factories) const |
Retrieve factories. More... | |
Variant | GetPropertyMetaData (PCChar8 propertyName, PCChar8 metaDataName, const Variant &defaultValue=Variant::GetVariantNull()) const |
Returns a metadata string corresponding to a property and a metadata name. More... | |
Protected Member Functions | |
void | Initialize () |
Initializes this object. More... | |
virtual BaseConceptFactory & | InternalGetFactory () const |
Gets the object factory. More... | |
virtual void | RetrieveElementProvidedFactories (BaseConceptFactories &factories, const Predicate< BaseConceptFactory & > &filter) |
RetrieveElementProvidedFactories. Used by the macro CONCEPT_PROVIDED_COMPONENT_BEGIN More... | |
Private fields | |
bool | IsInvocable |
Controls if the objet should be shown in the invocation. More... | |
bool | IsSerialized |
Controls if the objet should be serialized. More... | |
ConceptElement | ( | ) |
Default constructor.
ConceptElement | ( | const ConceptElement & | right | ) |
Default constructor.
right | The right. |
|
virtual |
Makes a deep copy of this object.
|
virtual |
Copies the data from another ConceptElement.
source | Source of the data. |
|
virtual |
Copies itself from a given source.
source | Source of the data. |
ConceptContainer* GetContainer | ( | ) | const |
Gets the container of the ConceptElement.
ContainerType * GetContainerOfType | ( | ) | const |
Gets the container of a certain type the ConceptElement.
ContainerType | The type of the container. |
|
virtual |
Gets the display name.
|
pure virtual |
Gets the ConceptElement factory.
Implemented in AcquisitionSystemRT< AcquitisionBufferSize, LoggerBufferSize, MemoryRootBufferSize >, IoMappingChannelItemAcyclicOutputFloat64, IoMappingChannelItemAcyclicOutputFloat32, IoMappingChannelItemAcyclicOutputInt64, IoMappingChannelItemAcyclicOutputInt32, IoMappingChannelItemAcyclicOutputInt16, IoMappingChannelItemAcyclicOutputInt8, IoMappingChannelItemAcyclicOutputDigital, IoSimulation, IoMappingChannelItemAcyclicInputFloat64, IoMappingChannelItemAcyclicInputFloat32, IoMappingChannelItemAcyclicInputInt64, IoMappingChannelItemAcyclicInputInt32, IoMappingChannelItemAcyclicInputInt16, IoMappingChannelItemAcyclicInputInt8, IoMappingChannelItemAcyclicInputDigital, IoMappingChannelItemAcyclic, IoTechnologyChannel, IoMappingChannelItemCyclicOutputFloat64, IoMappingChannelItemCyclicOutputFloat32, IoMappingChannelItemCyclicOutputInt64, IoMappingChannelItemCyclicOutputInt32, IoMappingChannelItemCyclicOutputInt16, IoMappingChannelItemCyclicOutputInt8, IoMappingSimulationItemSync, IoMappingNullItemSync, IoMappingChannelItemCyclicOutputDigital, IoNull, IoMappingChannelItemCyclicInputFloat64, AcquisitionChannel, IoMappingChannelItemCyclicInputFloat32, IoMappingChannelItemCyclicInputInt64, IoMappingChannelItemCyclicInputInt32, IoMappingChannelItemCyclicInputInt16, IoMappingChannelItemCyclicInputInt8, ConceptSingleLink< ElementType >, ConceptMultipleLink< ElementType >, IoMappingChannelItemCyclicInputDigital, IoMappingChannelItemCyclic, ConceptStaticList< ElementType >, ConceptDynamicList< ElementType >, ConceptDynamicList< IoMappingItem >, ConceptDynamicList< IoTechnology >, ConceptDynamicComponent< ElementType >, and IoMappingChannelItemSync.
bool GetHasProvider | ( | ) | const |
Tests the existence of a provider.
bool GetHasProvider | ( | ) | const |
Tests the existence of a provider of type T.
|
inline |
Controls if the objet should be shown in the invocation.
It enables us to hide a branch of the objet model to the invocation mechanisms.
|
inline |
Controls if the objet should be shown in the invocation.
It enables us to hide a branch of the objet model to the invocation mechanisms.
|
inline |
Controls if the objet should be serialized.
It enables us to hide a branch of the objet model to the serialization mechanisms.
|
inline |
Controls if the objet should be serialized.
It enables us to hide a branch of the objet model to the serialization mechanisms.
const StaticString<ConceptElementNameMaxLength>& GetName | ( | ) | const |
Gets the name.
String GetPath | ( | ) | const |
Gets the path of the ConceptElement.
|
virtual |
Returns a metadata string corresponding to a property and a metadata name.
propertyName | [in] The name of the property to which the metadata is looked for. |
metaDataName | [in] The name of the metadata entry to which the metadata is looked for. |
defaultValue | [in] The value returned if no metadata is found. |
Implements IPropertyMetaDataProvider.
ConceptElement& GetProvider | ( | ) | const |
Gets the provider of the ConceptElement if defined, throws a ConceptException otherwise.
T & GetProvider | ( | ) | const |
Gets the provider of the ConceptElement if defined and of type T, throws a ConceptException otherwise.
T | The provider expected type. |
ConceptContainer* GetRootContainer | ( | ) | const |
Gets the root container of the ConceptElement.
|
protected |
Initializes this object.
|
protectedvirtual |
|
pure virtual |
Invokes the object fields and methods.
request | The request. |
result | [in,out] The result. |
Dynamic Invocation on IInvocable objects enables us to have remote access on published fields and methods.
Implements IInvocable.
Implemented in AcquisitionSystemRT< AcquitisionBufferSize, LoggerBufferSize, MemoryRootBufferSize >, AcquisitionSystem, AcquisitionChannel, ConceptMultipleLink< ElementType >, ConceptContainer, ConceptLink, BaseConceptMultipleLink, and IoTechnology.
ConceptElement& operator= | ( | const ConceptElement & | right | ) |
Assignment operator.
right | The right. |
|
pure virtual |
Reads from.
dataStore | [in,out] The dataStore. |
messages | [in,out] (optional) The messageCollector to collect warning or error messages. Default = NULL. |
Implements ISerializable.
Implemented in ConceptDynamicComponent< ElementType >, ConceptLink, BaseConceptMultipleLink, ConceptComponent, BaseConceptDynamicList, and BaseConceptStaticList.
|
virtual |
Resolve links.
Reimplemented in IoMappingSimulationItemSync, ConceptMultipleLink< ElementType >, ConceptSingleLink< ElementType >, ConceptContainer, BaseConceptSingleLink, and IoMappingChannelItemSync.
|
protectedvirtual |
RetrieveElementProvidedFactories. Used by the macro CONCEPT_PROVIDED_COMPONENT_BEGIN
factories | The factory list to populate. |
filter | filter that makes the selection of the corresponding factories through Predicate pattern possible. |
|
virtual |
Retrieve factories.
factories | [in, out] factories list to populate. |
Reimplemented in ConceptContainer.
|
virtual |
Retrieve provided factories.
factories | [in, out] factories list |
filter | filter that makes the selection of the corresponding factories through Predicate pattern possible. |
Reimplemented in ConceptContainer.
void RetrieveProvidedFactories | ( | BaseConceptFactories & | factories | ) |
Retrieve provided factories.
factories | [in, out] factories list |
|
inline |
Controls if the objet should be shown in the invocation.
It enables us to hide a branch of the objet model to the invocation mechanisms.
[in] | value | The new parameter value. |
|
inline |
Controls if the objet should be serialized.
It enables us to hide a branch of the objet model to the serialization mechanisms.
[in] | value | The new parameter value. |
void SetName | ( | const PCChar8 | name | ) |
|
pure virtual |
Writes to.
dataStore | [in,out] The dataStore. |
Implements ISerializable.
Implemented in ConceptDynamicComponent< ElementType >, ConceptLink, BaseConceptMultipleLink, ConceptComponent, BaseConceptDynamicList, and BaseConceptStaticList.
|
private |
Controls if the objet should be shown in the invocation.
It enables us to hide a branch of the objet model to the invocation mechanisms.
|
private |
Controls if the objet should be serialized.
It enables us to hide a branch of the objet model to the serialization mechanisms.