object.h
来自「Linux 环境下」· C头文件 代码 · 共 33 行
H
33 行
#ifndef _BASE_OBJECT_
#define _BASE_OBJECT_
#include <string>
#include <list>
using namespace std;
#include "typedef.h"
class CBaseObject
{
public:
CBaseObject() : id(""), stid(""), name(""), code(0) { }
CBaseObject(string tid, string tstid, string tname, unsigned short tcode)
:id(tid), stid(tstid), name(tname), code(tcode) { }
virtual ~CBaseObject() { };
virtual string GetID() { return id;}
virtual string GetStID() { return stid;}
virtual string GetName() { return name;}
virtual unsigned short GetCode() { return code;}
protected:
string id;
string stid;
string name;
unsigned short code;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?