algorithm.h

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

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

#ifndef __ALGORITHM_H__
#define __ALGORITHM_H__

#include <copyright.h>

#include <kernel/basic/persistent.h>

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

class Structure;

//-------------------------------------------------------------------
// Class.........: Algorithm
// Author........: Aleksander 豩rn
// Date..........: 960307
// Description...: Base class for algorithm objects.
// Revisions.....:
//===================================================================

class Algorithm : public Persistent {
public:

  //- Type definitions...............................................
	typedef Vector(Handle<Algorithm>) Handles;

public:

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

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

  //- Parameter manipulation.........................................
	virtual String     GetParameters() const;
	virtual bool       GetOutputFilenames(Vector(String) &filenames) const;
	virtual bool       SetParameters(const String &parameters, bool warn = true);
	virtual bool       SetParameter(const String &keyword, const String &value);

	//- Algorithm application..........................................
	virtual bool       IsApplicable(const Structure &structure, bool warn = true) const;
  virtual Structure *Apply(Structure &structure) const = 0;

};

#endif

⌨️ 快捷键说明

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