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

📄 annotation.h

📁 粗糙集应用软件
💻 H
字号:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#ifndef __ANNOTATION_H__
#define __ANNOTATION_H__

#include <copyright.h>

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

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

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

class ifstream;
class ofstream;

//-------------------------------------------------------------------
// Class.........: Annotation
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Contains various standard or nonstandard (symbolic)
//                 information about a structure.
// Revisions.....:
//===================================================================

class Annotation : public Structure {
private:

  //- Annotation fields..............................................
  String          name_;       // The name of the object.
  String          filename_;   // The physical location of the object.
	String          comments_;   // General comments attached to the object.
  Handle<History> history_;    // History log of actions performed on the object.

protected:

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

public:

  //- Constructor and destructor....................................
	Annotation();
  virtual ~Annotation();

  //- 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();

  virtual const String &GetName() const;
  virtual bool          SetName(const String &name);

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

  //- Annotation field manipulation.................................
  bool                  SetFilename(const String &filename);
  const String         &GetFilename() const;

	bool                  AddComment(const String &comment);
	bool                  SetComments(const String &comments);
	const String         &GetComments() const;

  const History        *GetHistory() const;
	bool                  ClearHistory();
	bool                  Touch(const String &action);

};

#endif

⌨️ 快捷键说明

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