algorithm.cpp

来自「粗糙集应用软件」· C++ 代码 · 共 84 行

CPP
84
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........: 960307
// Description...:
// Revisions.....:
//===================================================================

#include <stdafx.h> // Precompiled headers.
#include <copyright.h>

#include <kernel/algorithms/algorithm.h>
#include <kernel/algorithms/keyword.h>

#include <kernel/structures/structure.h>

#include <kernel/basic/message.h>

//-------------------------------------------------------------------
// Methods for class Algorithm.
//===================================================================

//-------------------------------------------------------------------
// Constructors/destructor.
//===================================================================

Algorithm::Algorithm() {
}

Algorithm::~Algorithm() {
}

//-------------------------------------------------------------------
// Methods inherited from Identifier.
//===================================================================

IMPLEMENTIDMETHODS(Algorithm, ALGORITHM, Identifier)

//-------------------------------------------------------------------
// Parameter manipulation.
//===================================================================

//-------------------------------------------------------------------
// Method........: GetParameters
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Returns a parsable string describing the algorithm
//                 parameters.
//
//                 Default implementation, should be overloaded where
//                 appropriate.
// Comments......:
// Revisions.....:
//===================================================================

String
Algorithm::GetParameters() const {
	return String("");
}

//-------------------------------------------------------------------
// Method........: GetOutputFilenames
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Returns in-place all names of files that the
//                 algorithm has produced as side-effects if
//                 application went well.
// Comments......: Used for creating file wrappers in project tree,
// Revisions.....:
//===================================================================

bool
Algorithm::GetOutputFilenames(Vector(String) &filenames) const {
	filenames.erase(filenames.begin(), filenames.end());
	return true;
}

//-------------------------------------------------------------------
// Method........: SetParameters
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Parses the input string and sets the algorithm
//                 parameters.
// Comments......: Cannot use nested calls to String::GetToken.
// Revisions.....: A

⌨️ 快捷键说明

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