Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
icmpstr::CRegistryConsistInfoComp Class Reference

#include <CRegistryConsistInfoComp.h>

Inheritance diagram for icmpstr::CRegistryConsistInfoComp:
icomp::CComponentBase icmpstr::IRegistryConsistInfo icomp::IComponent istd::IPolymorphic istd::IPolymorphic

Public Types

enum  MessageId {
  MI_COMPONENT_INACTIVE = 0x819f0, MI_NO_ELEMENT_INFO, MI_BAD_ATTRIBUTE_TYPE, MI_UNDEF_ATTRIBUTE,
  MI_COMPOSITE_FOUND, MI_WRONG_INTERFACE, MI_COMPONENT_NOT_FOUND, MI_REF_NOT_RESOLVED
}
 
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from icmpstr::IRegistryConsistInfo
enum  QueryFlags {
  QF_NONE = 0, QF_ANY_INTERFACE = 1 << 0, QF_INCLUDE_UNDEFINED = 1 << 1, QF_INCLUDE_SUBELEMENTS = 1 << 2,
  QF_DETACHED_FROM_CONTAINER = 1 << 3
}
 

Public Member Functions

virtual icomp::IRegistry::Ids GetCompatibleElements (const icomp::IElementStaticInfo::Ids &interfaceNames, const icomp::IRegistry &registry, int queryFlags) const
 Get list of compatible element names. More...
 
