Public Types | Public Member Functions | Protected Member Functions | List of all members
ibase::CConsoleApplicationComp Class Reference

Console (non-gui) application. More...

#include <CConsoleApplicationComp.h>

Inheritance diagram for ibase::CConsoleApplicationComp:
ilog::TLoggerCompWrap< Base > ibase::IApplication ilog::CLoggerBase istd::IPolymorphic ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic

Public Types

typedef ilog::CLoggerComponentBase BaseClass
 
- Public Types inherited from ilog::TLoggerCompWrap< Base >
typedef Base BaseClass
 
typedef ilog::CLoggerBase BaseClass2
 

Public Member Functions

virtual bool InitializeApplication (int argc, char **argv)
 Initialize the application object. More...
 
virtual int Execute (int argc, char **argv)
 Start execution loop of the application. More...
 
virtual QString GetHelpText () const
 Get information about the possible command line arguments of this application. More...
 
virtual QStringList GetApplicationArguments () const
 Get the command line arguments of this application. More...
 
- Public Member Functions inherited from ilog::CLoggerBase
 CLoggerBase ()
 
virtual void SetLogPtr (ilog::IMessageConsumer *logPtr)
 Install log. More...
 
virtual ilog::IMessageConsumerGetLogPtr () const
 Get log. More...
 
virtual void SetTracingEnabled (bool trace)
 Enable/disable tracing. More...
 
virtual bool IsTracingEnabled () const
 Returns true if tracing enabled. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from ilog::CLoggerBase
QSet< int > m_onceMessageIds
 

Detailed Description

Console (non-gui) application.

Definition at line 25 of file CConsoleApplicationComp.h.

Member Typedef Documentation

Definition at line 33 of file CConsoleApplicationComp.h.

Member Function Documentation

virtual int ibase::CConsoleApplicationComp::Execute ( int  argc,
char **  argv 
)
virtual

Start execution loop of the application.

Implements ibase::IApplication.

virtual QStringList ibase::CConsoleApplicationComp::GetApplicationArguments ( ) const
virtual

Get the command line arguments of this application.

Implements ibase::IApplication.

virtual QString ibase::CConsoleApplicationComp::GetHelpText ( ) const
virtual

Get information about the possible command line arguments of this application.

Implements ibase::IApplication.

virtual bool ibase::CConsoleApplicationComp::InitializeApplication ( int  argc,
char **  argv 
)
virtual

Initialize the application object.

Implements ibase::IApplication.

virtual void ibase::CConsoleApplicationComp::OnApplicationShutdown ( )
protectedvirtual

Callback for the application's shutdown.

Default implementation does nothing.

virtual void ibase::CConsoleApplicationComp::OnComponentDestroyed ( )
protectedvirtual

Reimplemented from ilog::TLoggerCompWrap< Base >.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy