00001 // OSB library ********************************************* -*- C++ -*- 00008 /* 00009 AUTHOR(S): Ashwin Pakramzis (ap) 00010 00011 RCS information 00012 $Name: OSB_060808 $ 00013 $Revision: 1.18 $ 00014 00015 License 00016 OSB rating and billing library for communication networks 00017 Copyright (C) 2004, 2005, 2006 OSB systems 00018 00019 This file may be distributed and/or modify under the terms of the 00020 GNU General Public License (GPL) as published by the Free Software 00021 Foundation which is provided in the file LICENSE.GPL included in the 00022 packaging of this file. 00023 00024 The file is distributed in the hope that it will be useful, but WITHOUT 00025 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00026 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00027 for more details. 00028 00029 Holders of a OSB Commercial License may use this file under the terms 00030 and conditions of this commercial license. 00031 */ 00032 #ifndef _ACCOUNTGW_H_ 00033 #define _ACCOUNTGW_H_ 00034 00035 // ************************************************************************ 00036 // included header files 00037 // + standard includes 00038 00039 // + local headers 00040 #include "account.h" 00041 00042 // ********************************************************************* 00043 // class declarations 00044 namespace OSB_LIB { 00045 class Money; 00046 class OsbException; 00047 } 00048 00049 // ********************************************************************* 00050 // namespace extensions 00051 namespace OSB_DB { 00052 class Session; 00053 } 00054 00055 // ************************************************************************ 00056 // namespace extensions 00057 namespace OSB_DB { 00063 class AccountGw 00064 { 00066 AccountGw(const AccountGw& rhs); 00068 AccountGw& operator=(const AccountGw& rhs); 00069 public: 00071 AccountGw() {} 00072 00083 long fetch( 00084 const Session& s, 00085 OSB_LIB::AccountList& accountList 00086 ); 00087 }; // class AccountGw 00093 class TmpGlSumGw { 00094 public: 00101 long fetchSequenceNo(const Session& session); 00102 00114 void addAmount( 00115 const Session& session, 00116 long sequenceNo, 00117 const OSB_LIB::Account::Oid& accountCode, 00118 OSB_LIB::Account::Side side, 00119 const OSB_LIB::Money& amount 00120 ); 00121 }; // class TmpGlSumGw 00122 } // namespace OSB_DB 00123 #endif // #ifndef _ACCOUNTGW_H_