bes
Updated for version 3.20.6
|
30 #include "SimpleLocationParser.h"
34 #include "SaxParserWrapper.h"
39 SimpleLocationParser::SimpleLocationParser() :
44 SimpleLocationParser::~SimpleLocationParser()
52 parser.
parse(filename);
53 std::string ret = _location;
60 if (name ==
"netcdf") {
67 BESDEBUG(
"ncml",
"Parse Warning:" << msg << endl);
72 BESDEBUG(
"ncml",
"Parse Error:" << msg << endl);
virtual void onParseError(std::string msg)
bool parse(const std::string &ncmlFilename)
Do a SAX parse of the ncmlFilename and pass the calls to wrapper parser.
virtual void onParseWarning(std::string msg)
std::string parseAndGetLocation(const std::string &filename)
NcML Parser for adding/modifying/removing metadata (attributes) to existing local datasets using NcML...
const std::string getValueForLocalNameOrDefault(const std::string &localname, const std::string &defVal="") const
Wrapper for libxml SAX parser C callbacks into C++.
virtual void onStartElement(const std::string &name, const XMLAttributeMap &attrs)