Sha256: 1c14d8dcb3d69a32233037cb91a046b5b98ecd19864be28163cf4d95aa77d801
Contents?: true
Size: 901 Bytes
Versions: 60
Compression:
Stored size: 901 Bytes
Contents
#ifndef _RHOLOGCAT_H_ #define _RHOLOGCAT_H_ #include "common/RhoPort.h" #include "RhoLogConf.h" namespace rho { class LogCategory{ String m_strName; public: LogCategory(const char* szName = "") : m_strName(szName){} const String& getName()const{ return m_strName; } bool isEmpty()const{ return m_strName.length() == 0; } }; } extern rho::LogCategory __rhoCurrentCategory; #define DEFINE_LOGCLASS static rho::LogCategory __rhoCurrentCategory;\ static rho::LogCategory getLogCategory(){return __rhoCurrentCategory;} #define IMPLEMENT_LOGCLASS(classname, name) \ rho::LogCategory classname::__rhoCurrentCategory = name #define DEFINE_BASELOGCLASS rho::LogCategory __rhoCurrentCategory;\ rho::LogCategory getLogCategory(){return __rhoCurrentCategory;}\ void setLogCategory(const rho::LogCategory& cat){__rhoCurrentCategory = cat;} #endif //_RHOLOGCAT_H_
Version data entries
60 entries across 60 versions & 1 rubygems