GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
GCW::Dbo::Books::Item Class Reference

Books Class. More...

#include <Item.h>

+ Inheritance diagram for GCW::Dbo::Books::Item:

Public Member Functions

 Item ()
 ctor
 
 Item (const std::string &_guid)
 ctor with guid
 
auto guid () const -> const std::string &
 GUID.
 
template<class Action >
auto persist (Action &action) -> void
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 
- Public Member Functions inherited from Wt::Dbo::Dbo< class C >
 Dbo ()
 
 Dbo (const Dbo< C > &other)
 
dbo_traits< C >::IdType id () const
 
Sessionsession () const
 
void setDirty ()
 
bool isDirty () const
 
ptr< Cself () const
 

Private Attributes

std::string m_guid
 
std::string m_root_account_guid
 
std::string m_root_template_guid
 

Additional Inherited Members

- Public Types inherited from GCW::Dbo::BaseItem< Item >
using Ptr = Wt::Dbo::ptr< Item >
 
using Collection = Wt::Dbo::collection< Ptr >
 
using Vector = std::vector< Ptr >
 

Detailed Description

Books Class.

dot_inline_dotgraph_4.png
Native GnuCash Books Sqlite Schema
CREATE TABLE books
(
guid text(32) PRIMARY KEY NOT NULL,
root_account_guid text(32) NOT NULL,
root_template_guid text(32) NOT NULL
);
auto guid() const -> const std::string &
GUID.

Definition at line 69 of file Dbo/Books/Item.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

GCW::Dbo::Books::Item::Item ( )
inline

ctor

Definition at line 77 of file Dbo/Books/Item.h.

◆ Item() [2/2]

GCW::Dbo::Books::Item::Item ( const std::string &  _guid)
inline

ctor with guid

Definition at line 82 of file Dbo/Books/Item.h.

Member Function Documentation

◆ guid()

auto GCW::Dbo::Books::Item::guid ( ) const -> const std::string &
inline

GUID.

Return account 'guid' value - the primary key for the account

Definition at line 89 of file Dbo/Books/Item.h.

References m_guid.

◆ persist()

template<class Action >
auto GCW::Dbo::Books::Item::persist ( Action &  action) -> void
inline

Member Data Documentation

◆ m_guid

std::string GCW::Dbo::Books::Item::m_guid
private

Definition at line 102 of file Dbo/Books/Item.h.

Referenced by guid(), and persist().

◆ m_root_account_guid

std::string GCW::Dbo::Books::Item::m_root_account_guid
private

Definition at line 103 of file Dbo/Books/Item.h.

Referenced by persist().

◆ m_root_template_guid

std::string GCW::Dbo::Books::Item::m_root_template_guid
private

Definition at line 104 of file Dbo/Books/Item.h.

Referenced by persist().


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