32#include "SimpleLocationParser.h"
36#include "SaxParserWrapper.h"
41SimpleLocationParser::SimpleLocationParser() :
46SimpleLocationParser::~SimpleLocationParser()
54 parser.
parse(filename);
55 std::string ret = _location;
62 if (name ==
"netcdf") {
69 BESDEBUG(
"ncml",
"Parse Warning:" << msg << endl);
74 BESDEBUG(
"ncml",
"Parse Error:" << msg << endl);
Wrapper for libxml SAX parser C callbacks into C++.
bool parse(const std::string &ncmlFilename)
Do a SAX parse of the ncmlFilename and pass the calls to wrapper parser.
std::string parseAndGetLocation(const std::string &filename)
virtual void onParseWarning(std::string msg)
virtual void onParseError(std::string msg)
virtual void onStartElement(const std::string &name, const XMLAttributeMap &attrs)
const std::string getValueForLocalNameOrDefault(const std::string &localname, const std::string &defVal="") const
NcML Parser for adding/modifying/removing metadata (attributes) to existing local datasets using NcML...