Common ODB Runtime Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
callback.hxx
Go to the documentation of this file.
1 // file : odb/callback.hxx
2 // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
3 // license : GNU GPL v2; see accompanying LICENSE file
4 
5 #ifndef ODB_CALLBACK_HXX
6 #define ODB_CALLBACK_HXX
7 
8 #include <odb/pre.hxx>
9 
10 #include <odb/forward.hxx> // odb::core
11 #include <odb/details/export.hxx>
12 
13 namespace odb
14 {
15  struct LIBODB_EXPORT callback_event
16  {
17  enum value
18  {
26  post_erase
27  };
28 
29  callback_event (value v): v_ (v) {}
30  operator value () const {return v_;}
31 
32  private:
33  value v_;
34  };
35 
36  namespace common
37  {
38  using odb::callback_event;
39  }
40 }
41 
42 #include <odb/post.hxx>
43 
44 #endif // ODB_CALLBACK_HXX
Definition: callback.hxx:25
Definition: callback.hxx:24
Definition: callback.hxx:22
Definition: callback.hxx:15
Definition: callback.hxx:20
Definition: callback.hxx:19
Definition: callback.hxx:21
Definition: callback.hxx:23
callback_event(value v)
Definition: callback.hxx:29
value
Definition: callback.hxx:17