Eris  1.4.0
Redispatch.h
1 #include <utility>
2 
3 #ifndef ERIS_REDISPATCH_H
4 #define ERIS_REDISPATCH_H
5 
6 #include <Atlas/Objects/Root.h>
7 #include <Atlas/Objects/SmartPtr.h>
8 
9 #include <sigc++/trackable.h>
10 
11 namespace Eris
12 {
13 
14 // forward decls
15 class Connection;
16 
17 class Redispatch : public sigc::trackable
18 {
19 protected:
20  Redispatch(Connection* con, Atlas::Objects::Root obj) :
21  m_obj(std::move(obj)),
22  m_con(con)
23  {
24 
25  }
26 
27  void post();
28 
29  void postModified(const Atlas::Objects::Root& obj);
30 
31  void fail();
32 
33  const Atlas::Objects::Root m_obj;
34 
35 private:
36  Connection* m_con;
37 };
38 
39 } // of namespace Eris
40 
41 #endif
Definition: Redispatch.h:17
Every Eris class and type lives inside the Eris namespace; certain utility functions live in the Util...
Definition: Account.cpp:34
Underlying Atlas connection, providing a send interface, and receive (dispatch) system.
Definition: Connection.h:36