00001 #ifndef _MBXMLUTILS_PREPROCESS_H_
00002 #define _MBXMLUTILS_PREPROCESS_H_
00003
00004 #include <fmatvec/atom.h>
00005 #include <boost/locale.hpp>
00006 #include <boost/bind.hpp>
00007 #include <mbxmlutilshelper/dom.h>
00008 #include <mbxmlutils/octeval.h>
00009
00010 namespace MBXMLUtils {
00011
00012
00013 class Preprocess : virtual public fmatvec::Atom {
00014 protected:
00015 typedef std::map<FQN, int> PositionMap;
00016 public:
00017 typedef std::vector<std::pair<std::string, octave_value> > ParamSet;
00018 typedef std::unordered_map<std::string, ParamSet> XPathParamSet;
00019 static void preprocess(boost::shared_ptr<MBXMLUtils::DOMParser> parser,
00020 OctEval &octEval,
00021 std::vector<boost::filesystem::path> &dependencies,
00022 xercesc::DOMElement *&e,
00023
00024
00025 boost::shared_ptr<XPathParamSet> param=boost::shared_ptr<XPathParamSet>(),
00026
00027
00028 const std::string &parentXPath="",
00029
00030 boost::shared_ptr<PositionMap> position=boost::make_shared<PositionMap>()
00031 );
00032 };
00033
00034 }
00035
00036 #endif