29 #ifndef __NCML_MODULE__SCAN_ELEMENT_H__
30 #define __NCML_MODULE__SCAN_ELEMENT_H__
44 class AggregationElement;
123 void initSimpleDateFormats(
const std::string& dateFormatMark);
126 void deleteDateFormats() throw();
135 std::
string extractTimeFromFilename(const
std::
string& filename) const;
137 static vector<
string> getValidAttributes();
140 void throwOnUnhandledAttributes();
143 static
std::
string getTimeAsString(time_t theTime);
151 string _dateFormatMark;
161 struct DateFormatters;
162 DateFormatters* _pDateFormatters;
virtual void setAttributes(const XMLAttributeMap &attrs)
Set the attributes of this from the map.
long getOlderThanAsSeconds() const
Get the olderThan attribute in seconds.
void getDatasetList(vector< NetcdfElement * > &datasets) const
Actually perform the filesystem scan based on the specified attributes (suffix, subdirs, etc).
An abstract superclass for NCMLArray that handles the non-parameterized functionality and allows u...
static const string _sTypeName
Helper class for temporarily hijacking an existing dhi to load a DDX response for one particular file...
virtual void handleContent(const string &content)
Handle the characters content for the element.
const string & ncoords() const
Implementation of the element used to scan directories to create the set of files for an aggre...
static const vector< string > _sValidAttrs
AggregationElement * getParent() const
Get the aggregation of which I am a child.
Helper classes for using dirent.h, dir.h, stat.h, etc.
virtual void handleBegin()
Handle a begin on this element.
virtual ScanElement * clone() const
Make and return a copy of this.
Base class for NcML element concrete classes.
virtual void handleEnd()
Handle the closing of this element.
void setParent(AggregationElement *pParent)
Set the parent of this element.
bool shouldScanSubdirs() const
is the subdirs attribute true?
virtual string toString() const
Return a string describing the element.
virtual const string & getTypeName() const
Return the type of the element, which should be: the same as ConcreteClassName::getTypeName() ...