API Guides > ConceptRT 3.x

Detailed Description

Classes

class  ConceptSingleLink< ElementType >
 Concept single link. More...
 
class  ConceptMultipleLink< ElementType >
 Concept multiple link. More...
 

Functions

const String & GetLinkPath () const
 Path to the linked element. More...
 
const String & GetLinkPath ()
 Path to the linked element. More...
 
void SetLinkPath (const String &value)
 Path to the linked element. More...
 
void Accept (IContainerVisitor &visitor)
 Accepts IContainerVisitor to access the object published fields. More...
 
 BaseConceptSingleLink ()
 Default constructor. More...
 
 BaseConceptSingleLink (const BaseConceptSingleLink &right)
 Default constructor. More...
 
ConceptElement * GetReference () const
 Gets the linked reference. More...
 
bool IsValidReference () const
 Query if the reference to the linked object is set. More...
 
void ReleaseReference ()
 Releases the reference. More...
 
void Clear ()
 Clears the reference(s). More...
 
bool IsLinkedTo (const ConceptElement &element) const
 Query if 'element' is linked to. More...
 
void ResolveLinks ()
 Resolve links. More...
 
BaseConceptFactory & GetFactory () const
 Gets the ConceptElement factory. More...
 
static BaseConceptFactory & GetClassFactory ()
 Get the class factory. More...
 
 ConceptSingleLink ()
 Default constructor. More...
 
ElementType * GetReference () const
 Gets the reference. More...
 
void SetReference (ElementType &element)
 Sets the reference. More...
 
void ResolveLinks ()
 Resolve links. More...
 
bool CanAccept (ConceptElement &element) const
 Queries if we can accept 'element' as linked object. More...
 

Variables

String LinkPath
 Path to the linked element. More...
 

Function Documentation

void Accept ( IContainerVisitor visitor)
inlinevirtual

Accepts IContainerVisitor to access the object published fields.

Parameters
visitor[in,out] The visitor.

Implements IVisitableContainer.

BaseConceptSingleLink ( )

Default constructor.

BaseConceptSingleLink ( const BaseConceptSingleLink right)

Default constructor.

Parameters
rightThe right.
bool CanAccept ( ConceptElement element) const
virtual

Queries if we can accept 'element' as linked object.

Parameters
element[in,out] The element.
Returns
true if it succeeds, false if it fails.

Implements ConceptLink.

void Clear ( )
virtual

Clears the reference(s).

Implements ConceptLink.

ConceptSingleLink ( )

Default constructor.

static BaseConceptFactory& GetClassFactory ( )
inlinestatic

Get the class factory.

Returns
The class factory.
BaseConceptFactory& GetFactory ( ) const
inlinevirtual

Gets the ConceptElement factory.

Returns
The factory.
RT Exceptions:
RT_ERROR_INTERNAL_FACTORY_NOT_DEFINED

Implements ConceptElement.

const String & GetLinkPath ( )
inline

Path to the linked element.

See also
Field: LinkPath
Returns
the property value
See also
Setter: SetLinkPath()
const String & GetLinkPath ( ) const
inline

Path to the linked element.

See also
Field: LinkPath
Returns
the property value
See also
Setter: SetLinkPath()
ConceptElement* GetReference ( ) const

Gets the linked reference.

Returns
null if it fails, else the reference.
ElementType * GetReference ( ) const

Gets the reference.

Returns
null if it fails, else the reference.
bool IsLinkedTo ( const ConceptElement element) const
virtual

Query if 'element' is linked to.

Parameters
elementThe element.
Returns
true if linked to, false if not.

Implements ConceptLink.

bool IsValidReference ( ) const

Query if the reference to the linked object is set.

Returns
true if valid reference, false if not.
void ReleaseReference ( )
virtual

Releases the reference.

Implements ConceptLink.

void ResolveLinks ( )
virtual
void ResolveLinks ( )
virtual
void SetLinkPath ( const String value)
inline

Path to the linked element.

Parameters
[in]valueThe new parameter value.
Returns
the property value
See also
Field: LinkPath
Getter: GetLinkPath()
void SetReference ( ElementType &  element)

Sets the reference.

Parameters
element[in,out] The element.

Variable Documentation

String LinkPath
private

Path to the linked element.

See also
Getter: GetLinkPath()
Setter: SetLinkPath()