⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 history.h

📁 粗糙集应用软件
💻 H
字号:
//-------------------------------------------------------------------
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -