Public Types | Public Member Functions | Static Public Member Functions | List of all members
ilog::TExtMessage< Element > Class Template Reference

Extended message with attached some object. More...

#include <TExtMessage.h>

Inheritance diagram for ilog::TExtMessage< Element >:
ilog::CMessage istd::IInformationProvider iser::IObject istd::IChangeable iser::ISerializable istd::IPolymorphic istd::IChangeable istd::IPolymorphic

Public Types

typedef CMessage BaseClass
 
typedef Element BaseClass2
 
- Public Types inherited from istd::IInformationProvider
enum  InformationCategory {
  IC_NONE, IC_INFO, IC_WARNING, IC_ERROR,
  IC_CRITICAL
}
 Category of information. More...
 
enum  InformationTypeFlags { ITF_DEBUG = 0x1, ITF_SYSTEM = 0x2, ITF_USER = 0x4 }
 Additionally information flags. More...
 
- 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

 TExtMessage ()
 
 TExtMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &text, const QString &source, int flags=0, const QDateTime *timeStampPtr=NULL)
 
virtual QByteArray GetFactoryId () const
 
virtual bool Serialize (iser::IArchive &archive)
 Load or store state of this object as a archive stream. More...
 
virtual bool CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_STRICT)
 Copy this object from another one. More...
 
virtual istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 
- Public Member Functions inherited from ilog::CMessage
 CMessage ()
 
 CMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &text, const QString &source, int flags=0, const QDateTime *timeStampPtr=NULL)
 
void SetMessageValues (istd::IInformationProvider::InformationCategory category, int id, const QString &text, const QString &source, int flags=0, const QDateTime *timeStampPtr=NULL)
 
virtual void SetCategory (istd::IInformationProvider::InformationCategory category)
 
virtual void SetText (const QString &text)
 
virtual void SetSource (const QString &source)
 
virtual QDateTime GetInformationTimeStamp () const
 Get optional time stamp of the information. More...
 
virtual InformationCategory GetInformationCategory () const
 Get category of the information. More...
 
virtual int GetInformationId () const
 Get binary ID of the information using to automatical identification of this information type. More...
 
virtual QString GetInformationDescription () const
 Get the text description of the information. More...
 
virtual QString GetInformationSource () const
 Get the source of the information. More...
 
virtual int GetInformationFlags () const
 Get flags of the information. More...
 
- Public Member Functions inherited from istd::IInformationProvider
 I_DECLARE_ENUM (InformationCategory, IC_NONE, IC_INFO, IC_WARNING, IC_ERROR, IC_CRITICAL)
 
- Public Member Functions inherited from istd::IChangeable
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object. More...
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state. More...
 
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...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from iser::ISerializable
virtual quint32 GetMinimalVersion (int versionId) const
 Get minimal needed version to correct storing of this data. More...
 

Static Public Member Functions

static QByteArray GetTypeName ()
 
- Static Public Member Functions inherited from ilog::CMessage
static QByteArray GetMessageTypeId ()
 
- 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...
 

Additional Inherited Members

- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event. More...
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event. More...
 
- Protected Attributes inherited from ilog::CMessage
istd::IInformationProvider::InformationCategory m_category
 
int m_id
 
QString m_text
 
QString m_source
 
int m_flags
 
QDateTime m_timeStamp
 

Detailed Description

template<class Element>
class ilog::TExtMessage< Element >

Extended message with attached some object.

Definition at line 20 of file TExtMessage.h.

Member Typedef Documentation

template<class Element >
typedef CMessage ilog::TExtMessage< Element >::BaseClass

Definition at line 25 of file TExtMessage.h.

template<class Element >
typedef Element ilog::TExtMessage< Element >::BaseClass2

Definition at line 26 of file TExtMessage.h.

Constructor & Destructor Documentation

template<class Element >
TExtMessage::TExtMessage ( )

Definition at line 54 of file TExtMessage.h.

template<class Element >
TExtMessage::TExtMessage ( istd::IInformationProvider::InformationCategory  category,
int  id,
const QString &  text,
const QString &  source,
int  flags = 0,
const QDateTime *  timeStampPtr = NULL 
)

Definition at line 62 of file TExtMessage.h.

Member Function Documentation

template<class Element >
istd::IChangeable * TExtMessage::CloneMe ( CompatibilityMode  mode = CM_WITHOUT_REFS) const
virtual

Make a copy of this object.

Returns
new instance or NULL, if this operation is not supported.

Reimplemented from ilog::CMessage.

Definition at line 120 of file TExtMessage.h.

References NULL, and istd::TDelPtr< Type, Accessor >::PopPtr().

template<class Element >
bool TExtMessage::CopyFrom ( const istd::IChangeable object,
CompatibilityMode  mode = CM_STRICT 
)
virtual

Copy this object from another one.

Default implementation in istd::IChangeable does nothing.

Reimplemented from ilog::CMessage.

Definition at line 111 of file TExtMessage.h.

template<class Element >
QByteArray TExtMessage::GetFactoryId ( ) const
virtual

Reimplemented from ilog::CMessage.

Definition at line 78 of file TExtMessage.h.

template<class Element >
QByteArray TExtMessage::GetTypeName ( )
static

Definition at line 134 of file TExtMessage.h.

template<class Element >
bool TExtMessage::Serialize ( iser::IArchive archive)
virtual

Load or store state of this object as a archive stream.

Type of operation is depending on archive type.

See Also
iser::IArchive

Reimplemented from ilog::CMessage.

Definition at line 87 of file TExtMessage.h.

References iser::IVersionInfo::AcfVersionId, iser::IArchive::BeginTag(), iser::IArchive::EndTag(), iser::IArchive::GetVersionInfo(), iser::IVersionInfo::GetVersionNumber(), and iser::CArchiveTag::TT_GROUP.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy