statuschange-gw.h

Go to the documentation of this file.
00001 // OSB library ************************************************ -*- C++ -*-
00006 /*
00007   AUTHOR(S): Stephan Broennimann (vb)
00008 
00009   RCS information
00010    $Name: OSB_060808 $
00011    $Revision: 1.5 $
00012 
00013   License
00014    OSB rating and billing library for communication networks
00015    Copyright (C) 2004, 2005, 2006  OSB systems
00016 
00017    This file may be distributed and/or modify under the terms of the
00018    GNU General Public License (GPL) as published by the Free Software
00019    Foundation which is provided in the file LICENSE.GPL included in the
00020    packaging of this file.
00021 
00022    The file is distributed in the hope that it will be useful, but WITHOUT
00023    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00024    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00025    for more details.
00026 
00027    Holders of a OSB Commercial License may use this file under the terms
00028    and conditions of this commercial license.
00029  */
00030 #ifndef _STATUSCHANGEGW_H_
00031 #define _STATUSCHANGEGW_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 
00037 // + libraries
00038 
00039 // + local headers
00040 #include "osbid.h"
00041 #include "status.h"
00042 
00043 // + class declarations
00044 namespace OSB_DB {
00045     class Session;
00046 }
00047 
00048 namespace OSB_LIB {
00049     class Associate;
00050     class Contract;
00051     class DateTime;
00052     class PersProduct;
00053     class PersProductNode;
00054     class StatusChange;
00055     class StatusChanges;
00056 }
00057 
00058 // ************************************************************************
00059 // namespace extensions
00060 namespace OSB_DB {
00061 
00062 // ************************************************************************
00063 // forward declarations
00064 
00065 // ************************************************************************
00066 // type definitions
00067 
00068 // ************************************************************************
00069 // class definitions
00085     class StatusChangeGw {
00086     public:
00095         long fetch(
00096             const Session&                         session,
00097                   OSB_LIB::StatusChanges*          changes,
00098             const OSB_LIB::Id<OSB_LIB::Associate>& id
00099         );
00100 
00109         long fetch(
00110             const Session&                        session,
00111                   OSB_LIB::StatusChanges*         changes,
00112             const OSB_LIB::Id<OSB_LIB::Contract>& id
00113         );
00114 
00123         long fetch(
00124             const Session&                           session,
00125                   OSB_LIB::StatusChanges*            changes,
00126             const OSB_LIB::Id<OSB_LIB::PersProduct>& id
00127         );
00128 
00137         long fetch(
00138             const Session&                                session,
00139                   OSB_LIB::StatusChanges*                 changes,
00140             const OSB_LIB::Id2<OSB_LIB::PersProductNode>& ppnId
00141         );
00142 
00152         bool fetch(
00153             const Session&               session,
00154                   OSB_LIB::StatusChange& stChange
00155         );
00156 
00163         void insert(
00164             const Session&                session,
00165                   OSB_LIB::StatusChange& change
00166         );
00167     };                                  // class StatusChangeGw
00168 
00169 }                                       // namespace OSB_DB
00170 
00171 // ************************************************************************
00172 // inline definitions
00173 namespace OSB_DB {
00174 }                                       // namespace OSB_DB
00175 #endif                                  // #ifndef _STATUSCHANGEGW_H_

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