![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Help pointer wrapper for management of a parameter from the parameter set. More...
#include <TParamsPtr.h>
Public Types | |
typedef istd::TPointerBase< const ParameterInterace > | BaseClass |
Public Member Functions | |
TParamsPtr (const ParameterInterace *ptr=nullptr) | |
TParamsPtr (const IParamsSet *parameterSetPtr, const QByteArray ¶meterId, bool isObligatory=true) | |
Construct and initialize the pointer with the given parameter set and parameter ID. | |
TParamsPtr (const IParamsSet *parameterSetPtr, const icomp::TAttributeMember< iattr::CIdAttribute > ¶meterIdAttribute, const icomp::TReferenceMember< ParameterInterace > &defaultRef, bool isObligatory=true) | |
Construct and initialize the pointer with the component parameters. | |
void | Init (const IParamsSet *parameterSetPtr, const QByteArray ¶meterId, bool isObligatory=true) |
Initialize the pointer with the given parameter set and parameter ID. | |
void | Init (const IParamsSet *parameterSetPtr, const icomp::TAttributeMember< iattr::CIdAttribute > ¶meterIdAttribute, const icomp::TReferenceMember< ParameterInterace > &defaultRef, bool isObligatory=true) |
Initialize the pointer with the component parameters. | |
![]() | |
TPointerBase (const ParameterInterace *ptr=nullptr) | |
Construct and assign internal pointer. | |
void | SetPtr (const ParameterInterace *ptr) |
Set value of internal stored pointer. | |
void | Reset () |
Set internal pointer value to nullptr. | |
const ParameterInterace * | get () const |
Return access to internal stored pointer. | |
bool | IsValid () const |
Check if internal pointer not nullptr. | |
const ParameterInterace & | operator* () const |
Get an access to object pointed at. | |
CastedType | Cast () const |
const ParameterInterace * | operator-> () const |
bool | operator== (const TPointerBase< const ParameterInterace > &ptr) const |
bool | operator== (const const ParameterInterace *ptr) const |
bool | operator!= (const TPointerBase< const ParameterInterace > &ptr) const |
bool | operator!= (const const ParameterInterace *ptr) const |
bool | operator< (const TPointerBase< const ParameterInterace > &ptr) const |
bool | operator< (const const ParameterInterace *ptr) const |
bool | operator> (const TPointerBase< const ParameterInterace > &ptr) const |
bool | operator> (const const ParameterInterace *ptr) const |
bool | operator<= (const TPointerBase< const ParameterInterace > &ptr) const |
bool | operator<= (const const ParameterInterace *ptr) const |
bool | operator>= (const TPointerBase< const ParameterInterace > &ptr) const |
bool | operator>= (const const ParameterInterace *ptr) const |
operator bool () const | |
Additional Inherited Members | |
![]() | |
TPointerBase< const ParameterInterace > & | operator= (const TPointerBase< const ParameterInterace > ptr) |
const ParameterInterace *& | GetPtrRef () |
void | Swap (TPointerBase &ptr) |
Swap two pointers. | |
![]() | |
const ParameterInterace * | m_ptr |
Help pointer wrapper for management of a parameter from the parameter set.
Definition at line 31 of file TParamsPtr.h.
istd::TPointerBase<const ParameterInterace> iprm::TParamsPtr< ParameterInterace >::BaseClass |
Definition at line 34 of file TParamsPtr.h.
iprm::TParamsPtr< ParameterInterace >::TParamsPtr | ( | const ParameterInterace * | ptr = nullptr | ) |
Definition at line 83 of file TParamsPtr.h.
iprm::TParamsPtr< ParameterInterace >::TParamsPtr | ( | const IParamsSet * | parameterSetPtr, |
const QByteArray & | parameterId, | ||
bool | isObligatory = true ) |
Construct and initialize the pointer with the given parameter set and parameter ID.
parameterSetPtr | parameter set, parameter will be taken from this set. |
parameterId | ID of parameter in the set. |
isObligatory | indicate, that this parameter is obligatory. |
Definition at line 90 of file TParamsPtr.h.
iprm::TParamsPtr< ParameterInterace >::TParamsPtr | ( | const IParamsSet * | parameterSetPtr, |
const icomp::TAttributeMember< iattr::CIdAttribute > & | parameterIdAttribute, | ||
const icomp::TReferenceMember< ParameterInterace > & | defaultRef, | ||
bool | isObligatory = true ) |
Construct and initialize the pointer with the component parameters.
parameterSetPtr | parameter set, parameter will be taken from this set. |
parameterIdAttribute | component attribute storing ID of parameter in the set. |
defaultRef | component reference used if parameter is not found in the set. |
isObligatory | indicate, that this parameter is obligatory. |
Definition at line 97 of file TParamsPtr.h.
void iprm::TParamsPtr< ParameterInterace >::Init | ( | const IParamsSet * | parameterSetPtr, |
const icomp::TAttributeMember< iattr::CIdAttribute > & | parameterIdAttribute, | ||
const icomp::TReferenceMember< ParameterInterace > & | defaultRef, | ||
bool | isObligatory = true ) |
Initialize the pointer with the component parameters.
parameterSetPtr | parameter set, parameter will be taken from this set. |
parameterIdAttribute | component attribute storing ID of parameter in the set. |
defaultRef | component reference used if parameter is not found in the set. |
isObligatory | indicate, that this parameter is obligatory. |
Definition at line 143 of file TParamsPtr.h.
References icomp::TReferenceMember< Interface >::get(), istd::CClassInfo::GetName(), iprm::IParamsSet::GetParameter(), iprm::IParamsSet::GetParamIds(), icomp::TAttributeMember< Attribute >::IsValid(), and icomp::TReferenceMember< Interface >::IsValid().
void iprm::TParamsPtr< ParameterInterace >::Init | ( | const IParamsSet * | parameterSetPtr, |
const QByteArray & | parameterId, | ||
bool | isObligatory = true ) |
Initialize the pointer with the given parameter set and parameter ID.
parameterSetPtr | parameter set, parameter will be taken from this set. |
parameterId | ID of parameter in the set. |
isObligatory | indicate, that this parameter is obligatory. |
Definition at line 108 of file TParamsPtr.h.
References iprm::IParamsSet::GetParameter(), iprm::IParamsSet::GetParamIds(), and I_IF_DEBUG.
© Witold Gantzke and Kirill Lepskiy