kidnapper.h

来自「The ROSETTA C++ library is a collection 」· C头文件 代码 · 共 53 行

H
53
字号
//-------------------------------------------------------------------// Author........: Aleksander 豩rn// Date..........:// Description...:// Revisions.....://===================================================================#ifndef __KIDNAPPER_H__#define __KIDNAPPER_H__#include <copyright.h>#include <kernel/algorithms/scriptalgorithm.h>//-------------------------------------------------------------------// Class.........: Kidnapper// Author........: Aleksander 豩rn// Date..........:// Description...: Simply returns the result of calling the input's //                 GetChild method.////                 For use by command scripts.// Revisions.....: //===================================================================class Kidnapper : public ScriptAlgorithm {protected:  //- Parameters.....................................................	int                 index_;public:  //- Constructors/destructor........................................  Kidnapper();  virtual ~Kidnapper();  //- Methods inherited from Identifier..............................	DECLAREIDMETHODS()  //- Methods inherited from Algorithm...............................	virtual bool        IsApplicable(const Structure &structure, bool warn = true) const;  virtual Structure  *Apply(Structure &structure) const;	virtual String      GetParameters() const;	virtual bool        SetParameter(const String &keyword, const String &value);	//- Local methods..................................................	int                 GetChildIndex() const {return index_;}	bool                SetChildIndex(int index) {index_ = index; return true;}};#endif

⌨️ 快捷键说明

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