25 #ifndef _PANODATA_PTSCRIPTPARSING_H
26 #define _PANODATA_PTSCRIPTPARSING_H
30 #include <vigra/diff2d.hxx>
37 namespace PTScriptParsing {
41 IMPEX bool getPTParam(std::string & output,
const std::string &
line,
const std::string & parameter);
48 bool getIntParam(T & value,
const std::string &
line,
const std::string & name);
51 bool readVar(Variable & var,
int & link,
const std::string &
line);
62 const std::string &
line,
const std::string & var);
68 std::map<std::string, double>
vars;
69 std::map<std::string, int>
links;
112 bool getParam(T & value,
const std::string &
line,
const std::string & name)
118 std::istringstream is(s);
131 std::istringstream is(s);
static const char * varnames[]
bool readVar(Variable &var, int &link, const std::string &line)
bool getIntParam(T &value, const std::string &line, const std::string &name)
bool getPTParam(std::string &output, const std::string &line, const std::string ¶meter)
helper functions for parsing of a script line
static double defaultValues[]
std::map< std::string, double > vars
ImgInfo(const std::string &line)
std::map< std::string, int > links
std::string flatfieldname
bool getDoubleParam(double &d, const std::string &line, const std::string &name)
bool getPTDoubleParam(double &value, int &link, const std::string &line, const std::string &var)
void parse(const std::string &line)