GME  13
CompassData.h
Go to the documentation of this file.
00001 // CompassData.h: interface for the CCompassData class.
00002 //
00004 
00005 #if !defined(AFX_COMPASSDATA_H__3CBC0148_048C_4C29_B51C_226D2B5F16FA__INCLUDED_)
00006 #define AFX_COMPASSDATA_H__3CBC0148_048C_4C29_B51C_226D2B5F16FA__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 enum compass_enum
00013 {
00014         CMPS_NORTH                      = 0x001,
00015         CMPS_EAST                       = 0x002,
00016         CMPS_SOUTH                      = 0x004,
00017         CMPS_WEST                       = 0x008,
00018         CMPS_NORTHEAST          = 0x010,
00019         CMPS_SOUTHEAST          = 0x020,
00020         CMPS_SOUTHWEST          = 0x040,
00021         CMPS_NORTHWEST          = 0x080,
00022         CMPS_CENTER                     = 0x100,
00023 };
00024 
00025 class CCompassData  
00026 {
00027 public:
00028         static void ParseMgaCompassValueCheck(const CString& strValue,  UINT & uSmallCaseValue, UINT &uCapitalValue);
00029         static UINT ParseMgaCompassValueOption(const CString &strValue);
00030         static bool bIsSingle(UINT uData);
00031         static CString toString(UINT uData);
00032         static bool ParseCompassValue(CString strValue, UINT &uValue);
00033 
00034         static void toMgaStringOption(CString& strValue, UINT uData);
00035         static void toMgaStringCheck(CString& strValue, UINT uData, bool bIsCapital);
00036 };
00037 
00038 #endif // !defined(AFX_COMPASSDATA_H__3CBC0148_048C_4C29_B51C_226D2B5F16FA__INCLUDED_)