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

📄 annotatedstructure.h

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

#ifndef __ANNOTATEDSTRUCTURE_H__
#define __ANNOTATEDSTRUCTURE_H__

#include <copyright.h>

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

#include <kernel/basic/handle.h>

//-------------------------------------------------------------------
// Class.........: AnnotatedStructure
// Author........: Aleksander 豩rn
// Date..........:
// Description...: A structure with an attached annotation object.
// Revisions.....:
//===================================================================

class AnnotatedStructure : public Structure {
protected:

	//- Member variables...............................................
 	Handle<Annotation> annotation_;

protected:

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

public:

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

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

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

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

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

	virtual Annotation   *GetAnnotation() const;
	virtual bool          SetAnnotation(Annotation *annotation);

	virtual bool          Touch(const String &action);

};

#endif

⌨️ 快捷键说明

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