bes Updated for version 3.20.13
|
Concrete class for NcML <attribute> element. More...
#include <AttributeElement.h>
Public Member Functions | |
void | addPreDeleteCB (UseCountHitZeroCB *pCB) |
AttributeElement (const AttributeElement &proto) | |
virtual AttributeElement * | clone () const |
virtual int | getRefCount () const |
virtual const string & | getTypeName () const |
virtual void | handleBegin () |
virtual void | handleContent (const std::string &content) |
virtual void | handleContent (const string &content) |
virtual void | handleEnd () |
int | line () const |
virtual int | ref () const |
virtual void | removeFromPool () const |
void | removePreDeleteCB (UseCountHitZeroCB *pCB) |
virtual void | setAttributes (const XMLAttributeMap &attrs) |
void | setParser (NCMLParser *p) |
virtual string | toString () const |
virtual int | unref () const |
virtual bool | validateAttributes (const XMLAttributeMap &attrs, const std::vector< std::string > &validAttrs, std::vector< std::string > *pInvalidAttrs=0, bool printInvalid=true, bool throwOnError=true) |
Static Public Member Functions | |
static bool | areAllAttributesValid (const XMLAttributeMap &attrMap, const std::vector< std::string > &validAttrs, std::vector< std::string > *pInvalidAttributes=0) |
static bool | isValidAttribute (const std::vector< std::string > &validAttrs, const std::string &attr) |
static std::string | printAttributeIfNotEmpty (const std::string &attrName, const std::string &attrValue) |
Static Public Attributes | |
static const string | _default_global_container |
static const string | _sTypeName = "attribute" |
static const vector< string > | _sValidAttributes = getValidAttributes() |
Protected Attributes | |
NCMLParser * | _parser |
Concrete class for NcML <attribute> element.
This element handles the addition, modification, and renaming of attributes in the currently loaded DDX.
If _type="Structure", then it refers to an attribute container.
Definition at line 52 of file AttributeElement.h.
ncml_module::AttributeElement::AttributeElement | ( | ) |
Definition at line 49 of file AttributeElement.cc.
ncml_module::AttributeElement::AttributeElement | ( | const AttributeElement & | proto | ) |
Definition at line 56 of file AttributeElement.cc.
|
virtual |
Definition at line 68 of file AttributeElement.cc.
|
inherited |
Add uniquely. If it is added agan, the second time is ignored.
Definition at line 129 of file RCObject.cc.
|
staticinherited |
Definition at line 229 of file NCMLElement.cc.
|
virtual |
Make and return a copy of this. Used by the factory from a prototype.
Implements ncml_module::NCMLElement.
Definition at line 80 of file AttributeElement.cc.
|
virtualinherited |
Get the current reference count
Implements agg_util::RCObjectInterface.
Definition at line 101 of file RCObject.cc.
|
virtual |
Return the type of the element, which should be: the same as ConcreteClassName::getTypeName()
Implements ncml_module::NCMLElement.
Definition at line 74 of file AttributeElement.cc.
|
virtual |
Handle a begin on this element. Called after creation and it is assumed the attributes and _parser are already set.
Implements ncml_module::NCMLElement.
Definition at line 98 of file AttributeElement.cc.
|
virtualinherited |
Handle the characters content for the element. Default impl throws if the content is not all whitespace. Subclasses that handle non-whitespace content should override.
content | the string of characters in the element content. |
Reimplemented in ncml_module::DimensionElement, ncml_module::ExplicitElement, ncml_module::NetcdfElement, ncml_module::ReadMetadataElement, ncml_module::RemoveElement, ncml_module::ScanElement, and ncml_module::ValuesElement.
Definition at line 165 of file NCMLElement.cc.
|
virtual |
Definition at line 104 of file AttributeElement.cc.
|
virtual |
Handle the closing of this element.
Implements ncml_module::NCMLElement.
Definition at line 122 of file AttributeElement.cc.
|
staticinherited |
Definition at line 217 of file NCMLElement.cc.
|
inherited |
Return the current parse line number. Shorthand
Definition at line 160 of file NCMLElement.cc.
|
staticinherited |
Helper for subclasses implementing toString().
Definition at line 212 of file NCMLElement.cc.
|
virtualinherited |
Increase the reference count by one. const since we do not consider the ref count part of the semantic constness of the rep
Implements agg_util::RCObjectInterface.
Definition at line 71 of file RCObject.cc.
|
virtualinherited |
If the object is in an auto-delete pool, remove it from the pool and force it to only delete when it's ref count goes to 0. Useful when we desire a particular object stay around outside of the pool's lifetime.
Implements agg_util::RCObjectInterface.
Definition at line 106 of file RCObject.cc.
|
inherited |
Remove it exists. If not, this unchanged.
Definition at line 142 of file RCObject.cc.
|
virtual |
Set the attributes of this from the map.
attrs | the attribute map to set this class to. |
Implements ncml_module::NCMLElement.
Definition at line 86 of file AttributeElement.cc.
|
inherited |
Definition at line 153 of file NCMLElement.cc.
|
virtual |
Return a string describing the element
Implements ncml_module::NCMLElement.
Definition at line 128 of file AttributeElement.cc.
|
virtualinherited |
Decrease the reference count by one. If it goes from 1 to 0, delete this and this is no longer valid.
It is illegal to unref() an object with a count of 0. We don't throw to allow use in dtors, so the caller is assumed not to do it!
const since the reference count is not part of the semantic constness of the rep
Implements agg_util::RCObjectInterface.
Definition at line 78 of file RCObject.cc.
|
virtualinherited |
Check that the given attributes are all in the valid set, otherwise fill in *pInvalidAttrs with the problematic ones if it's not null. If pInvalidAttrs && printInvalid is set, we print the problematic attributes to BESDEBUG "ncml" channel If throwOnError is set, we throw a parse error instead of returning.
Definition at line 174 of file NCMLElement.cc.
|
static |
Definition at line 73 of file AttributeElement.h.
|
protectedinherited |
Definition at line 187 of file NCMLElement.h.
|
static |
Definition at line 71 of file AttributeElement.h.
|
static |
Definition at line 72 of file AttributeElement.h.