mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +00:00
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
#ifndef Hadrons____FILEBASENAME____hpp_
|
|
#define Hadrons____FILEBASENAME____hpp_
|
|
|
|
#include <Grid/Hadrons/Global.hpp>
|
|
#include <Grid/Hadrons/Module.hpp>
|
|
#include <Grid/Hadrons/ModuleFactory.hpp>
|
|
|
|
BEGIN_HADRONS_NAMESPACE
|
|
|
|
/******************************************************************************
|
|
* ___FILEBASENAME___ *
|
|
******************************************************************************/
|
|
BEGIN_MODULE_NAMESPACE(___NAMESPACE___)
|
|
|
|
class ___FILEBASENAME___Par: Serializable
|
|
{
|
|
public:
|
|
GRID_SERIALIZABLE_CLASS_MEMBERS(___FILEBASENAME___Par,
|
|
unsigned int, i);
|
|
};
|
|
|
|
class ___FILEBASENAME___: public Module<___FILEBASENAME___Par>
|
|
{
|
|
public:
|
|
// constructor
|
|
___FILEBASENAME___(const std::string name);
|
|
// destructor
|
|
virtual ~___FILEBASENAME___(void) = default;
|
|
// dependency relation
|
|
virtual std::vector<std::string> getInput(void);
|
|
virtual std::vector<std::string> getOutput(void);
|
|
// setup
|
|
virtual void setup(void);
|
|
// execution
|
|
virtual void execute(void);
|
|
};
|
|
|
|
END_MODULE_NAMESPACE
|
|
|
|
MODULE_REGISTER_NS(___FILEBASENAME___, ___NAMESPACE___);
|
|
|
|
END_HADRONS_NAMESPACE
|
|
|
|
#endif // Hadrons____FILEBASENAME____hpp_
|