bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
SaxParser implementation that just grabs the netcdf@location attribute and returns it. More...
#include <SimpleLocationParser.h>
Public Member Functions | |
virtual void | onCharacters (const std::string &) |
virtual void | onEndDocument () |
virtual void | onEndElement (const std::string &) |
virtual void | onEndElementWithNamespace (const std::string &localname, const std::string &prefix, const std::string &uri)=0 |
virtual void | onParseError (std::string msg) |
virtual void | onParseWarning (std::string msg) |
virtual void | onStartDocument () |
virtual void | onStartElement (const std::string &name, const XMLAttributeMap &attrs) |
virtual void | onStartElementWithNamespace (const std::string &localname, const std::string &prefix, const std::string &uri, const XMLAttributeMap &attributes, const XMLNamespaceMap &namespaces)=0 |
std::string | parseAndGetLocation (const std::string &filename) |
virtual void | setParseLineNumber (int) |
SaxParser implementation that just grabs the netcdf@location attribute and returns it.
Currently will still process the entire file. TODO maybe find a way to early exit?
Definition at line 46 of file SimpleLocationParser.h.
SimpleLocationParser::SimpleLocationParser | ( | ) |
Definition at line 41 of file SimpleLocationParser.cc.
|
virtual |
Definition at line 46 of file SimpleLocationParser.cc.
|
inlinevirtual |
Called when characters are encountered within an element. content is only valid for the call duration. Note: this will return all whitespace in the document as well, which makes it messy to use.
Implements ncml_module::SaxParser.
Definition at line 75 of file SimpleLocationParser.h.
|
inlinevirtual |
Implements ncml_module::SaxParser.
Definition at line 65 of file SimpleLocationParser.h.
|
inlinevirtual |
Implements ncml_module::SaxParser.
Definition at line 72 of file SimpleLocationParser.h.
|
pure virtualinherited |
SAX2 End element with namespace information.
localname | the localname of the element |
prefix | the namespace prefix or "" on the element |
uri | the uri (or "") associated with the namespace of the element. |
Implemented in ncml_module::NCMLParser, and ncml_module::OtherXMLParser.
|
virtual |
An unrecoverable parse error occurred
Implements ncml_module::SaxParser.
Definition at line 72 of file SimpleLocationParser.cc.
|
virtual |
A recoverable parse error occured.
Implements ncml_module::SaxParser.
Definition at line 67 of file SimpleLocationParser.cc.
|
inlinevirtual |
Implements ncml_module::SaxParser.
Definition at line 62 of file SimpleLocationParser.h.
|
virtual |
We only use this get the the nedcdf@location attribute out
Implements ncml_module::SaxParser.
Definition at line 60 of file SimpleLocationParser.cc.
|
pure virtualinherited |
SAX2 start element call with gets namespace information.
localname | the localname of the element |
prefix | the namespace prefix of the element, or "" if none. |
uri | the uri for the namespace of the element. |
attributes | table of the attributes (excluding namespace attributes prefixed with xmlns) |
namespace | table of all the namespaces specification on this element |
Implemented in ncml_module::NCMLParser, and ncml_module::OtherXMLParser.
string SimpleLocationParser::parseAndGetLocation | ( | const std::string & | filename | ) |
Parse the NcML filename and return the netcdf@location attribute, assuming there's only one netCDF node. If more than one, we'll get the last node's location.
Definition at line 51 of file SimpleLocationParser.cc.
|
inlinevirtualinherited |
Before any of the callbacks are issued, this function is called to let the implementing parser know what line number in the parse the next callback is being issued from to allow for more informative error messages. (Default impl is to ignore it now).
Reimplemented in ncml_module::NCMLParser.
Definition at line 113 of file SaxParser.h.