tsitem-gw.h

Go to the documentation of this file.
00001 // OSB library ********************************************* -*- C++ -*-
00009 /*
00010   AUTHOR(S): Lilian Qin Lan (lan)
00011              Stephan Broennimann (vb)
00012 
00013   RCS information
00014    $Name: OSB_060808 $
00015    $Revision: 1.18 $
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 _TSITEMGW_H_
00035 #define _TSITEMGW_H_
00036 
00037 // *********************************************************************
00038 // included header files
00039 // + standard includes
00040 
00041 // + local headers
00042 #include "tsitem.h"
00043 
00044 // *********************************************************************
00045 // class declarations
00046 namespace OSB_DB {
00047     class Session;
00048 }
00049 
00050 // ************************************************************************
00051 // namespace extensions
00052 namespace OSB_DB {
00053 
00054 // *********************************************************************
00055 // class definitions
00056 
00060     class TsItemGw {
00062         TsItemGw(const TsItemGw& rhs);
00063 
00065         TsItemGw& operator=(const TsItemGw& rhs);
00066 
00067     public:
00069         TsItemGw() {}
00070 
00072 
00073 
00084         bool fetchTs(
00085             const Session&                   session,
00086                   OSB_LIB::TariffSystemItem& tsItem
00087         );
00088 
00097         bool insTs(
00098             const Session&                   session,
00099             const OSB_LIB::TariffSystemItem& tsItem
00100         );
00101 
00110         bool updTs(
00111             const Session&                   session,
00112             const OSB_LIB::TariffSystemItem& tsItem
00113         );
00114 
00123         bool delTs(
00124             const Session&                   session,
00125             const OSB_LIB::TariffSystemItem& tsItem
00126         );
00128 
00129 
00131 
00132 
00142         bool fetchTs(
00143             const Session&                   session,
00144                   OSB_LIB::PersTariffSystem& persTs);
00145 
00154         bool insTs(
00155             const Session&                   session,
00156             const OSB_LIB::PersTariffSystem& persTs);
00157 
00166         bool updTs(
00167             const Session&                   session,
00168             const OSB_LIB::PersTariffSystem& persTs);
00169 
00177         bool delTs(
00178             const Session&                   session,
00179             const OSB_LIB::PersTariffSystem& persTs);
00181     };
00182 }
00183 // *********************************************************************
00184 // inline definitions
00185 
00186 #endif                                  // #ifndef _TSITEMGW_H_

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