#pragma once
|
|
#include <vector>
|
|
typedef std::vector<CString> VectorString;
|
typedef std::vector<CString>::iterator VectorStringIt;
|
typedef std::vector<CString>::const_iterator constVectorStringIt;
|
|
typedef std::vector<int> VectorInt;
|
typedef std::vector<int>::iterator VectorIntIt;
|
typedef std::vector<int>::const_iterator constVectorIntIt;
|
|
enum RcpZoneData { RCP_ZONE_DATA_PIXEL=0, RCP_ZONE_DATA_CS, RCP_ZONE_DATA_RED, RCP_ZONE_DATA_GREEN,RCP_ZONE_DATA_BLUE, RCP_ZONE_DATA_COUNT };
|
enum RcpZoneIndex { RCP_ZONE_INDEX_Z0=0, RCP_ZONE_INDEX_Z1, RCP_ZONE_INDEX_Z2, RCP_ZONE_INDEX_Z3, RCP_ZONE_INDEX_Z4, RCP_ZONE_INDEX_Z5,
|
RCP_ZONE_INDEX_Z6, RCP_ZONE_INDEX_Z7, RCP_ZONE_INDEX_Z8, RCP_ZONE_INDEX_Z9, RCP_ZONE_INDEX_Z10, RCP_ZONE_INDEX_Z11,
|
RCP_ZONE_INDEX_Z12, RCP_ZONE_INDEX_Z13, RCP_ZONE_INDEX_Z14, RCP_ZONE_INDEX_Z15, RCP_ZONE_INDEX_COUNT };
|
|
class AFX_EXT_CLASS CRcpZoneInfo
|
{
|
public:
|
CRcpZoneInfo(void);
|
CRcpZoneInfo(int nType);
|
virtual ~CRcpZoneInfo(void);
|
|
public:
|
void Reset(int nType);
|
void SetInfo(const CRcpZoneInfo& rhs);
|
void GetInfo(CRcpZoneInfo& rhs);
|
|
// setter
|
void SetZoneType(int nType) { m_nZoneType = nType; }
|
void SetZoneString(const CString& strString);
|
void SetZoneVecString();
|
|
// getter
|
int GetZoneType() const { return m_nZoneType; }
|
CString GetZoneString() const { return m_strZoneString; }
|
VectorString GetVecZoneString() const { return m_vecZoneString; }
|
VectorInt GetVecZoneNumber() const { return m_vecZoneNumber; }
|
|
protected:
|
int GetZoneNumber(const CString& strZone);
|
|
public:
|
int m_nZoneType;
|
CString m_strZoneString;
|
VectorString m_vecZoneString;
|
VectorInt m_vecZoneNumber;
|
};
|
typedef std::vector<CRcpZoneInfo> VectorRcpZoneInfo;
|
typedef std::vector<CRcpZoneInfo>::iterator VectorRcpZoneInfoIt;
|
typedef std::vector<CRcpZoneInfo>::const_iterator constVectorRcpZoneInfoIt;
|