Public Types | Public Member Functions | Protected Member Functions | List of all members
icomp::TAttributeMember< Attribute > Class Template Reference

Pointer to component attribute. More...

#include <TAttributeMember.h>

Public Types

typedef Attribute AttributeType
 
typedef Attribute::ValueType AttributeValueType
 
typedef void InterfaceType
 

Public Member Functions

 TAttributeMember ()
 
void Init (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo)
 Initialize this attribute. More...
 
bool IsValid () const
 Check if this attribute is valid. More...
 
const Attribute * GetAttributePtr () const
 Access to internal attribute pointer. More...
 
const AttributeValueTypeGetOriginalValue () const
 Get value of attribute. More...
 
const Attribute * operator-> () const
 Access to internal attribute pointer. More...
 
const AttributeValueTypeoperator* () const
 Get value of attribute. More...
 

Protected Member Functions

void SetAttribute (const Attribute *attributePtr)
 
bool InitInternal (const IComponent *ownerPtr, const IRealAttributeStaticInfo &staticInfo, const IComponent **definitionComponentPtr)
 Internal initialize of attribute. More...
 

Detailed Description

template<typename Attribute>
class icomp::TAttributeMember< Attribute >

Pointer to component attribute.

Definition at line 26 of file TAttributeMember.h.

Member Typedef Documentation

template<typename Attribute>
typedef Attribute icomp::TAttributeMember< Attribute >::AttributeType

Definition at line 29 of file TAttributeMember.h.

template<typename Attribute>
typedef Attribute::ValueType icomp::TAttributeMember< Attribute >::AttributeValueType

Definition at line 30 of file TAttributeMember.h.

template<typename Attribute>
typedef void icomp::TAttributeMember< Attribute >::InterfaceType

Definition at line 31 of file TAttributeMember.h.

Constructor & Destructor Documentation

template<typename Attribute >
icomp::TAttributeMember< Attribute >::TAttributeMember ( )

Definition at line 91 of file TAttributeMember.h.

Member Function Documentation

template<typename Attribute >
const Attribute * icomp::TAttributeMember< Attribute >::GetAttributePtr ( ) const

Access to internal attribute pointer.

Definition at line 116 of file TAttributeMember.h.

template<typename Attribute >
const TAttributeMember< Attribute >::AttributeValueType & icomp::TAttributeMember< Attribute >::GetOriginalValue ( ) const

Get value of attribute.

The String attributes will not be translated.

Definition at line 125 of file TAttributeMember.h.

References NULL.

template<typename Attribute >
void icomp::TAttributeMember< Attribute >::Init ( const IComponent ownerPtr,
const IRealAttributeStaticInfo staticInfo 
)

Initialize this attribute.

Parameters
ownerPtrpointer to parent component of this attribute.
staticInfostatic info structure creating this attribute.

Definition at line 99 of file TAttributeMember.h.

References NULL.

template<typename Attribute >
bool icomp::TAttributeMember< Attribute >::InitInternal ( const IComponent ownerPtr,
const IRealAttributeStaticInfo staticInfo,
const IComponent **  definitionComponentPtr 
)
protected

Internal initialize of attribute.

Parameters
ownerPtrpointer to parent component of this attribute.
staticInfostatic info structure creating this attribute.
definitionComponentPtroptional pointer will be set with pointer to component defining this attribute. If this attribute was exported it will differ from parent component.

Definition at line 161 of file TAttributeMember.h.

References icomp::IComponentContext::GetAttribute(), icomp::IRealAttributeStaticInfo::GetAttributeId(), icomp::IComponent::GetComponentContext(), icomp::CComponentContext::GetHierarchyAddress(), icomp::IComponent::GetParentComponent(), and NULL.

template<typename Attribute >
bool icomp::TAttributeMember< Attribute >::IsValid ( ) const

Check if this attribute is valid.

Definition at line 107 of file TAttributeMember.h.

References NULL.

Referenced by iprm::TParamsPtr< ParameterInterace >::Init().

template<typename Attribute >
const TAttributeMember< Attribute >::AttributeValueType & icomp::TAttributeMember< Attribute >::operator* ( ) const

Get value of attribute.

Access to object pointed by internal pointer or translated values for String.

Definition at line 143 of file TAttributeMember.h.

References NULL.

template<typename Attribute >
const Attribute * icomp::TAttributeMember< Attribute >::operator-> ( ) const

Access to internal attribute pointer.

Definition at line 134 of file TAttributeMember.h.

template<typename Attribute>
void icomp::TAttributeMember< Attribute >::SetAttribute ( const Attribute *  attributePtr)
protected

Definition at line 154 of file TAttributeMember.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy