GnuCashew ~ GnuCash Enabled Web
GCW
Accounts.h
Go to the documentation of this file.
1 #line 2 "src/Dbo/Accounts/Accounts.h"
2 
3 #ifndef __DBO_ACCOUNTS_H___
4 #define __DBO_ACCOUNTS_H___
5 
6 #include "Item.h"
7 
8 namespace GCW {
9  namespace Dbo {
10  namespace Accounts {
11 
12 /*!
13 ** \brief Load Root Account
14 **
15 **
16 */
17 auto rootAccount()-> Item::Ptr;
18 
19 /*!
20 ** \brief Load Account by GUID
21 **
22 */
23 auto load( const std::string & _guid )-> Item::Ptr;
24 
25 /*!
26 ** \brief Load Account by GUID
27 **
28 */
29 auto byGuid( const std::string & _guid )-> Item::Ptr;
30 
31 /*!
32 ** \brief Load Account by 'child name' and 'parent id'
33 **
34 */
35 auto byChildName( const std::string & _parentGuid, const std::string & _childName )-> Item::Ptr;
36 
37 /*!
38 ** \brief Load Account by 'full name' with ':' account separator
39 **
40 */
41 auto byFullName( const std::string & _fullName )-> Item::Ptr;
42 
43 /*!
44 ** \brief Load all accounts
45 **
46 */
47 auto allAccounts()-> Item::Vector;
48 
49 /*!
50 ** \brief Load accounts as; if( !hidden() && !placeHolder() )
51 **
52 */
54 
55 /*!
56 ** \brief Account Fullname via GUID
57 **
58 */
59 auto fullName( const std::string & _guid )-> std::string;
60 
61 /*!
62 ** \brief Account Fullname via Item
63 **
64 */
65 auto fullName( Item::Ptr _item )-> std::string;
66 
67 /*!
68 ** \brief Account Children Namespace
69 **
70 */
71 namespace Children {
72 
73 /*!
74 ** \brief Child Accounts via parent
75 **
76 */
77 auto vector( const std::string & _parentGuid )-> Item::Vector;
78 
79  } // Children
80  } // Accounts
81  } // Dbo
82 } // GCW
83 
84 
85 
86 #endif // __DBO_ACCOUNTS_H___
87 
88 
std::vector< Ptr > Vector
Definition: BaseItem.h:41
Wt::Dbo::ptr< Item > Ptr
Definition: BaseItem.h:39
auto vector(const std::string &_parentGuid) -> Item::Vector
Child Accounts via parent.
Definition: Accounts.cpp:264
auto rootAccount() -> Item::Ptr
Load Root Account.
Definition: Accounts.cpp:126
auto load(const std::string &_guid) -> Item::Ptr
Load Account by GUID.
Definition: Accounts.cpp:135
auto activeAccounts() -> Item::Vector
Load accounts as; if( !hidden() && !placeHolder() )
Definition: Accounts.cpp:237
auto allAccounts() -> Item::Vector
Load all accounts.
Definition: Accounts.cpp:217
auto byFullName(const std::string &_fullName) -> Item::Ptr
Load Account by 'full name' with ':' account separator.
Definition: Accounts.cpp:188
auto byGuid(const std::string &_guid) -> Item::Ptr
Load Account by GUID.
Definition: Accounts.cpp:162
auto byChildName(const std::string &_parentGuid, const std::string &_childName) -> Item::Ptr
Load Account by 'child name' and 'parent id'.
Definition: Accounts.cpp:170
auto fullName(const std::string &_guid) -> std::string
Account Fullname via GUID.
Definition: Accounts.cpp:282
Definition: App.h:17