productadmin-server.h

Go to the documentation of this file.
00001 // OSB library ********************************************* -*- C++ -*-
00009 /*
00010   AUTHOR(S): Yeo Han Kwang (yhk)
00011 
00012   RCS information
00013    $Name: OSB_060808 $
00014    $Revision: 1.19 $
00015 
00016   License
00017    OSB rating and billing library for communication networks
00018    Copyright (C) 2004, 2005, 2006  OSB systems
00019 
00020    This file may be distributed and/or modify under the terms of the
00021    GNU General Public License (GPL) as published by the Free Software
00022    Foundation which is provided in the file LICENSE.GPL included in the
00023    packaging of this file.
00024 
00025    The file is distributed in the hope that it will be useful, but WITHOUT
00026    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00027    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00028    for more details.
00029 
00030    Holders of a OSB Commercial License may use this file under the terms
00031    and conditions of this commercial license.
00032  */
00033 
00034 #ifndef _PRODUCTADMIN_SERVER_H_
00035 #define _PRODUCTADMIN_SERVER_H_
00036 
00037 // *********************************************************************
00038 // included header files
00039 // + standard includes
00040 // + libraries and external header files
00041 // + local headers
00042 namespace OSB_DB {
00043     class Session;
00044 }
00045 
00046 namespace OSB_LIB {
00047     class Mutex;
00048     class OsbException;
00049 }
00050 
00051 // *****************************************************************
00052 // class SessionGuard
00053 class SessionGuard {
00054     static OSB_LIB::Mutex mutex_;
00055 public:
00056     SessionGuard(bool nowait);
00057     ~SessionGuard();
00058     OSB_DB::Session& get();
00059 
00060 private:
00061     SessionGuard(const SessionGuard&);  // Not implemented.
00062 
00063     OSB_DB::Session* pSession_;
00064 };
00065 #endif // #ifndef _PRODUCTADMIN_SERVER_H_

Generated on Sat Sep 2 14:25:52 2006 for OSB Library by  doxygen 1.4.7