GnuCashew ~ GnuCash Enabled Web
GCW
Public Member Functions | Protected Attributes | List of all members
GCW::Dbo::AbstractSession Class Reference

#include <AbstractSession.h>

+ Inheritance diagram for GCW::Dbo::AbstractSession:

Public Member Functions

 AbstractSession ()
 
auto open (const std::string &_path) -> bool
 Open a database. More...
 
auto path () const -> const std::string &
 
auto isOpen () const -> bool
 

Protected Attributes

std::string m_path
 
bool m_isOpen = false
 

Detailed Description

Definition at line 11 of file AbstractSession.h.

Constructor & Destructor Documentation

◆ AbstractSession()

GCW::Dbo::AbstractSession::AbstractSession ( )
inline

Definition at line 16 of file AbstractSession.h.

Member Function Documentation

◆ isOpen()

auto GCW::Dbo::AbstractSession::isOpen ( ) const -> bool
inline

Definition at line 26 of file AbstractSession.h.

References m_isOpen.

Referenced by GCW::Dbo::GnuCashew::Session::open().

◆ open()

auto GCW::Dbo::AbstractSession::open ( const std::string &  _path) -> bool

Open a database.

Definition at line 27 of file AbstractSession.cpp.

References GCW::Dbo::Accounts::s_tableName.

Referenced by GCW::Dbo::GnuCashew::Session::open().

◆ path()

auto GCW::Dbo::AbstractSession::path ( ) const -> const std::string &
inline

Definition at line 24 of file AbstractSession.h.

References m_path.

Member Data Documentation

◆ m_isOpen

bool GCW::Dbo::AbstractSession::m_isOpen = false
protected

Definition at line 33 of file AbstractSession.h.

Referenced by isOpen(), and GCW::Dbo::GnuCashew::Session::open().

◆ m_path

std::string GCW::Dbo::AbstractSession::m_path
protected

Definition at line 32 of file AbstractSession.h.

Referenced by path().


The documentation for this class was generated from the following files: