// VirtualEventDataset.h #ifndef dset__VirtualEventDataset_H #define dset__VirtualEventDataset_H // David Adams // Novenber 2003 // Updated October 2004. // // Virtual dataset (empty location) holding content with events. // different events. // #include #include "dataset_base/GenericDataset.h" namespace dset { class VirtualEventDataset : public GenericDataset { public: // Constructors, destructor. // Default constructor. Dataset is invalid. VirtualEventDataset(); // Constructor from content (with events). // The content must hold a single block. explicit VirtualEventDataset(const Content& con); // Constructor from another dataset. The location is dropped. // If the input full type is VirtualEventDataset, then the parent is // copied from that dataset (this ie expecteed for promotion). // Otherwise the input is left unassigned. explicit VirtualEventDataset(const Dataset& dst); // Constructor for promotion. // We cannot use the usual ctor(constGenericDataset&) because it // conflicts with the previous. VirtualEventDataset(const GenericDataset& pdst, int dummy); public: // inherited interface // Merge. // Argument must be of the same type and have the same content // and a non-overlapping set of events. int merge(const Dataset& dst, std::string =""); }; } // end namespace dset #endif