// LsfJobCreator.h #ifndef dial__LsfJobCreator_H #define dial__LsfJobCreator_H // David Adams // July 2003 // // Factory to create LsfJob. #include "dataset_util/Text.h" #include "dial_job/JobCreator.h" class XmlElement; namespace dial { class LsfJobCreator : public JobCreator { private: std::string m_queue; public: // static functions // XML name. static std::string xml_name() { return "LsfJobCreator"; } // DTD. static const Text& dtd(); public: // Constructor. LsfJobCreator(std::string qname); // Validity bool is_valid() const; // Create a new local job. Job* create_local_job(JobId jid, const Application& app, const Task& tsk, const dset::Dataset& dst, const JobPreferences& prf, std::string rundir, std::string runfile) const; // Convert a job. Job* convert(const Job& job) const; // Return the LSF queue used. std::string lsf_queue() const; // XML. const XmlElement* xml() const; // Output stream. std::ostream& ostr(std::ostream& lhs) const; }; } // end namespace dial #endif