Commodity Item Class.
More...
#include <Item.h>
Commodity Item Class.
This class represents an 'commodity' within gnucash. This is a Dbo object so this class is used as the interface between the gnucashew application and the back-end database.
- Native GnuCash Commodity Sqlite Schema
CREATE TABLE commodities
(
guid text(32) PRIMARY KEY NOT NULL,
namespace text(2048) NOT NULL,
);
sqlite> select * from "commodities";
auto guid() const -> const std::string &
GUID.
@ CURRENCY
07 ~ currency trading account (DEPRECATED)
const Wt::WFormModel::Field cusip
const Wt::WFormModel::Field fullname
const Wt::WFormModel::Field fraction
const Wt::WFormModel::Field mnemonic
const Wt::WFormModel::Field quote_source
const Wt::WFormModel::Field quote_tz
const Wt::WFormModel::Field quote_flag
const Wt::WFormModel::Field currency
Definition at line 80 of file Item.h.
◆ Item() [1/2]
GCW::Dbo::Commodities::Item::Item |
( |
| ) |
|
|
inline |
ctor
Definition at line 88 of file Item.h.
◆ Item() [2/2]
GCW::Dbo::Commodities::Item::Item |
( |
const std::string & |
_guid | ) |
|
|
inline |
ctor with guid.
Definition at line 93 of file Item.h.
◆ guid()
auto GCW::Dbo::Commodities::Item::guid |
( |
| ) |
const -> const std::string & |
|
inline |
GUID.
Return account 'guid' value - the primary key for the account
Definition at line 100 of file Item.h.
References m_guid.
◆ nameSpace()
auto GCW::Dbo::Commodities::Item::nameSpace |
( |
| ) |
const -> const std::string & |
|
inline |
Name.
Return account printable 'name' value
Definition at line 107 of file Item.h.
References m_nameSpace.
◆ persist()
template<class Action >
void GCW::Dbo::Commodities::Item::persist |
( |
Action & |
action | ) |
|
|
inline |
persist the data
This connects this object to the back-end database.
Definition at line 114 of file Item.h.
References GCW::Dbo::Entries::Field::action, GCW::Dbo::Commodities::Field::cusip, GCW::Dbo::Commodities::Field::fraction, GCW::Dbo::Commodities::Field::fullname, GCW::Dbo::Commodities::Field::guid, GCW::Dbo::Invoices::Field::id, m_cusip, m_fraction, m_fullname, m_guid, m_mnemonic, m_nameSpace, m_quote_flag, m_quote_source, m_quote_tz, GCW::Dbo::Commodities::Field::mnemonic, GCW::Dbo::Commodities::Field::nameSpace, GCW::Dbo::Commodities::Field::quote_flag, GCW::Dbo::Commodities::Field::quote_source, and GCW::Dbo::Commodities::Field::quote_tz.
◆ m_cusip
std::string GCW::Dbo::Commodities::Item::m_cusip |
|
private |
◆ m_fraction
int GCW::Dbo::Commodities::Item::m_fraction |
|
private |
◆ m_fullname
std::string GCW::Dbo::Commodities::Item::m_fullname |
|
private |
◆ m_guid
std::string GCW::Dbo::Commodities::Item::m_guid |
|
private |
◆ m_mnemonic
std::string GCW::Dbo::Commodities::Item::m_mnemonic |
|
private |
◆ m_nameSpace
std::string GCW::Dbo::Commodities::Item::m_nameSpace |
|
private |
◆ m_quote_flag
int GCW::Dbo::Commodities::Item::m_quote_flag |
|
private |
◆ m_quote_source
std::string GCW::Dbo::Commodities::Item::m_quote_source |
|
private |
◆ m_quote_tz
std::string GCW::Dbo::Commodities::Item::m_quote_tz |
|
private |
The documentation for this class was generated from the following file: