OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
ncml_module::XMLAttribute Struct Reference

#include <XMLHelpers.h>

Collaboration diagram for ncml_module::XMLAttribute:
Collaboration graph

Public Member Functions

void fromSAX2NamespaceAttributes (const xmlChar **chunkOfFivePointers)
 Fill in the fields from the SAX2 namespace attributes array. More...
 
string getAsXMLString () const
 Get the standard string version as found in an element: prefix:localname="value" localname="value" if no prefix. More...
 
string getQName () const
 get the name with the prefix:localname if prefix not empty else localname More...
 
XMLAttributeoperator= (const XMLAttribute &rhs)
 
 XMLAttribute (const string &localName="", const string &value="", const string &prefix="", const string &nsURI="")
 
 XMLAttribute (const xmlChar **chunkOfFivePointers)
 Use the SAX2 namespace attribute point list to make this using fromSAX2NamespaceAttributes(chunkOfFivePointers), Layout: {localname, prefix, uri, valueStartPtr, valueEndPtr}. More...
 
 XMLAttribute (const XMLAttribute &proto)
 

Static Public Member Functions

static string getQName (const string &prefix, const string &localname)
 Return he QName for the given prefix and localname. More...
 

Public Attributes

string localname
 
string nsURI
 
string prefix
 
string value
 

Detailed Description

Definition at line 63 of file XMLHelpers.h.

Constructor & Destructor Documentation

ncml_module::XMLAttribute::XMLAttribute ( const string &  localName = "",
const string &  value = "",
const string &  prefix = "",
const string &  nsURI = "" 
)

Definition at line 69 of file XMLHelpers.cc.

ncml_module::XMLAttribute::XMLAttribute ( const xmlChar **  chunkOfFivePointers)

Use the SAX2 namespace attribute point list to make this using fromSAX2NamespaceAttributes(chunkOfFivePointers), Layout: {localname, prefix, uri, valueStartPtr, valueEndPtr}.

Use the SAX2 namespace attribute point list to make it.

Layout: {localname, prefix, uri, valueStartPtr, valueEndPtr}

Definition at line 83 of file XMLHelpers.cc.

References fromSAX2NamespaceAttributes().

Here is the call graph for this function:

ncml_module::XMLAttribute::XMLAttribute ( const XMLAttribute proto)

Definition at line 88 of file XMLHelpers.cc.

Member Function Documentation

void ncml_module::XMLAttribute::fromSAX2NamespaceAttributes ( const xmlChar **  chunkOfFivePointers)

Fill in the fields from the SAX2 namespace attributes array.

Assume it's the start of a chunk of 5 pointers to {localname, prefix, uri, valueStartIter, valueEndIter}

Definition at line 111 of file XMLHelpers.cc.

References localname, nsURI, prefix, value, ncml_module::XMLUtil::xmlCharToString(), and ncml_module::XMLUtil::xmlCharToStringFromIterators().

Referenced by XMLAttribute().

Here is the call graph for this function:

string ncml_module::XMLAttribute::getAsXMLString ( ) const

Get the standard string version as found in an element: prefix:localname="value" localname="value" if no prefix.

Definition at line 139 of file XMLHelpers.cc.

References getQName(), and value.

Here is the call graph for this function:

string ncml_module::XMLAttribute::getQName ( ) const
string ncml_module::XMLAttribute::getQName ( const string &  prefix,
const string &  localname 
)
static

Return he QName for the given prefix and localname.

Definition at line 146 of file XMLHelpers.cc.

References localname.

XMLAttribute & ncml_module::XMLAttribute::operator= ( const XMLAttribute rhs)

Definition at line 97 of file XMLHelpers.cc.

References localname, nsURI, prefix, and value.

Member Data Documentation

string ncml_module::XMLAttribute::localname
string ncml_module::XMLAttribute::nsURI

Definition at line 94 of file XMLHelpers.h.

Referenced by fromSAX2NamespaceAttributes(), and operator=().

string ncml_module::XMLAttribute::prefix

Definition at line 93 of file XMLHelpers.h.

Referenced by fromSAX2NamespaceAttributes(), getQName(), and operator=().


The documentation for this struct was generated from the following files: