All Classes Namespaces Functions Variables Typedefs Enumerations
xmlflateval.h
1 #ifndef _MBXMLUTILS_XMLFLATEVAL_H_
2 #define _MBXMLUTILS_XMLFLATEVAL_H_
3 
4 #include "eval.h"
5 
6 namespace MBXMLUtils {
7 
12 class XMLFlatEval : public Eval {
13  friend class Eval;
14  protected:
15  XMLFlatEval(std::vector<boost::filesystem::path> *dependencies_=nullptr);
16  public:
17  ~XMLFlatEval() override;
18  static std::string getNameStatic() { return "xmlflat"; }
19  std::string getName() const override { return getNameStatic(); }
20  void addImport(const std::string &code, const xercesc::DOMElement *e) override;
21  bool valueIsOfType(const Value &value, ValueType type) const override;
22  std::map<boost::filesystem::path, std::pair<boost::filesystem::path, bool> >& requiredFiles() const override;
23  void convertIndex(Value &v, bool evalTo1Based) override {}
24  protected:
25  Value createSwigByTypeName(const std::string &typeName) const override;
26  Value callFunction(const std::string &name, const std::vector<Value>& args) const override;
27  Value fullStringToValue(const std::string &str, const xercesc::DOMElement *e=nullptr) const override;
28  void* getSwigThis(const Value &value) const override;
29  std::string getSwigType(const Value &value) const override;
30  private:
31  double cast_double (const Value &value) const override;
32  std::vector<double> cast_vector_double (const Value &value) const override;
33  std::vector<std::vector<double> >cast_vector_vector_double (const Value &value) const override;
34  std::string cast_string (const Value &value) const override;
35  Value create_double (const double& v) const override;
36  Value create_vector_double (const std::vector<double>& v) const override;
37  Value create_vector_vector_double(const std::vector<std::vector<double> >& v) const override;
38  Value create_string (const std::string& v) const override;
39 };
40 
41 } // end namespace MBXMLUtils
42 
43 #endif
Definition: eval.h:78
void convertIndex(Value &v, bool evalTo1Based) override
Definition: xmlflateval.h:23
bool valueIsOfType(const Value &value, ValueType type) const override
Definition: xmlflateval.cc:34
std::string getSwigType(const Value &value) const override
Definition: xmlflateval.cc:66
Value fullStringToValue(const std::string &str, const xercesc::DOMElement *e=nullptr) const override
evaluate the string str using the current parameters and return the result.
Definition: xmlflateval.cc:58
void addImport(const std::string &code, const xercesc::DOMElement *e) override
Definition: xmlflateval.cc:30
Value createSwigByTypeName(const std::string &typeName) const override
create a SWIG object of name typeName.
Definition: xmlflateval.cc:50
Definition: xmlflateval.h:12
void * getSwigThis(const Value &value) const override
get the SWIG pointer of this value.
Definition: xmlflateval.cc:62
std::string getName() const override
Get the type of this evaluator.
Definition: xmlflateval.h:19
Value callFunction(const std::string &name, const std::vector< Value > &args) const override
Definition: xmlflateval.cc:54
std::map< boost::filesystem::path, std::pair< boost::filesystem::path, bool > > & requiredFiles() const override
return a list of all required files of the evaluator (excluding dependent files of libraries) ...
Definition: xmlflateval.cc:45
ValueType
Definition: eval.h:84

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Home