www.pudn.com > Library.rar > LibraryObject.h


#include "object.h" 
 
#ifndef _LIBRARYOBJECT_H_ 
#define _LIBRARYOBJECT_H_ 
#include  
#include  
using namespace std; 
class LibraryObject : 
	public Object 
{ 
protected: 
	int index; //编号 
	string name; //名称 
public: 
	LibraryObject(void); 
	LibraryObject(int index,string m_name); 
	LibraryObject(string i_name); 
	string GetName(); //输出名称 
	int GetIndex(); //输出编号 
	virtual void ShowData(); //输出数据 
	void SetIndex(int i_index); //设定编号 
	void SetName(string i_name); //设定名称 
public: 
	~LibraryObject(void); 
}; 
#endif