usagerecord-gw.h

Go to the documentation of this file.
00001 // OSB library ********************************************* -*- C++ -*-
00010 /*
00011   AUTHOR(S): Andreas Huggel (ahu)
00012 
00013   RCS information
00014    $Name: OSB_060808 $
00015    $Revision: 1.14 $
00016 
00017   License
00018    OSB rating and billing library for communication networks
00019    Copyright (C) 2004, 2005, 2006  OSB systems
00020 
00021    This file may be distributed and/or modify under the terms of the
00022    GNU General Public License (GPL) as published by the Free Software
00023    Foundation which is provided in the file LICENSE.GPL included in the
00024    packaging of this file.
00025 
00026    The file is distributed in the hope that it will be useful, but WITHOUT
00027    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00028    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00029    for more details.
00030 
00031    Holders of a OSB Commercial License may use this file under the terms
00032    and conditions of this commercial license.
00033  */
00034 #ifndef _USAGERECORDGW_H_
00035 #define _USAGERECORDGW_H_
00036 
00037 // + standard includes
00038 
00039 // + local headers
00040 #include "usagerecord.h"
00041 
00042 // *********************************************************************
00043 // class declarations
00044 namespace OSB_DB {
00045     class Session;
00046 }
00047 
00048 // ************************************************************************
00049 // namespace extensions
00050 namespace OSB_DB {
00051 
00052 // *********************************************************************
00053 // class definitions
00054 
00060     struct UsagerecordGw {
00074         long fetch(
00075             const Session&                session,
00076                   OSB_LIB::UrContainer*   usageRecords,
00077                   short                   size,
00078             const OSB_LIB::Contract::Oid& contractId,
00079             const OSB_LIB::Date&          from,
00080             const OSB_LIB::Date&          upto
00081         );
00082 
00101         void insUsagerecord(
00102             const Session&              session,
00103             const OSB_LIB::UrContainer& urs
00104         );
00105     };
00106 }                                       // namespace OSB_DB
00107 #endif                                  // #ifndef _USAGERECORDGW_H_

Generated on Sat Sep 2 14:06:35 2006 for OSB Library by  doxygen 1.4.7