// SimpleCompoundDataset.cxx #include "dataset_base/SimpleCompoundDataset.h" #include #include #include "dataset_base/DatasetCreator.h" using std::string; using std::ostream; using std::endl; using std::auto_ptr; using dset::SimpleCompoundDataset; using dset::Dataset; using dset::DatasetList; using dset::DatasetCreator; using dset::GenericDataset; using dset::SimpleCompoundDataset; //********************************************************************** // Local definitions. //********************************************************************** namespace { // Register promoter. int SimpleCompoundDataset_xml_stat = GenericDataset:: register_promoter("SimpleCompoundDataset", dset::promote); } // end unnamed namespace. //********************************************************************** // Member functions. //********************************************************************** // Default constructor. SimpleCompoundDataset::SimpleCompoundDataset() { set_fulltype("SimpleCompoundDataset"); set_id(); set_content_composite(); set_location_composite(); set_evstate_none(); } //********************************************************************** // Constructor from generic dataset. SimpleCompoundDataset::SimpleCompoundDataset(const GenericDataset& dst) : GenericDataset(dst) { if ( fulltype() != "SimpleCompoundDataset" ) set_error(11); } //********************************************************************** // Merge. int SimpleCompoundDataset::merge(const Dataset& dst, string) { return append_constituent(dst, true); } //**********************************************************************