00001 // OSB library ************************************************ -*- C++ -*- 00006 /* 00007 AUTHOR(S): Stephan Broennimann (vb) 00008 00009 RCS information 00010 $Name: OSB_060808 $ 00011 $Revision: 1.4.2.1 $ 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 _RATINGCFGDATA_H_ 00031 #define _RATINGCFGDATA_H_ 00032 00033 // ************************************************************************ 00034 // included header files 00035 // + standard includes 00036 #include <list> 00037 00038 // + libraries 00039 00040 // + local headers 00041 00042 // + class declarations 00043 namespace OSB_DB { 00044 class Session; 00045 } 00046 00047 namespace OSB_LIB { 00048 class RatedParty; 00049 class RatedPartyEval; 00050 class RatedPartyTypes; 00051 class RpEvalMgr; 00052 class RpEvalType; 00053 class TariffSystem; 00054 class UsageType; 00055 } 00056 00057 // ************************************************************************ 00058 // namespace extensions 00059 namespace OSB_GUI { 00060 00061 // ************************************************************************ 00062 // forward declarations 00063 00064 // ************************************************************************ 00065 // type definitions 00066 00067 // ************************************************************************ 00068 // class definitions 00072 class RpConfigData { 00073 public: 00080 typedef std::list<OSB_LIB::TariffSystem> TsList; 00081 00082 public: 00084 static OSB_LIB::RatedPartyTypes& rpTypes(); 00086 static OSB_LIB::RpEvalMgr& rpEvalMgr(); 00088 static TsList& tsList(); 00090 static void read(const OSB_DB::Session& session); 00091 00092 private: 00094 RpConfigData(); 00096 ~RpConfigData(); 00098 RpConfigData(const RpConfigData&); 00100 RpConfigData& operator=(const RpConfigData&); 00101 00102 private: 00104 OSB_LIB::RatedPartyTypes* rpTypes_; 00106 OSB_LIB::RpEvalMgr* rpEvalMgr_; 00108 TsList* tsList_; 00109 00110 private: 00112 friend class RatingCfgAdmin; 00114 static RpConfigData* instance_; 00115 }; // class RpConfigData 00116 } // namespace OSB_GUI 00117 00118 // ************************************************************************ 00119 // inline definitions 00120 namespace OSB_GUI { 00121 } // namespace OSB_GUI 00122 #endif // #ifndef _RATINGCFGDATA_H_