📄 algorithm.h
字号:
//-------------------------------------------------------------------
// 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 ¶meters, 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -