inventorypool.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.2 $
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 _INVENTORYPOOL_H_
00031 #define _INVENTORYPOOL_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 #include <list>
00037 #include <string>
00038 
00039 // + libraries
00040 
00041 // + local headers
00042 #include "osbid.h"
00043 
00044 // + class declarations
00045 namespace OSB_DB {
00046     class InventoryPoolGw;
00047     class Session;
00048 }
00049 
00050 // ************************************************************************
00051 // namespace extensions
00052 namespace OSB_LIB {
00053 
00054 // ************************************************************************
00055 // forward declarations
00056 
00057 // ************************************************************************
00058 // type definitions
00059 
00060 // ************************************************************************
00061 // class definitions
00062 
00076     class InventoryPool {
00078         friend class OSB_DB::InventoryPoolGw;
00079     public:
00081         typedef Id<InventoryPool> Oid;
00082 
00083     public:
00085         explicit InventoryPool(const Oid& oid = Oid());
00086 
00087     public:
00089 
00090 
00091         Oid oid() const;
00093         const std::string& name() const;
00095         const std::string& des() const;
00097 
00099 
00100 
00108         void setName(const std::string& name);
00116         void setDes(const std::string des);
00118 
00126         static void read(
00127             const OSB_DB::Session&          session,
00128                   std::list<InventoryPool>& dest
00129         );
00130 
00132 
00133 
00140         void read(const OSB_DB::Session& session);
00148         void save(const OSB_DB::Session& session);
00155         void remove(const OSB_DB::Session& session);
00157 
00158     private:
00160         Oid oid_;
00162         std::string name_;
00164         std::string des_;
00165     };                                  // class InventoryPool
00166 }                                       // namespace OSB_LIB
00167 
00168 // ************************************************************************
00169 // inline definitions
00170 namespace OSB_LIB {
00171 }                                       // namespace OSB_LIB
00172 #endif                                  // #ifndef _INVENTORYPOOL_H_

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