Sha256: 4b9cabcb52abe61073b81605fb7fb2d947b00a97fd098b305c4505ac87bca031
Contents?: true
Size: 681 Bytes
Versions: 16
Compression:
Stored size: 681 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 #endif //_RHOLOGCAT_H_
Version data entries
16 entries across 16 versions & 1 rubygems