mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
22 lines
450 B
C++
22 lines
450 B
C++
#ifndef LIMONP_INITONOFF_H
|
|
#define LIMONP_INITONOFF_H
|
|
|
|
namespace Limonp
|
|
{
|
|
class InitOnOff
|
|
{
|
|
public:
|
|
InitOnOff(){_setInitFlag(false);};
|
|
~InitOnOff(){};
|
|
protected:
|
|
bool _isInited;
|
|
bool _getInitFlag()const{return _isInited;};
|
|
bool _setInitFlag(bool flag){return _isInited = flag;};
|
|
public:
|
|
operator bool(){return _getInitFlag();};
|
|
|
|
};
|
|
}
|
|
|
|
#endif
|