ICF 3.0.5.47
Technical documentation of ICF Libraries
ilog::TLoggerCompWrap< Base > Class Template Reference

Wrapper provider of log-functionality for component based implementations. More...

#include <TLoggerCompWrap.h>

Inherits Base, and ilog::CLoggerBase.

Inherited by iproc::TSyncProcessorCompBase< iipr::IImageToFeatureProcessor >, iproc::TSyncProcessorCompBase< IImageToFeatureProcessor >, iproc::TSyncProcessorCompBase< ILineProjectionProcessor >, iproc::TSyncProcessorCompBase< IDataSequenceCorrelationProcessor >, iproc::TSyncProcessorCompBase< IDataSequenceStatisticsProcessor >, ibase::CTranslationManagerComp, icam::CBitmapJoinerCompBase, icam::CCameraDelegatorComp, icamgui::CFileAcquisitionComp, icmpstr::CRegistryPreviewComp, icmpstr::CRegistrySerializerComp, idoc::CMultiPageDocumentFilePersistenceComp, idocgui::CClipboardSerializerComp, ifile::CAutoPersistenceCompBase, ifile::CFileListProviderComp, ifile::CFileSystemInfoProviderComp, ifile::CSettingsSerializerComp, ifilegui::CFileDialogPersistenceComp, ifileproc::CComposedCopyFilesComp, ifileproc::CCopyAppComp, ifileproc::CCopyFilesTreeComp, ifileproc::CExternalFileConverterComp, ifileproc::CFileConvertOverProcessorComp, ifileproc::CFileCopyOverPersistenceComp, ifileproc::CFileInfoCopyComp, ifileproc::CFileNamingComp, ifileproc::CProcessingResultsReviewComp, iimg::CBitmapPersistenceComp, iinsp::CInspectionTaskComp, iinsp::CSupplierCompBase, iipr::CDelegatedBitmapSupplierComp, iipr::CHoughLineFinderComp, iipr::CHoughLineFromPosFinderComp, iipr::CSelectableCalibrationProviderComp, ipackage::CPackagesLoaderComp, ipackage::CRegistriesManagerComp, ipackage::CRegistryCodeSaverComp, iproc::CIterativeProcessorComp, iproc::CModelBasedProcessingTriggerComp, iproc::TSyncProcessorCompBase< Base, Interface >, iprocgui::CDocumentProcessingManagerCompBase, and istdgui::CProcessStartCommandComp.

Collaboration diagram for ilog::TLoggerCompWrap< Base >:

Public Types

enum  MessageId { MI_BAD_DEPENDENCY = 0x8a340 }
 
typedef Base BaseClass
 
typedef ilog::CLoggerBase BaseClass2
 

Protected Member Functions

virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override
 Decorate message parts before outputting.
 
void OnComponentCreated () override
 
void OnComponentDestroyed () override
 
- Protected Member Functions inherited from ilog::CLoggerBase
bool IsVerboseEnabled () const
 Check if verbose messages are enabled.
 
bool SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const
 Send verbose message.
 
bool SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send info message to log.
 
bool SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send warning message to log.
 
bool SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send error message to log.
 
bool SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send critical message to log.
 
bool SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once info message to log.
 
bool SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once warning message to log.
 
bool SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once error message to log.
 
bool SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once critical message to log.
 
bool SendUserMessage (const istd::IInformationProvider *messagePtr) const
 Send message with user object.
 
bool AllowMessageOnceAgain (int id)
 Reset message lock.
 
bool IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override
 Check if any log message is consumed.
 
bool SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override
 Send any message to log.
 
- Protected Member Functions inherited from istd::ILogger

Additional Inherited Members

- Public Member Functions inherited from ilog::CLoggerBase
 CLoggerBase ()
 
const QByteArray & GetVerboseSenderId () const
 Get sender ID for verbose messages.
 
void SetVerboseSenderId (const QByteArray &id)
 Set sender ID for verbose messages.
 
void SetLogPtr (ilog::IMessageConsumer *logPtr) override
 Install log.
 
ilog::IMessageConsumerGetLogPtr () const override
 Get log.
 
- Public Member Functions inherited from ilog::ILoggable
- Protected Attributes inherited from ilog::CLoggerBase
QSet< int > m_onceMessageIds
 

Detailed Description

template<class Base>
class ilog::TLoggerCompWrap< Base >

Wrapper provider of log-functionality for component based implementations.

Definition at line 25 of file TLoggerCompWrap.h.

Member Typedef Documentation

◆ BaseClass

template<class Base >
Base ilog::TLoggerCompWrap< Base >::BaseClass

Definition at line 30 of file TLoggerCompWrap.h.

◆ BaseClass2

template<class Base >
ilog::CLoggerBase ilog::TLoggerCompWrap< Base >::BaseClass2

Definition at line 31 of file TLoggerCompWrap.h.

Member Enumeration Documentation

◆ MessageId

template<class Base >
enum ilog::TLoggerCompWrap::MessageId
Enumerator
MI_BAD_DEPENDENCY 

Definition at line 33 of file TLoggerCompWrap.h.

Member Function Documentation

◆ DecorateMessage()

template<class Base >
void ilog::TLoggerCompWrap< Base >::DecorateMessage ( istd::IInformationProvider::InformationCategory category,
int id,
int flags,
QString & message,
QString & messageSource ) const
overrideprotectedvirtual

Decorate message parts before outputting.

Reimplemented from ilog::CLoggerBase.

Definition at line 69 of file TLoggerCompWrap.h.

References icomp::CComponentContext::GetContextId().

◆ OnComponentCreated()

template<class Base >
void ilog::TLoggerCompWrap< Base >::OnComponentCreated ( )
overrideprotected

Definition at line 95 of file TLoggerCompWrap.h.

◆ OnComponentDestroyed()

template<class Base >
void ilog::TLoggerCompWrap< Base >::OnComponentDestroyed ( )
overrideprotected

Definition at line 110 of file TLoggerCompWrap.h.


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

© Witold Gantzke and Kirill Lepskiy