Files
envi-code/SourceCode/Code2026/tg_shs/inc/subgeo/TWFlag.h
T
2026-09-28 15:28:50 +08:00

57 lines
989 B
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TWFlag.h
// = Version : ver2.0
// = Author : xlc
// = CreateDate : 2002-09-09
// = Description: ÀàµÄÉùÃ÷
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TWFLAG_H_
#define _TWFLAG_H_
//λ±êÖ¾Àà
class GEOAPI TWFlag
{
public:
TWFlag(int nFlg = 0);
virtual ~TWFlag();
operator int()const;
TWFlag& operator += (int nVal);
TWFlag& operator -= (int nVal);
int operator + (int nVal)const;
int operator - (int nVal)const;
int GetFlag()const;
bool Is(int nVal)const;
bool IsEmptyFlag()const;
bool IsNot(int nVal)const;
bool IsSameFlag(int nVal)const;
void ClearFlag();
void AddFlag(int nVal);
void RemoveFlag(int nVal);
void SetFlag(int nVal);
protected:
int w_flag;
};
typedef TWFlag GRelation;
#endif