Public Types | Public Member Functions | Protected Member Functions | List of all members
ilog::CLogComp Class Reference

Data model of logging component. More...

#include <CLogComp.h>

Inheritance diagram for ilog::CLogComp:
ilog::CLogCompBase ilog::CMessageContainer ilog::TMessageDelegatorComp< icomp::CComponentBase > istd::THierarchicalBase< IHierarchicalMessageContainer > ilog::IMessageConsumer icomp::CComponentBase ilog::IMessageConsumer istd::TChangeDelegator< IHierarchicalMessageContainer > istd::IPolymorphic icomp::IComponent istd::IPolymorphic istd::CChangeDelegator istd::IPolymorphic istd::IChangeDelegator istd::IChangeable istd::IPolymorphic

Public Types

typedef CLogCompBase BaseClass
 
typedef ilog::CMessageContainer BaseClass2
 
- Public Types inherited from ilog::CLogCompBase
typedef
ilog::TMessageDelegatorComp
< icomp::CComponentBase
BaseClass
 
typedef QObject BaseClass2
 
- Public Types inherited from ilog::TMessageDelegatorComp< icomp::CComponentBase >
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ilog::IMessageConsumer
typedef istd::TSmartPtr< const
istd::IInformationProvider
MessagePtr
 
- Public Types inherited from istd::THierarchicalBase< IHierarchicalMessageContainer >
typedef istd::TChangeDelegator
< IHierarchicalMessageContainer > 
BaseClass
 
- Public Types inherited from istd::TChangeDelegator< IHierarchicalMessageContainer >
typedef
IHierarchicalMessageContainer 
BaseClass
 
typedef CChangeDelegator BaseClass2
 
- Public Types inherited from istd::CChangeDelegator
typedef istd::IChangeable BaseClass
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0, CF_ALL_DATA, CF_ANY, CF_DESTROYING,
  CF_DELEGATED, CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0, SO_OBSERVE = 1 << 0, SO_COPY = 1 << 1, SO_CLONE = 1 << 2,
  SO_COMPARE = 1 << 3, SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 

Public Member Functions

virtual bool IsMessageSupported (int messageCategory=-1, int messageId=-1, const istd::IInformationProvider *messagePtr=NULL) const
 Check if some messge is supported. More...
 
virtual void AddMessage (const MessagePtr &messagePtr)
 Adds a message item to the container. More...
 
- Public Member Functions inherited from ilog::CLogCompBase
 CLogCompBase ()
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from ilog::CMessageContainer
 CMessageContainer ()
 
 CMessageContainer (const CMessageContainer &container)
 
int GetMessagesCount () const
 Get the number of messages in the container. More...
 
virtual void AddChildContainer (IHierarchicalMessageContainer *childContainerPtr)
 Add a child message container to this object. More...
 
void SetSlaveConsumer (ilog::IMessageConsumer *consumerPtr)
 Set slave message consumer. More...
 
void SetMaxMessageCount (int maxMessageCount=-1)
 Set maximal number of messages in the container. More...
 
virtual bool Serialize (iser::IArchive &archive)
 
virtual int GetWorstCategory () const
 
virtual Messages GetMessages () const
 
virtual void ClearMessages ()
 
virtual int GetChildsCount () const
 
virtual
IHierarchicalMessageContainer
GetChild (int index) const
 
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one. More...
 
virtual bool IsEqual (const istd::IChangeable &object) const
 Compare this object with another object. More...
 
virtual istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 
virtual bool ResetData (CompatibilityMode mode)
 Reset data to its default state. More...
 
- Public Member Functions inherited from istd::THierarchicalBase< IHierarchicalMessageContainer >
 THierarchicalBase ()
 
virtual void SetParentPtr (typename IHierarchicalMessageContainer::InterfaceType *parentPtr)
 
virtual int GetHierarchicalFlags () const
 
virtual typename
IHierarchicalMessageContainer::InterfaceType * 
GetParent () const
 
- Public Member Functions inherited from istd::TChangeDelegator< IHierarchicalMessageContainer >
 TChangeDelegator ()
 
 TChangeDelegator (istd::IChangeable *slavePtr)
 
virtual void OnBeginChanges ()
 Callback function for begin change event. More...
 
virtual void OnEndChanges (const istd::IChangeable::ChangeSet &changeSet)
 Callback function for end change event. More...
 
- Public Member Functions inherited from istd::CChangeDelegator
 CChangeDelegator ()
 
 CChangeDelegator (istd::IChangeable *slavePtr)
 
virtual void SetSlavePtr (istd::IChangeable *slavePtr)
 Gets the slave object pointer. More...
 
virtual istd::IChangeableGetSlavePtr () const
 Sets the slave object pointer. More...
 
- Public Member Functions inherited from istd::IChangeable
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction. More...
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction. More...
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes. More...
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes. More...
 

Protected Member Functions

virtual void WriteMessageToLog (const MessagePtr &messagePtr)
 
virtual void OnComponentCreated ()
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual void OnComponentDestroyed ()
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 

Additional Inherited Members

- Signals inherited from ilog::CLogCompBase
void EmitAddMessage (const MessagePtr &messagePtr)
 
- Static Public Member Functions inherited from ilog::CMessageContainer
template<typename MessageType >
static bool RegisterMessageType (const QByteArray &messageTypeId=QByteArray())
 Register a new message type. More...
 
- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes. More...
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set. More...
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set. More...
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set. More...
 
- Protected Types inherited from ilog::CMessageContainer
typedef QVector
< IHierarchicalMessageContainer * > 
Childs
 
- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 
- Protected Attributes inherited from ilog::CMessageContainer
Messages m_messages
 
Childs m_childContainers
 
ilog::IMessageConsumerm_slaveConsumerPtr
 
int m_maxMessagesCount
 
int m_worstCategory
 
- Protected Attributes inherited from istd::THierarchicalBase< IHierarchicalMessageContainer >
typename
IHierarchicalMessageContainer::InterfaceType * 
m_parentPtr
 

Detailed Description

Data model of logging component.

Definition at line 19 of file CLogComp.h.

Member Typedef Documentation

Definition at line 24 of file CLogComp.h.

Definition at line 25 of file CLogComp.h.

Member Function Documentation

virtual void ilog::CLogComp::AddMessage ( const MessagePtr messagePtr)
virtual

Adds a message item to the container.

Reimplemented from ilog::CLogCompBase.

virtual bool ilog::CLogComp::IsMessageSupported ( int  messageCategory = -1,
int  messageId = -1,
const istd::IInformationProvider messagePtr = NULL 
) const
virtual

Check if some messge is supported.

Parameters
messageCategorycategory of message or -1 if undefined,
See Also
istd::IInformationProvider::InformationCategory.
Parameters
messageIdID of message as defined in istd::IInformationProvider or -1 if undefined.
messagePtroptional message object, or NULL if undefined. Please note, this object will not be stored by receiver.

Reimplemented from ilog::CMessageContainer.

virtual void ilog::CLogComp::OnComponentCreated ( )
protectedvirtual

Reimplemented from icomp::CComponentBase.

virtual void ilog::CLogComp::WriteMessageToLog ( const MessagePtr messagePtr)
protectedvirtual

Implements ilog::CLogCompBase.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy