history.h

来自「粗糙集应用软件」· C头文件 代码 · 共 74 行

H
74
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#ifndef __HISTORY_H__
#define __HISTORY_H__

#include <copyright.h>

#include <kernel/structures/structure.h>
#include <kernel/structures/historyentry.h>

#include <kernel/basic/handle.h>
#include <kernel/basic/vector.h>

//-------------------------------------------------------------------
// Class prototypes.
//===================================================================

class ifstream;
class ofstream;
class String;

//-------------------------------------------------------------------
// Class.........: History
// Author........: Aleksander 豩rn
// Date..........:
// Description...: The history log of an annotated structure.
// Revisions.....:
//===================================================================

class History : public Structure {
private:

	//- The individual entries.........................................
	HistoryEntry::Handles entries_;

protected:

   //- Constructors...................................................
  History(const History &in);

public:

  //- Constructors/destructor........................................
  History();
  virtual ~History();

  //- Methods inherited from Identifier..............................
	DECLAREIDMETHODS()

  //- Methods inherited from Persistent..............................
  virtual bool        Load(ifstream &stream);
  virtual bool        Save(ofstream &stream) const;

  //- Methods inherited from Structure...............................
  virtual Structure  *Duplicate() const;
  virtual void        Clear();

	//- Assignment operator............................................
	History            &operator=(const History &in);

  //- History entry administration...................................
	bool                Touch(const String &action);

	int                 GetNoEntries() const;
	const HistoryEntry *GetEntry(int i) const;

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?