Build on wheezy, and presumably precise
[invirt/third/libt4.git] / log.h
1 #ifndef log_h
2 #define log_h
3
4 #include <string>
5 #include <vector>
6
7
8 class acceptor;
9
10 class log {
11  private:
12   std::string name;
13   acceptor *pxs;
14  public:
15   log (acceptor*, std::string _me);
16   std::string dump();
17   void restore(std::string s);
18   void logread(void);
19   /* Log a committed paxos instance*/
20   void loginstance(unsigned instance, std::string v);
21   /* Log the highest proposal number that the local paxos acceptor has ever seen */
22   void logprop(prop_t n_h);
23   /* Log the proposal (proposal number and value) that the local paxos acceptor 
24      accept has ever accepted */
25   void logaccept(prop_t n_a, std::string v);
26 };
27
28 #endif /* log_h */