virtual bool IsRegistryValid (const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const
 Check if registry is valid. More...
 
virtual bool IsElementValid (const QByteArray &elementName, const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const
 Check if element is valid. More...
 
virtual bool IsElementWithInfoValid (const QByteArray &elementName, const icomp::IRegistry::ElementInfo &elementInfo, const icomp::IComponentStaticInfo *metaInfoPtr, const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const
 
virtual bool IsAttributeValid (const QByteArray &attributeName, const QByteArray &elementName, const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr, const icomp::IComponentStaticInfo *componentMetaInfoPtr=NULL) const
 Check if attribute is valid. More...
 
virtual bool IsAttributeValueValid (int attributeFlags, const QByteArray &attributeText, const icomp::IElementStaticInfo::Ids &interfaceNames, const icomp::IElementStaticInfo::Ids &optionalInterfaceNames, const icomp::IRegistry &registry, bool ignoreUndef, ilog::IMessageConsumer *reasonConsumerPtr) const
 Check if attribute is valid. More...
 
virtual QIcon GetComponentIcon (const icomp::CComponentAddress &address) const
 Get icon of component. More...
 
- Public Member Functions inherited from icomp::IComponent
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const =0
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0
 
virtual const IComponentContextGetComponentContext () const =0
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)=0
 

Static Public Member Functions

static bool AreTypesCompatible (const QByteArray &metaTypeId, const QByteArray &typeId)
 

Protected Member Functions

icomp::IRegistry::Ids GetCompatibleIds (const QByteArray &elementId, const icomp::IElementStaticInfo &elementStaticInfo, const icomp::IElementStaticInfo::Ids &interfaceNames, int queryFlags) const
 Get list of compatible element ID's. More...
 
bool CheckAttributeCompatibility (const iser::IObject &attribute, const icomp::IAttributeStaticInfo &attributeMetaInfo, const QByteArray &attributeName, const QByteArray &elementName, const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const
 
bool CheckPointedElementCompatibility (int attributeFlags, const QByteArray &pointedElementName, const icomp::IElementStaticInfo::Ids &interfaceNames, const icomp::IElementStaticInfo::Ids &optionalInterfaceNames, const icomp::IRegistry &registry, bool ignoreUndef, const QString &messagePrefix, ilog::IMessageConsumer *reasonConsumerPtr) const
 
bool CheckPointedElementInfoCompatibility (const QByteArray &pointedElementName, const icomp::IElementStaticInfo *pointedMetaInfoPtr, const icomp::IElementStaticInfo::Ids &interfaceNames, const icomp::IElementStaticInfo::Ids &optionalInterfaceNames, bool ignoreUndef, const QString &messagePrefix, ilog::IMessageConsumer *reasonConsumerPtr) const
 

Detailed Description

Definition at line 20 of file CRegistryConsistInfoComp.h.

Member Typedef Documentation

Definition at line 28 of file CRegistryConsistInfoComp.h.

Member Enumeration Documentation

Enumerator
MI_COMPONENT_INACTIVE 
MI_NO_ELEMENT_INFO 
MI_BAD_ATTRIBUTE_TYPE 
MI_UNDEF_ATTRIBUTE 
MI_COMPOSITE_FOUND 
MI_WRONG_INTERFACE 
MI_COMPONENT_NOT_FOUND 
MI_REF_NOT_RESOLVED 

Definition at line 30 of file CRegistryConsistInfoComp.h.

Member Function Documentation

static bool icmpstr::CRegistryConsistInfoComp::AreTypesCompatible ( const QByteArray &  metaTypeId,
const QByteArray &  typeId 
)
static
bool icmpstr::CRegistryConsistInfoComp::CheckAttributeCompatibility ( const iser::IObject attribute,
const icomp::IAttributeStaticInfo attributeMetaInfo,
const QByteArray &  attributeName,
const QByteArray &  elementName,
const icomp::IRegistry registry,
bool  ignoreUndef,
bool  allReasons,
ilog::IMessageConsumer reasonConsumerPtr 
) const
protected
bool icmpstr::CRegistryConsistInfoComp::CheckPointedElementCompatibility ( int  attributeFlags,
const QByteArray &  pointedElementName,
const icomp::IElementStaticInfo::Ids &  interfaceNames,
const icomp::IElementStaticInfo::Ids &  optionalInterfaceNames,
const icomp::IRegistry registry,
bool  ignoreUndef,
const QString &  messagePrefix,
ilog::IMessageConsumer reasonConsumerPtr 
) const
protected
bool icmpstr::CRegistryConsistInfoComp::CheckPointedElementInfoCompatibility ( const QByteArray &  pointedElementName,
const icomp::IElementStaticInfo pointedMetaInfoPtr,
const icomp::IElementStaticInfo::Ids &  interfaceNames,
const icomp::IElementStaticInfo::Ids &  optionalInterfaceNames,
bool  ignoreUndef,
const QString &  messagePrefix,
ilog::IMessageConsumer reasonConsumerPtr 
) const
protected
virtual icomp::IRegistry::Ids icmpstr::CRegistryConsistInfoComp::GetCompatibleElements ( const icomp::IElementStaticInfo::Ids &  interfaceNames,
const icomp::IRegistry registry,
int  queryFlags 
) const
virtual

Get list of compatible element names.

Parameters
interfaceNameslist of interfaces must be implemented.
registryregistry will be looked in.

Implements icmpstr::IRegistryConsistInfo.

icomp::IRegistry::Ids icmpstr::CRegistryConsistInfoComp::GetCompatibleIds ( const QByteArray &  elementId,
const icomp::IElementStaticInfo elementStaticInfo,
const icomp::IElementStaticInfo::Ids &  interfaceNames,
int  queryFlags 
) const
protected

Get list of compatible element ID's.

It include also pointed element.

Parameters
queryFlagsflags of query, see icmpstr::IRegistryConsistInfo::QueryFlags.
subcomponentsFlagif true, subcomponents should be included.
virtual QIcon icmpstr::CRegistryConsistInfoComp::GetComponentIcon ( const icomp::CComponentAddress address) const
virtual

Get icon of component.

Implements icmpstr::IRegistryConsistInfo.

virtual bool icmpstr::CRegistryConsistInfoComp::IsAttributeValid ( const QByteArray &  attributeName,
const QByteArray &  elementName,
const icomp::IRegistry registry,
bool  ignoreUndef,
bool  allReasons,
ilog::IMessageConsumer reasonConsumerPtr,
const icomp::IComponentStaticInfo componentMetaInfoPtr = NULL 
) const
virtual

Check if attribute is valid.

Parameters
attributeNamename of attribute in specified registry element.
elementNamename of registry element in specified registry.
registryregistry object.
ignoreUndefif true, undefined elements will be ignored.
allReasonsif true, all reasons will be explained.
reasonConsumerPtroptional consumer of messages explaining reason of calculated result.
componentMetaInfoPtroptional component meta info (e.g used for providing meta info of embedded components).

Implements icmpstr::IRegistryConsistInfo.

virtual bool icmpstr::CRegistryConsistInfoComp::IsAttributeValueValid ( int  attributeFlags,
const QByteArray &  attributeText,
const icomp::IElementStaticInfo::Ids &  interfaceNames,
const icomp::IElementStaticInfo::Ids &  optionalInterfaceNames,
const icomp::IRegistry registry,
bool  ignoreUndef,
ilog::IMessageConsumer reasonConsumerPtr 
) const
virtual

Check if attribute is valid.

Parameters
refererenceGoaltext of reference value.
isFactorytrue if the relationship type is factory.
registryregistry object.
ignoreUndefif true, undefined elements will be ignored.
allReasonsif true, all reasons will be explained.
reasonConsumerPtroptional consumer of messages explaining reason of calculated result.
componentMetaInfoPtroptional component meta info (e.g used for providing meta info of embedded components).

Implements icmpstr::IRegistryConsistInfo.

virtual bool icmpstr::CRegistryConsistInfoComp::IsElementValid ( const QByteArray &  elementName,
const icomp::IRegistry registry,
bool  ignoreUndef,
bool  allReasons,
ilog::IMessageConsumer reasonConsumerPtr 
) const
virtual

Check if element is valid.

Parameters
attributeNamename of registry element in specified registry.
registryregistry object.
ignoreUndefif true, undefined elements will be ignored.
allReasonsif true, all reasons will be explained.
reasonConsumerPtroptional consumer of messages explaining reason of calculated result.

Implements icmpstr::IRegistryConsistInfo.

virtual bool icmpstr::CRegistryConsistInfoComp::IsElementWithInfoValid ( const QByteArray &  elementName,
const icomp::IRegistry::ElementInfo elementInfo,
const icomp::IComponentStaticInfo metaInfoPtr,
const icomp::IRegistry registry,
bool  ignoreUndef,
bool  allReasons,
ilog::IMessageConsumer reasonConsumerPtr 
) const
virtual
virtual bool icmpstr::CRegistryConsistInfoComp::IsRegistryValid ( const icomp::IRegistry registry,
bool  ignoreUndef,
bool  allReasons,
ilog::IMessageConsumer reasonConsumerPtr 
) const
virtual

Check if registry is valid.

A registry is invalid when it contains unresolved component references.

Parameters
registryregistry object.
ignoreUndefif true, undefined elements will be ignored.
allReasonsif true, all reasons will be explained.
reasonConsumerPtroptional consumer of messages explaining reason of calculated result.

Implements icmpstr::IRegistryConsistInfo.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy