GnuCashew ~ GnuCash Enabled Web
GCW
Commodities.h
Go to the documentation of this file.
1 #line 2 "src/Dbo/Commodities/Commodities.h"
2 
3 #ifndef __DBO_COMMODITIES_H___
4 #define __DBO_COMMODITIES_H___
5 
6 #include "Item.h"
7 
8 namespace GCW {
9  namespace Dbo {
10  namespace Commodities {
11 
12 typedef struct COMMODITY_S
13 {
14  std::string isocode;
15  std::string fullname;
16  std::string unitname;
17  std::string partname;
18  std::string nameSpace;
19  std::string exchangeCode;
20  std::string partsPerUnit;
21  std::string smallestFraction;
22  std::string localSymbol;
23 
25 
26 /*!
27 ** \brief Get Commodities
28 **
29 ** This returns the list of commodities from the
30 ** iso-4217-currencies.xml file
31 **
32 */
33 auto getIso4217Commodities()-> std::vector< Commodity_t >;
34 
35 /*!
36 ** \brief Load Account by GUID
37 **
38 */
39 auto load( const std::string & _guid )-> Item::Ptr;
40 
41 /*!
42 ** \brief Load Account by GUID
43 **
44 */
45 auto byGuid( const std::string & _guid )-> Item::Ptr;
46 
47  } // Commodities
48  } // Dbo
49 } // GCW
50 
51 
52 
53 #endif // __DBO_COMMODITIES_H___
54 
55 
Wt::Dbo::ptr< Item > Ptr
Definition: BaseItem.h:39
auto byGuid(const std::string &_guid) -> Item::Ptr
Load Account by GUID.
Definition: Commodities.cpp:75
auto getIso4217Commodities() -> std::vector< Commodity_t >
Get Commodities.
Definition: Commodities.cpp:85
struct GCW::Dbo::Commodities::COMMODITY_S Commodity_t
auto load(const std::string &_guid) -> Item::Ptr
Load Account by GUID.
Definition: Commodities.cpp:48
Definition: App.h:17