// JobIdList.h #ifndef dial__JobIdList_H #define dial__JobIdList_H // Lost of Job ID's with XML conversion. // // XML: // // JobIdList // label = mylabel // JobId // collection = 101 // entry = 11 // JobId // collection = 101 // entry = 12 // ... // #include #include "dial_job/JobId.h" class XmlElement; namespace dial { class JobIdList : public std::vector { public: // static functions // XML name static const char* xml_name() { return "JobIdList"; } // XML DTD. static const Text& dtd(); public: // functions // Default constructor. JobIdList(); // Constructor from size. JobIdList(size_t); // Construct from XML. explicit JobIdList(const XmlElement& ele); // Convert to XML. // Argument is the value for the attribute "label". const XmlElement* xml(std::string label ="") const; }; } // end namespace dial // Output stream. std::ostream& operator<<(std::ostream& lhs, const dial::JobIdList& rhs); #endif