2017-06-06 17:45:30 +01:00
|
|
|
#ifndef Hadrons____NAMESPACE_______FILEBASENAME____hpp_
|
|
|
|
#define Hadrons____NAMESPACE_______FILEBASENAME____hpp_
|
2016-12-05 08:26:17 +00:00
|
|
|
|
|
|
|
#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);
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename FImpl>
|
|
|
|
class T___FILEBASENAME___: public Module<___FILEBASENAME___Par>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// constructor
|
|
|
|
T___FILEBASENAME___(const std::string name);
|
|
|
|
// destructor
|
2018-04-24 17:55:08 +01:00
|
|
|
virtual ~T___FILEBASENAME___(void) {};
|
2016-12-05 08:26:17 +00:00
|
|
|
// 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);
|
|
|
|
};
|
|
|
|
|
2018-04-23 17:35:01 +01:00
|
|
|
MODULE_REGISTER_TMP(___FILEBASENAME___, T___FILEBASENAME___<FIMPL>, ___NAMESPACE___);
|
2016-12-05 08:26:17 +00:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* T___FILEBASENAME___ implementation *
|
|
|
|
******************************************************************************/
|
|
|
|
// constructor /////////////////////////////////////////////////////////////////
|
|
|
|
template <typename FImpl>
|
|
|
|
T___FILEBASENAME___<FImpl>::T___FILEBASENAME___(const std::string name)
|
|
|
|
: Module<___FILEBASENAME___Par>(name)
|
|
|
|
{}
|
|
|
|
|
|
|
|
// dependencies/products ///////////////////////////////////////////////////////
|
|
|
|
template <typename FImpl>
|
|
|
|
std::vector<std::string> T___FILEBASENAME___<FImpl>::getInput(void)
|
|
|
|
{
|
|
|
|
std::vector<std::string> in;
|
|
|
|
|
|
|
|
return in;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename FImpl>
|
|
|
|
std::vector<std::string> T___FILEBASENAME___<FImpl>::getOutput(void)
|
|
|
|
{
|
|
|
|
std::vector<std::string> out = {getName()};
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
// setup ///////////////////////////////////////////////////////////////////////
|
|
|
|
template <typename FImpl>
|
|
|
|
void T___FILEBASENAME___<FImpl>::setup(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// execution ///////////////////////////////////////////////////////////////////
|
|
|
|
template <typename FImpl>
|
|
|
|
void T___FILEBASENAME___<FImpl>::execute(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
END_MODULE_NAMESPACE
|
|
|
|
|
|
|
|
END_HADRONS_NAMESPACE
|
|
|
|
|
2017-06-06 17:45:30 +01:00
|
|
|
#endif // Hadrons____NAMESPACE_______FILEBASENAME____hpp_
|