You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------
// Dr.Frucht Systems Ltd.
// Copyright � 2000-2016. All Rights Reserved.
// Version 2.0 3/30/2016
// Last modification: 3/30/2016
// PROJECT:
// SUBSYSTEM:
// FILE: basicLogEngine.h
// AUTHOR: gagua
// OVERVIEW
// ~~~~~~~~
// Header file of basicLogEngine.h
//----------------------------------------------------------------------------
//
#ifndef __BASICLOGENGINE_H_INCL__
#define __BASICLOGENGINE_H_INCL__
#include "basicEvtDispatcher.h"
/**
* TODO: Add class description * * @author gagua */
typedef std::vector<basicEvtDispatcher> DispatcherQueue;typedef std::vector<basicEvtDispatcher *> pDispatcherQueue;
#pragma pack(1)
typedef enum LOG_LEVEL{ LL_ALL = 0, LL_DEBUG = 1, LL_VERBOSE = 2, LL_INFO = 3, LL_ERROR = 128, LL_SILENT = 255} LOG_LEVEL;#pragma pack()
class basicLogEngine {public: // Method to fetch singleton instance.
static basicLogEngine* getInstance();
// Destructor
virtual ~basicLogEngine(); bool attach( basicEvtDispatcher *EvtDsp ); void logEvt( basicEvent *Evt );protected: // Constructor - protected so users cannot call it.
basicLogEngine();
private: // private static member referencing the single instance of the object
// TODO: Replace basicLogEngine with the type of object you want to
// return the single instance of
static basicLogEngine* _instance; //static pEventQueue m_vpEventQueue;
pDispatcherQueue m_vpDispatcherQueue; // Copy constructor
// Declared but not defined to prevent auto-generated
// copy constructor. Refer to "Effective C++" by Meyers
basicLogEngine(const basicLogEngine& src);
// Assignment operator
// Declared but not defined to prevent auto-generated
// assignment operator. Refer to "Effective C++" by Meyers
basicLogEngine& operator=(const basicLogEngine& src);
};
// Constructor implementation
inline basicLogEngine::basicLogEngine(){}
// Destructor implementation
inline basicLogEngine::~basicLogEngine(){}
// TODO: Uncomment the copy constructor when you need it.
//inline basicLogEngine::basicLogEngine(const basicLogEngine& src)
//{
// // TODO: copy
//}
// TODO: Uncomment the assignment operator when you need it.
//inline basicLogEngine& basicLogEngine::operator=(const basicLogEngine& rhs)
//{
// if (this == &rhs) {
// return *this;
// }
//
// // TODO: assignment
//
// return *this;
//}
#endif // __BASICLOGENGINE_H_INCL__
|