aqbanking  5.0.24.0-git
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