ACF $AcfVersion:0$
Public Member Functions | List of all members
icomp::TSimComponentWrap< Base >::SimulationContext Class Reference

#include <TSimComponentWrap.h>

Inheritance diagram for icomp::TSimComponentWrap< Base >::SimulationContext:
icomp::CSimComponentContextBase icomp::IComponentContext istd::CIdManipBase istd::IPolymorphic

Public Member Functions

 SimulationContext (const IComponentStaticInfo *infoPtr)
 
 ~SimulationContext ()
 
virtual const QByteArray & GetContextId () const override
 Get ID of this component in the context tree.
 
IComponentSharedPtr GetSubcomponent (const QByteArray &componentId) const
 
IComponentUniquePtr CreateSubcomponent (const QByteArray &componentId) const
 
- Public Member Functions inherited from icomp::CSimComponentContextBase
 CSimComponentContextBase (const IComponentStaticInfo *infoPtr)
 
bool SetAttr (const QByteArray &attributeId, const iser::IObject *attributePtr)
 Set named attribute.
 
bool SetRef (const QByteArray &referenceId, IComponentSharedPtr componentPtr, const QByteArray &subelementId="")
 Set named reference to some component.
 
bool InsertMultiRef (const QByteArray &referenceId, IComponentSharedPtr componentPtr, const QByteArray &subelementId="")
 Set named reference to some component.
 
bool SetFactory (const QByteArray &factoryId, const ComponentsFactory *factoryPtr)
 Set factory of component instance.
 
bool InsertMultiFactory (const QByteArray &factoryId, const ComponentsFactory *factoryPtr)
 Insert new factory instance into multi-factory attribute.
 
bool SetBoolAttr (const QByteArray &attributeId, bool value)
 Set instance of bool attribute.
 
bool SetIntAttr (const QByteArray &attributeId, int value)
 Set instance of int attribute.
 
bool SetDoubleAttr (const QByteArray &attributeId, double value)
 Set instance of double attribute.
 
bool SetStringAttr (const QByteArray &attributeId, const QString &value)
 Set instance of QString attribute.
 
bool SetIdAttr (const QByteArray &attributeId, const QByteArray &value)
 Set instance of QByteArray attribute.
 
template<class Attribute >
bool InsertMultiAttr (const QByteArray &attributeId, const Attribute &attribute)
 Insert new attribute to multi attributes.
 
bool InsertMultiAttr (const QByteArray &attributeId, const QString &attribute)
 
virtual const IRegistryElementGetRegistryElement () const override
 Get access to component registry element object.
 
virtual const IComponentStaticInfoGetStaticInfo () const override
 Get component static info associated with this context.
 
virtual const IComponentContextGetParentContext () const override
 Get access to parent component context.
 
virtual const iser::IObjectGetAttribute (const QByteArray &attributeId, int *definitionLevelPtr=NULL) const override
 Get attribute using its ID.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Additional Inherited Members

- Public Types inherited from icomp::CSimComponentContextBase
typedef istd::TIFactory< icomp::IComponentComponentsFactory
 
- Protected Types inherited from icomp::CSimComponentContextBase
typedef QMap< QByteArray, IComponentSharedPtrComponentsMap
 
typedef QMap< QByteArray, const ComponentsFactory * > FactoriesMap
 
- Protected Member Functions inherited from icomp::CSimComponentContextBase
template<class AttrType >
bool IsAttributeTypeCorrect (const QByteArray &attributeId)
 Check if attribute type is corrected.
 
- Static Protected Member Functions inherited from istd::CIdManipBase
static bool SplitId (const QByteArray &complexId, QByteArray &baseId, QByteArray &subId)
 Split component ID into separated ID's.
 
static QByteArray JoinId (const QByteArray &baseId, const QByteArray &subId)
 Join base component ID and sub ID into composed component ID.
 
- Protected Attributes inherited from icomp::CSimComponentContextBase
ComponentsMap m_componentsMap
 
FactoriesMap m_factoriesMap
 

Detailed Description

template<class Base>
class icomp::TSimComponentWrap< Base >::SimulationContext

Definition at line 175 of file TSimComponentWrap.h.

Constructor & Destructor Documentation

◆ SimulationContext()

template<class Base >
icomp::TSimComponentWrap< Base >::SimulationContext::SimulationContext ( const IComponentStaticInfo infoPtr)
inlineexplicit

Definition at line 178 of file TSimComponentWrap.h.

◆ ~SimulationContext()

template<class Base >
icomp::TSimComponentWrap< Base >::SimulationContext::~SimulationContext ( )
inline

Definition at line 183 of file TSimComponentWrap.h.

Member Function Documentation

◆ CreateSubcomponent()

template<class Base >
IComponentUniquePtr icomp::TSimComponentWrap< Base >::SimulationContext::CreateSubcomponent ( const QByteArray &  componentId) const
inline

◆ GetContextId()

template<class Base >
virtual const QByteArray & icomp::TSimComponentWrap< Base >::SimulationContext::GetContextId ( ) const
inlineoverridevirtual

Get ID of this component in the context tree.

This should be unique for all elements in the same tree level.

Implements icomp::IComponentContext.

Definition at line 188 of file TSimComponentWrap.h.

◆ GetSubcomponent()

template<class Base >
IComponentSharedPtr icomp::TSimComponentWrap< Base >::SimulationContext::GetSubcomponent ( const QByteArray &  componentId) const
inline

The documentation for this class was generated from the following file: