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

Version Path
rhodes-3.0.2 platform/shared/logging/RhoLogCat.h
rhodes-3.0.2.beta.1 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1.beta.8 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1.beta.7 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1.beta.6 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1.beta.5 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1.beta.4 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1.beta.3 platform/shared/logging/RhoLogCat.h
rhodes-3.0.1.beta.2 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0.beta.7 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0.beta.6 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0.beta.5 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0.beta.4 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0.beta.3 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0.beta.2 platform/shared/logging/RhoLogCat.h
rhodes-3.0.0.beta.1 platform/shared/logging/RhoLogCat.h
rhodes-2.4.1 platform/shared/logging/RhoLogCat.h
rhodes-2.4.1.beta.1 platform/shared/logging/RhoLogCat.h