29 #ifndef __AGG_UTIL__AGG_MEMBER_DATASET_H__
30 #define __AGG_UTIL__AGG_MEMBER_DATASET_H__
43 using libdap::DataDDS;
88 virtual const libdap::DataDDS*
getDataDDS() = 0;
154 std::string _location;
158 typedef std::vector< RCPtr<AggMemberDataset> >
AMDList;
virtual void saveDimensionCache(std::ostream &ostr)=0
Append the values in the dimension cache to the output stream.
virtual ~AggMemberDataset()
Abstract helper superclass for allowing lazy access to the DataDDS for an aggregation.
virtual void flushDimensionCache()=0
Flush out any cache for the Dimensions so that it will have to be loaded.
AggMemberDataset(const std::string &location)
virtual bool isDimensionCached(const std::string &dimName) const =0
Return whether the dimension is already cached, or would have to be loaded to be found.
virtual void loadDimensionCache(std::istream &istr)=0
Load the values in the dimension cache from the input stream.
Helper class for temporarily hijacking an existing dhi to load a DDX response for one particular file...
static class NCMLUtil overview
virtual unsigned int getCachedDimensionSize(const std::string &dimName) const =0
Get the size of the given dimension named dimName cached within the dataset.
const std::string & getLocation() const
The location to which the AggMemberDataset refers Note: this could be "" for some subclasses if they ...
virtual const libdap::DataDDS * getDataDDS()=0
Return the DataDDS for the location, loading it in if it hasn't yet been loaded.
Struct for holding information about a dimension of data, minimally a name and a cardinality (size)...
A base class for a simple reference counted object.
AggMemberDataset & operator=(const AggMemberDataset &rhs)
std::vector< RCPtr< AggMemberDataset > > AMDList
virtual void fillDimensionCacheByUsingDataDDS()=0
Uses the getDataDDS() call in order to find all named dimensions within it and to seed them into the ...
virtual void setDimensionCacheFor(const Dimension &dim, bool throwIfFound)=0
Seed the dimension cache using the given dimension, so that later calls to getDimensionSize for dim...