You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
951 B
C++

//////////////////////////////////////////////////////////////////////////////
//Îļþ Name.h
/////////////////////////////////////////////////////////////////////////////
#pragma once
namespace GObjects
{
class CName /*: public CObjectBase*/
{
public:
CName(LPCTSTR lpName = NULL);
CName(CName& nm);
virtual ~CName(void);
virtual CString GetXmlType() { return _T("Name"); }
virtual CString GetName(void);
virtual int SetName(LPCTSTR lpString);
//virtual int SetName(CString strName);
virtual void Clear(void);
// virtual void Serialize(CArchive& ar, const short &ver);
// //ÏÔʾ
// virtual void Draw(CXyDCBase& dc);
// //¿Ë¡£¬Ð麯Êý
// virtual void Clone(CObjectBase& object) { *this = *((CName*)&object);}
void operator=(CName& nm);
void operator=(CString str);
BOOL operator==(CString str);
BOOL IsEmptyName(void);
int GetLength(void);
protected:
CString name;
};
};
using namespace GObjects;