aqbanking  5.7.8
balance.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  $RCSfile$
3  -------------------
4  begin : Mon March 2 2011
5  copyright : (C) 2011 by Christian Stimming
6  email : christian@cstimming.de
7 
8  ***************************************************************************
9  * This file is part of the project "AqBanking". *
10  * Please see toplevel file COPYING of that project for license details. *
11  ***************************************************************************/
12 
13 
14 #ifndef AB_BALANCE_HPP
15 #define AB_BALANCE_HPP
16 
17 #include <aqbanking/balance.h>
18 
19 #include <aqbankingpp/cxxwrap.hpp>
20 #include <aqbankingpp/time.hpp>
21 #include <aqbankingpp/value.hpp>
22 
23 namespace AB
24 {
25 
27 class Balance
28 {
29 public:
31 private:
32  wrapped_type* m_ptr;
33 public:
34 
35  Balance(const Value& v, const Time& t)
36  : m_ptr(AB_Balance_new(v, t))
37  {}
38  AB_CXXWRAP_CONSTRUCTORS(Balance, AB_Balance);
40  AB_CXXWRAP_SET1(setValue, const Value&, AB_Balance_SetValue);
41  const GWEN_TIME *AB_CXXWRAP_GET0_CONST(getTime, AB_Balance_GetTime);
42 };
43 
44 } // END namespace AB
45 
46 #endif // AB_BALANCE_HPP
Balance(const Value &v, const Time &t)
Definition: balance.hpp:35
AB_BALANCE * AB_Balance_new(const AB_VALUE *v, const GWEN_TIME *t)
const GWEN_TIME * AB_Balance_GetTime(const AB_BALANCE *b)
AB_BALANCE wrapped_type
Definition: balance.hpp:30
Value AB_CXXWRAP_GET0_CONST(getValue, AB_Balance_GetValue)
AB_CXXWRAP_CONSTRUCTORS(Balance, AB_Balance)
const AB_VALUE * AB_Balance_GetValue(const AB_BALANCE *b)
struct AB_BALANCE AB_BALANCE
Definition: balance.h:25
void AB_Balance_SetValue(AB_BALANCE *b, const AB_VALUE *v)
AB_CXXWRAP_SET1(setValue, const Value &, AB_Balance_SetValue)