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

Version Path
rhodes-2.0.0.beta7 platform/shared/logging/RhoLogCat.h
rhodes-2.0.0.beta6 platform/shared/logging/RhoLogCat.h
rhodes-2.0.0.beta4 platform/shared/logging/RhoLogCat.h
rhodes-2.0.0.beta3 platform/shared/logging/RhoLogCat.h
rhodes-1.5.5 platform/shared/logging/RhoLogCat.h
rhodes-2.0.0.beta2 platform/shared/logging/RhoLogCat.h
rhodes-2.0.0.beta1 platform/shared/logging/RhoLogCat.h
rhodes-1.5.4 platform/shared/logging/RhoLogCat.h
rhodes-1.5.3 platform/shared/logging/RhoLogCat.h
rhodes-1.5.2 platform/shared/logging/RhoLogCat.h
rhodes-1.5.1 platform/shared/logging/RhoLogCat.h
rhodes-1.5.0 platform/shared/logging/RhoLogCat.h
rhodes-1.4.2 platform/shared/logging/RhoLogCat.h
rhodes-1.4.1 platform/shared/logging/RhoLogCat.h
rhodes-1.4.0 platform/shared/logging/RhoLogCat.h
rhodes-1.2.2 platform/shared/logging/RhoLogCat.h