Definition at line 63 of file AggregationElement.h.
◆ AggVarIter
◆ addAggregationVariable()
void ncml_module::AggregationElement::addAggregationVariable |
( |
const string & | name | ) |
|
Set the variable with name as an aggregation variable for this aggregation.
◆ addChildDataset()
void ncml_module::AggregationElement::addChildDataset |
( |
NetcdfElement * | pDataset | ) |
|
Add a new dataset to the aggregation for the parse. We now have a strong reference to it.
◆ addPreDeleteCB()
Add uniquely. If it is added agan, the second time is ignored.
◆ addScanElement()
void ncml_module::AggregationElement::addScanElement |
( |
ScanElement * | pScanner | ) |
|
Add a child ScanElement to the Aggregation to be used to to add to the list of child datasets. This will be a strong (ref()'d) reference.
- Parameters
-
pScanner | the element to which to maintain a strong ref and use in the processing. |
◆ areAllAttributesValid()
static bool ncml_module::NCMLElement::areAllAttributesValid |
( |
const XMLAttributeMap & | attrMap, |
|
|
const std::vector< std::string > & | validAttrs, |
|
|
std::vector< std::string > * | pInvalidAttributes = 0 ) |
|
staticinherited |
- Returns
- whether all the attributes in attrMap are in validAttrs. If pInvalidAttributes, fill it in with all the illegal attributes.
◆ clone()
◆ dimName()
const string & ncml_module::AggregationElement::dimName |
( |
| ) |
const |
|
inline |
◆ getAggregationVariableCoordinateAxisType()
const std::string & ncml_module::AggregationElement::getAggregationVariableCoordinateAxisType |
( |
| ) |
const |
◆ getParentDataset()
NetcdfElement * ncml_module::AggregationElement::getParentDataset |
( |
| ) |
const |
|
inline |
◆ getRefCount()
virtual int agg_util::RCObject::getRefCount |
( |
| ) |
const |
|
virtualinherited |
◆ getTypeName()
virtual const string & ncml_module::AggregationElement::getTypeName |
( |
| ) |
const |
|
virtual |
Return the type of the element, which should be: the same as ConcreteClassName::getTypeName()
Implements ncml_module::NCMLElement.
◆ gotVariableAggElement()
bool ncml_module::AggregationElement::gotVariableAggElement |
( |
| ) |
const |
whether this aggregation contained a variableAgg element to select aggregation variables.
◆ handleBegin()
virtual void ncml_module::AggregationElement::handleBegin |
( |
| ) |
|
|
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.
◆ handleContent()
virtual void ncml_module::NCMLElement::handleContent |
( |
const std::string & | content | ) |
|
|
virtualinherited |
◆ handleEnd()
virtual void ncml_module::AggregationElement::handleEnd |
( |
| ) |
|
|
virtual |
◆ isAggregationVariable()
bool ncml_module::AggregationElement::isAggregationVariable |
( |
const string & | name | ) |
const |
- Returns
- whether the variable with name has been added as an aggregation variable
◆ isValidAttribute()
static bool ncml_module::NCMLElement::isValidAttribute |
( |
const std::vector< std::string > & | validAttrs, |
|
|
const std::string & | attr ) |
|
staticinherited |
- Returns
- whether the given attr is in the array validAttrs or not... Helper for subclasses
◆ line()
int ncml_module::NCMLElement::line |
( |
| ) |
const |
|
inherited |
Return the current parse line number. Shorthand
◆ printAttributeIfNotEmpty()
static std::string ncml_module::NCMLElement::printAttributeIfNotEmpty |
( |
const std::string & | attrName, |
|
|
const std::string & | attrValue ) |
|
staticinherited |
Helper for subclasses implementing toString().
- Returns
- a string with attrName="attrValue" if !attrValue.empty(), otherwise return the empty string.
◆ processParentDatasetComplete()
void ncml_module::AggregationElement::processParentDatasetComplete |
( |
| ) |
|
Called when the enclosing dataset is closing for the aggregation to handle any post processing that it needs to, in particular adding any map vectors to Grid's.
◆ recheckEvery()
const string & ncml_module::AggregationElement::recheckEvery |
( |
| ) |
const |
|
inline |
◆ ref()
virtual int agg_util::RCObject::ref |
( |
| ) |
const |
|
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.
◆ removeFromPool()
virtual void agg_util::RCObject::removeFromPool |
( |
| ) |
const |
|
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.
◆ removePreDeleteCB()
Remove it exists. If not, this unchanged.
◆ setAggregationVariableCoordinateAxisType()
void ncml_module::AggregationElement::setAggregationVariableCoordinateAxisType |
( |
const std::string & | cat | ) |
|
If a child scan contains a dateFormatMark, then we want to add a "_CoordinateAxisType" of "Time" By setting this to a non empty() string, a new attribute _CoordinateAxisType will be added to aggregation variable in a joinNew or joinExisting aggregation.
- Parameters
-
cat | the desired value for _CoordinateAxisType, or "" if no attribute addition is desired. |
◆ setAttributes()
virtual void ncml_module::AggregationElement::setAttributes |
( |
const XMLAttributeMap & | attrs | ) |
|
|
virtual |
Set the attributes of this from the map.
- Parameters
-
attrs | the attribute map to set this class to. |
Implements ncml_module::NCMLElement.
◆ setParentDataset()
Set the parent and return the old one, which could be null. Should only be called on a handleBegin() call here when we know we can find it in the NCMLParser at the current scope. We only retain a weak reference to parent.
◆ setVariableAggElement()
void ncml_module::AggregationElement::setVariableAggElement |
( |
| ) |
|
◆ toString()
virtual string ncml_module::AggregationElement::toString |
( |
| ) |
const |
|
virtual |
◆ type()
const string & ncml_module::AggregationElement::type |
( |
| ) |
const |
|
inline |
◆ unref()
virtual int agg_util::RCObject::unref |
( |
| ) |
const |
|
virtualinherited |
Decrease the reference count by one. If it goes from 1 to 0, delete this and this is no longer valid.
- Returns
- the new ref count. If it is 0, the caller knows the object was deleted.
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.
◆ validateAttributes()
virtual bool ncml_module::NCMLElement::validateAttributes |
( |
const XMLAttributeMap & | attrs, |
|
|
const std::vector< std::string > & | validAttrs, |
|
|
std::vector< std::string > * | pInvalidAttrs = 0, |
|
|
bool | printInvalid = true, |
|
|
bool | throwOnError = true ) |
|
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.
- Returns
- whether all attributes are in the valid set if not throw
◆ _parser
◆ _sTypeName
const string ncml_module::AggregationElement::_sTypeName |
|
static |
◆ _sValidAttrs
const vector<string> ncml_module::AggregationElement::_sValidAttrs |
|
static |
The documentation for this class was generated from the following file: