GnuCashew ~ GnuCash Enabled Web
GCW
AbstractSession.h
Go to the documentation of this file.
1 #line 2 "src/Dbo/AbstractSession.h"
2 
3 #ifndef __DBO_SESSION_H___
4 #define __DBO_SESSION_H___
5 
6 #include <Wt/Dbo/Session.h>
7 
8 namespace GCW {
9  namespace Dbo {
10 
12 : public Wt::Dbo::Session
13 {
14  public:
15 
17 
18  /*!
19  ** \brief Open a database
20  **
21  */
22  auto open( const std::string & _path )-> bool;
23 
24  auto path() const-> const std::string & { return m_path; }
25 
26  auto isOpen() const-> bool { return m_isOpen; }
27 
28 // virtual Wt::Dbo::Transaction startTransaction() const;
29 
30  protected:
31 
32  std::string m_path;
33  bool m_isOpen = false;
34 
35  private:
36 
37 }; // endclass Session
38 
39  } // endnamespace Dbo {
40 } // endnamespace GCW {
41 
42 #endif // end#ifndef __SESSION_H___
43 
44 
auto isOpen() const -> bool
auto path() const -> const std::string &
auto open(const std::string &_path) -> bool
Open a database.
Definition: App.h:17
Definition: guid.cpp:397