// -*- mode: cpp; mode: fold -*- // Description /*{{{*/ /* ###################################################################### Set of methods to help writing and reading everything needed for EDSP ##################################################################### */ /*}}}*/ #ifndef PKGLIB_EDSPWRITER_H #define PKGLIB_EDSPWRITER_H #include #include class edspWriter /*{{{*/ { public: bool static WriteRequest(pkgDepCache &Cache, FILE* output); bool static WriteScenario(pkgDepCache &Cache, FILE* output); bool static ReadResponse(FILE* input, pkgDepCache &Cache); // ReadScenario is provided by the listparser infrastructure bool static ReadRequest(FILE* input, std::list &install, std::list &remove); bool static ApplyRequest(std::list const &install, std::list const &remove, pkgDepCache &Cache); bool static WriteSolution(pkgDepCache &Cache, FILE* output); bool static WriteError(std::string const &message, FILE* output); }; /*}}}*/ #endif