47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TWSelectItem 类
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TWSelectItem 声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _TWSELECTITEM_H_
|
|
#define _TWSELECTITEM_H_
|
|
|
|
#ifndef _TWDICTITEM_H_
|
|
#include "TWDictItem.h"
|
|
#endif
|
|
|
|
#ifndef _TLIST_H_
|
|
#include "TList.h"
|
|
#endif
|
|
|
|
class GEOAPI TWSelectItem : public TWDictItem, public TList<CString>
|
|
{
|
|
public:
|
|
|
|
virtual ~TWSelectItem();
|
|
|
|
virtual void operator >> (CArchive &ar);
|
|
|
|
virtual void operator << (CArchive &ar);
|
|
|
|
virtual void CopyData(const TWDictItem &src);
|
|
|
|
//自定义类型类型号大于100
|
|
virtual int GetType()const;
|
|
|
|
//外部要保证m_data为有效索引
|
|
CString GetSelString()const;
|
|
virtual void saveToJson(WValue &v);
|
|
virtual void loadByJson(const WValue &v);
|
|
|
|
public:
|
|
|
|
int m_data;
|
|
};
|
|
|
|
#endif |