Concept link. Base class for ConceptSingleLink and ConceptMultipleLink of ConceptRTModel. At Resolve links time, the links are resolved and links references are therefore set. More...
Concept link. Base class for ConceptSingleLink and ConceptMultipleLink of ConceptRTModel. At Resolve links time, the links are resolved and links references are therefore set.
Public Member Methods | |
const bool & | GetMandatory () const |
Mandatory link flag (Default = True) More... | |
const bool & | GetMandatory () |
Mandatory link flag (Default = True) More... | |
void | SetMandatory (const bool &value) |
Mandatory link flag (Default = True) More... | |
ConceptLink () | |
Default constructor. More... | |
const PackedStringList< 1024, 16 > & | GetReferentials () const |
Gets the referentials. More... | |
void | SetReferentials (const Strings &referentials) |
Sets the referentials. More... | |
void | AddReferential (const String referential) |
Adds a referential. More... | |
String | LinkedItemPath (ConceptElement &element) const |
Process the Linked item path. More... | |
void | Invoke (const DynamicInvocationRequest &request, DynamicInvocationResult &result) |
Invokes the object fields and methods. More... | |
void | ReadFrom (IDataStore &dataStore, IMessageCollector *messages=NULL) |
Reads from. More... | |
void | WriteTo (IDataStore &dataStore) const |
Writes to. More... | |
virtual void | ReleaseReference ()=0 |
Releases the reference. More... | |
virtual void | Clear ()=0 |
Clears the reference(s). More... | |
virtual bool | IsLinkedTo (const ConceptElement &element) const =0 |
Query if 'element' is linked to. More... | |
virtual bool | CanAccept (ConceptElement &element) const =0 |
Queries if we can accept 'element' as linked object. More... | |
![]() | |
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 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... | |
![]() | |
virtual void | Accept (IContainerVisitor &visitor)=0 |
Accepts IContainerVisitor to access the object published fields. More... | |
Private fields | |
bool | Mandatory |
Mandatory link flag (Default = True) More... | |
Additional Inherited Members | |
![]() | |
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... | |
ConceptLink | ( | ) |
Default constructor.
void AddReferential | ( | const String | referential | ) |
Adds a referential.
referential | The referential. |
|
pure virtual |
Queries if we can accept 'element' as linked object.
element | [in,out] The element. |
Implemented in ConceptMultipleLink< ElementType >, and ConceptSingleLink< ElementType >.
|
pure virtual |
Clears the reference(s).
Implemented in BaseConceptSingleLink, and BaseConceptMultipleLink.
|
inline |
Mandatory link flag (Default = True)
If the flag is enable ResolveLinks will generate an exception.
|
inline |
Mandatory link flag (Default = True)
If the flag is enable ResolveLinks will generate an exception.
const PackedStringList< 1024 , 16 >& GetReferentials | ( | ) | const |
Gets the referentials.
|
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 ConceptElement.
Reimplemented in ConceptMultipleLink< ElementType >, and BaseConceptMultipleLink.
|
pure virtual |
Query if 'element' is linked to.
element | The element. |
Implemented in ConceptMultipleLink< ElementType >, and BaseConceptSingleLink.
String LinkedItemPath | ( | ConceptElement & | element | ) | const |
Process the Linked item path.
element | [in,out] The element. |
|
virtual |
Reads from.
dataStore | [in,out] The dataStore. |
messages | [in,out] (optional) The messageCollector to collect warning or error messages. Default = NULL. |
Implements ConceptElement.
Reimplemented in BaseConceptMultipleLink.
|
pure virtual |
Releases the reference.
Implemented in ConceptMultipleLink< ElementType >, and BaseConceptSingleLink.
|
inline |
Mandatory link flag (Default = True)
If the flag is enable ResolveLinks will generate an exception.
[in] | value | The new parameter value. |
void SetReferentials | ( | const Strings & | referentials | ) |
Sets the referentials.
referentials | The referentials. |
|
virtual |
Writes to.
dataStore | [in,out] The dataStore. |
Implements ConceptElement.
Reimplemented in BaseConceptMultipleLink.
|
private |
Mandatory link flag (Default = True)
If the flag is enable ResolveLinks will generate an exception.