// CompoundDatasetMergerCreator.h #ifndef dset__CompoundDatasetMergerCreator_H #define dset__CompoundDatasetMergerCreator_H // Factory to create simple dataset splitters. // // XML: // // CompoundDatasetMergerCreator #include "dataset_util/Text.h" #include "dataset_split/DatasetMergerCreator.h" namespace dset { class CompoundDatasetMergerCreator : public DatasetMergerCreator { private: // data public: // static functions // Return the XML name. static const char* xml_name() { return "CompoundDatasetMergerCreator"; } // DTD. static const Text& dtd(); public: // Constructors. // Constructor from working directory name. CompoundDatasetMergerCreator(); public: // Virtual methods // Validity. bool is_valid() const; // Return a new merger instance. // Caller is responsible for management. DatasetMerger* create(std::string dir) const; // Write to XML. virtual const XmlElement* xml() const; // Output stream. virtual std::ostream& ostr(std::ostream& str) const; }; } // end namespace dset #endif