networktocp.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.7 $
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 _NETWORKTOCP_H_
00031 #define _NETWORKTOCP_H_
00032 
00033 // *********************************************************************
00034 // included header files
00035 // + standard includes
00036 
00037 // + local headers
00038 #include "cpmapper.h"
00039 
00040 // *********************************************************************
00041 // class declarations
00042 namespace OSB_LIB {
00043     class Network;                      // network.h
00044     class NetworkElement;               // network.h
00045 }
00046 
00047 // ************************************************************************
00048 // namespace extensions
00049 namespace OSB_LIB {
00050 
00051 // *********************************************************************
00052 // class definitions
00053 
00054     // *****************************************************************
00055     // class NetworkToCp
00062     class NetworkToCp : public CpMapper {
00064         static const CpmType cpmType_ = cpmNetwork;
00065     public:
00066         // Documentation from base class
00067         typedef std::auto_ptr<NetworkToCp> AutoPtr;
00068     public:
00069         // Documentation from base class
00070         AutoPtr clone() const;
00071         // Documentation from base class
00072         Type type() const { return Type(cpmType_); }
00086         virtual Id<ConnectionPt> map2Cp(Cdr& cdr) const;
00087     private:
00088         // Documentation from base class
00089         virtual CpMapper* clone_() const;
00090     };                                  // class NetworkToCp
00091 
00092     // *****************************************************************
00093     // class NwElementToCp
00100     class NwElementToCp : public CpMapper {
00102         static const CpmType cpmType_ = cpmNwElement;
00103     public:
00104         // Documentation from base class
00105         typedef std::auto_ptr<NwElementToCp> AutoPtr;
00106     public:
00107         // Documentation from base class
00108         AutoPtr clone() const;
00109         // Documentation from base class
00110         Type type() const { return Type(cpmType_); }
00124         virtual Id<ConnectionPt> map2Cp(Cdr& cdr) const;
00125     private:
00126         // Documentation from base class
00127         virtual CpMapper* clone_() const;
00128     };                                  // class NwElementToCp
00129 
00130 // *********************************************************************
00131 // inline definitions
00132 
00133 }                                       // namespace OSB_LIB
00134 #endif                                  // #ifndef _NETWORKTOCP_H_

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