]> git.saurik.com Git - apt.git/blob - apt-pkg/edsp/edspwriter.h
c5eed788fe0ac6aaa77a944af17da8885681922b
[apt.git] / apt-pkg / edsp / edspwriter.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 /* ######################################################################
4 Set of methods to help writing and reading everything needed for EDSP
5 ##################################################################### */
6 /*}}}*/
7 #ifndef PKGLIB_EDSPWRITER_H
8 #define PKGLIB_EDSPWRITER_H
9
10 #include <apt-pkg/depcache.h>
11
12 #include <string>
13
14 class edspWriter /*{{{*/
15 {
16 public:
17 bool static WriteRequest(pkgDepCache &Cache, FILE* output);
18 bool static WriteScenario(pkgDepCache &Cache, FILE* output);
19 bool static ReadResponse(FILE* input, pkgDepCache &Cache);
20
21 // ReadScenario is provided by the listparser infrastructure
22 bool static ReadRequest(FILE* input, std::list<std::string> &install,
23 std::list<std::string> &remove);
24 bool static ApplyRequest(std::list<std::string> const &install,
25 std::list<std::string> const &remove,
26 pkgDepCache &Cache);
27 bool static WriteSolution(pkgDepCache &Cache, FILE* output);
28 bool static WriteError(std::string const &message, FILE* output);
29
30 };
31 /*}}}*/
32 #endif