| GnuCashew ~ Web Application compatible with GnuCash sql data files.
    GCW | 
#include <Item.h>
 Inheritance diagram for GCW::Dbo::Commodities::Item:
 Inheritance diagram for GCW::Dbo::Commodities::Item:| Public Member Functions | |
| Item () | |
| ctor | |
| Item (const std::string &_guid) | |
| ctor with guid. | |
| auto | guid () const -> const std::string & | 
| GUID. | |
| auto | nameSpace () const -> const std::string & | 
| Name. | |
| template<class Action > | |
| void | persist (Action &action) | 
| persist the data | |
|  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 | 
| Session * | session () const | 
| void | setDirty () | 
| bool | isDirty () const | 
| ptr< C > | self () const | 
| Private Attributes | |
| std::string | m_guid | 
| std::string | m_nameSpace | 
| std::string | m_mnemonic | 
| std::string | m_fullname | 
| std::string | m_cusip | 
| int | m_fraction | 
| int | m_quote_flag | 
| std::string | m_quote_source | 
| std::string | m_quote_tz | 
| 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 > | 
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.
 
Definition at line 80 of file Dbo/Commodities/Item.h.
| 
 | inline | 
ctor
Definition at line 88 of file Dbo/Commodities/Item.h.
| 
 | inline | 
ctor with guid.
Definition at line 93 of file Dbo/Commodities/Item.h.
| 
 | inline | 
GUID.
Return account 'guid' value - the primary key for the account
Definition at line 100 of file Dbo/Commodities/Item.h.
References m_guid.
| 
 | inline | 
Name.
Return account printable 'name' value
Definition at line 107 of file Dbo/Commodities/Item.h.
References m_nameSpace.
| 
 | inline | 
persist the data
This connects this object to the back-end database.
Definition at line 114 of file Dbo/Commodities/Item.h.
References GCW::Dbo::Commodities::Field::cusip, Wt::Dbo::field(), GCW::Dbo::Commodities::Field::fraction, GCW::Dbo::Commodities::Field::fullname, GCW::Dbo::Commodities::Field::guid, Wt::Dbo::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.
| 
 | private | 
Definition at line 133 of file Dbo/Commodities/Item.h.
Referenced by persist().
| 
 | private | 
Definition at line 134 of file Dbo/Commodities/Item.h.
Referenced by persist().
| 
 | private | 
Definition at line 132 of file Dbo/Commodities/Item.h.
Referenced by persist().
| 
 | private | 
Definition at line 129 of file Dbo/Commodities/Item.h.
| 
 | private | 
Definition at line 131 of file Dbo/Commodities/Item.h.
Referenced by persist().
| 
 | private | 
Definition at line 130 of file Dbo/Commodities/Item.h.
Referenced by nameSpace(), and persist().
| 
 | private | 
Definition at line 135 of file Dbo/Commodities/Item.h.
Referenced by persist().
| 
 | private | 
Definition at line 136 of file Dbo/Commodities/Item.h.
Referenced by persist().
| 
 | private | 
Definition at line 137 of file Dbo/Commodities/Item.h.
Referenced by persist().