GnuCashew ~ GnuCash Enabled Web
GCW
Public Member Functions | Private Attributes | List of all members
GCW::Dbo::Jobs::Item Class Reference

Jobs Class. More...

#include <Item.h>

+ Inheritance diagram for GCW::Dbo::Jobs::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_id
 
std::string m_name
 
std::string m_reference
 
int m_active
 
int m_owner_type
 
std::string m_owner_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

Jobs Class.

dot_inline_dotgraph_9.png
Native GnuCash Jobs Sqlite Schema
CREATE TABLE jobs
(
guid text(32) PRIMARY KEY NOT NULL,
id text(2048) NOT NULL,
name text(2048) NOT NULL,
reference text(2048) NOT NULL,
active integer NOT NULL,
owner_type integer,
owner_guid text(32)
);
auto guid() const -> const std::string &
GUID.
Definition: Item.h:93
const Wt::WFormModel::Field name
Definition: Accounts.cpp:47
const Wt::WFormModel::Field active
Definition: Definition.h:21
const Wt::WFormModel::Field owner_type
Definition: Definition.h:23
const Wt::WFormModel::Field owner_guid
Definition: Definition.h:24
const Wt::WFormModel::Field reference
Definition: Jobs.cpp:13

Definition at line 73 of file Item.h.

Constructor & Destructor Documentation

◆ Item() [1/2]

GCW::Dbo::Jobs::Item::Item ( )
inline

ctor

Definition at line 81 of file Item.h.

◆ Item() [2/2]

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

ctor with guid

Definition at line 86 of file Item.h.

Member Function Documentation

◆ guid()

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

GUID.

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

Definition at line 93 of file Item.h.

References m_guid.

◆ persist()

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

Member Data Documentation

◆ m_active

int GCW::Dbo::Jobs::Item::m_active
private

Definition at line 114 of file Item.h.

Referenced by persist().

◆ m_guid

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

Definition at line 110 of file Item.h.

Referenced by guid(), and persist().

◆ m_id

std::string GCW::Dbo::Jobs::Item::m_id
private

Definition at line 111 of file Item.h.

Referenced by persist().

◆ m_name

std::string GCW::Dbo::Jobs::Item::m_name
private

Definition at line 112 of file Item.h.

Referenced by persist().

◆ m_owner_guid

std::string GCW::Dbo::Jobs::Item::m_owner_guid
private

Definition at line 116 of file Item.h.

Referenced by persist().

◆ m_owner_type

int GCW::Dbo::Jobs::Item::m_owner_type
private

Definition at line 115 of file Item.h.

Referenced by persist().

◆ m_reference

std::string GCW::Dbo::Jobs::Item::m_reference
private

Definition at line 113 of file Item.h.

Referenced by persist().


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