catlock-gw.h

Go to the documentation of this file.
00001 // OSB library ********************************************* -*- C++ -*-
00009 /*
00010   AUTHOR(S): Darryl Kang (dk)
00011 
00012   RCS information
00013    $Name: OSB_060808 $
00014    $Revision: 1.10 $
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 #ifndef _CATLOCKGW_H_
00034 #define _CATLOCKGW_H_
00035 
00036 // *********************************************************************
00037 // included header files:
00038 // + standard includes
00039 
00040 // + local headers
00041 
00042 // *********************************************************************
00043 // class declarations
00044 namespace OSB_DB {
00045     class Session;
00046 }
00047 
00048 // ************************************************************************
00049 // namespace extensions
00050 namespace OSB_DB {
00051 
00052 // *********************************************************************
00053 // class definitions
00055     class CatLockGw {
00056     public:
00058         CatLockGw() {}
00059         // copy, destructor and assigment by compiler
00060 
00061         enum CatLock {
00063             lockProductCatalogue  = 1,
00064 
00066             lockTariffCatalogue   = 2
00067         };
00068 
00088         bool lock (
00089             const Session& session,
00090             const long     lockId,
00091                   bool     noWait = true
00092         );
00093     };
00094 
00095 }                                       // namespace OSB_DB
00096 #endif                                  // #ifndef _CATLOCKGW_H_

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