30 virtual int init(
int &argc,
char **argv) {
35 std::vector<std::string> inputPaths;
38 "i", &inputPaths,
"Input data-sets (*.vti, *vtu, *vtp)");
40 "o", &
outputPath_,
"Output file name base (no extension)",
true);
47 ret =
load(inputPaths);
67 virtual int save()
const = 0;
80 virtual int load(
const std::vector<std::string> &inputPaths) = 0;
83 template <
class ttkModule>
virtual int setThreadNumber(const int threadNumber)
Basic command line parsing.
int parse(int argc, char **argv)
int setArgument(const std::string &key, double *value, const std::string &description="", const bool &optional=false)
Minimalist debugging class.
virtual int setDebugLevel(const int &debugLevel)
Base editor class for standalone programs. This class parses the the command line,...
~ProgramBase() override=default
virtual int save() const =0
Save the output(s) of the TTK module.
CommandLineParser parser_
virtual int execute()=0
Execute your TTK module here.
virtual int init(int &argc, char **argv)
virtual int load(const std::vector< std::string > &inputPaths)=0
Load a sequence of input data-sets.
COMMON_EXPORTS int globalThreadNumber_
COMMON_EXPORTS int globalDebugLevel_