GnuCashew ~ GnuCash Enabled Web
GCW
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 More...
 
 Item (const std::string &_guid)
 ctor with guid More...
 
auto guid () const -> const std::string &
 GUID. More...
 
template<class Action >
auto persist (Action &action) -> void
 
- Public Member Functions inherited from GCW::Dbo::BaseItem< Item >
 BaseItem ()
 

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: Item.h:89
const Wt::WFormModel::Field root_template_guid
Definition: Books.cpp:12
const Wt::WFormModel::Field root_account_guid
Definition: Books.cpp:11

Definition at line 69 of file Item.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

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

ctor

Definition at line 77 of file Item.h.

◆ Item() [2/2]

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

ctor with guid

Definition at line 82 of file 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 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 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 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 Item.h.

Referenced by persist().


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