aqbanking
5.0.24.0-git
|
00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 begin : Mon March 2 2011 00005 copyright : (C) 2011 by Christian Stimming 00006 email : christian@cstimming.de 00007 00008 *************************************************************************** 00009 * This file is part of the project "AqBanking". * 00010 * Please see toplevel file COPYING of that project for license details. * 00011 ***************************************************************************/ 00012 00013 00014 #ifndef AB_BALANCE_HPP 00015 #define AB_BALANCE_HPP 00016 00017 #include <aqbanking/balance.h> 00018 00019 #include <aqbankingpp/cxxwrap.hpp> 00020 #include <aqbankingpp/time.hpp> 00021 #include <aqbankingpp/value.hpp> 00022 00023 namespace AB 00024 { 00025 00027 class Balance 00028 { 00029 public: 00030 typedef AB_BALANCE wrapped_type; 00031 private: 00032 wrapped_type* m_ptr; 00033 public: 00034 00035 Balance(const Value& v, const Time& t) 00036 : m_ptr(AB_Balance_new(v, t)) 00037 {} 00038 AB_CXXWRAP_CONSTRUCTORS(Balance, AB_Balance); 00039 Value AB_CXXWRAP_GET0_CONST(getValue, AB_Balance_GetValue); 00040 AB_CXXWRAP_SET1(setValue, const Value&, AB_Balance_SetValue); 00041 const GWEN_TIME *AB_CXXWRAP_GET0_CONST(getTime, AB_Balance_GetTime); 00042 }; 00043 00044 } // END namespace AB 00045 00046 #endif // AB_BALANCE_HPP