// SimpleCompoundDataset.h #ifndef dset__SimpleCompoundDataset_H #define dset__SimpleCompoundDataset_H // David Adams // July 2003 // // A compound dataset is made up of other datasets. // This is a simple implementation that holds a collection of // datasets with no restriction on their types. // // GenericDataset // fulltype = SimpleCompoundDataset // ... // // The constituent datasets are not managed here. The user should // ensure their lifetimes exceed that of this container. #include "dataset_base/GenericDataset.h" namespace dset { class SimpleCompoundDataset : public GenericDataset { public: // local functions // Default constructor. SimpleCompoundDataset(); // Constructor from generic dataset. explicit SimpleCompoundDataset(const GenericDataset& dst); public: // virtual functions // Merge. // Adds the given dataset to the list. int merge(const Dataset& dst, std::string =""); }; } // end namespace dset #endif