40 SimpleLocationParser::SimpleLocationParser()
54 parser.
parse(filename);
55 std::string ret = _location;
72 BESDEBUG(
"ncml",
"Parse Warning:" << msg << endl);
78 BESDEBUG(
"ncml",
"Parse Error:" << msg << endl);
std::string parseAndGetLocation(const std::string &filename)
Parse the NcML filename and return the netcdf attribute, assuming there's only one netCDF node...
An abstract superclass for NCMLArray that handles the non-parameterized functionality and allows u...
virtual ~SimpleLocationParser()
const string getValueForLocalNameOrDefault(const string &localname, const string &defVal="") const
If there is an attribute with localname, return its value, else return default.
bool parse(const string &ncmlFilename)
Do a SAX parse of the ncmlFilename and pass the calls to wrapper parser.
Wrapper for libxml SAX parser C callbacks into C++.
virtual void onParseWarning(std::string msg)
A recoverable parse error occured.
virtual void onStartElement(const std::string &name, const XMLAttributeMap &attrs)
We only use this get the the nedcdf attribute out.
virtual void onParseError(std::string msg)
An unrecoverable parse error occurred.
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream