osberrors.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.9 $
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 _OSBERRORS_H_
00031 #define _OSBERRORS_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 #include <list>
00037 
00038 // + local headers
00039 #include "osberror.h"
00040 
00041 // ************************************************************************
00042 // namespace extensions
00043 namespace OSB_LIB {
00044 
00045 // ************************************************************************
00046 // class definitions
00047 
00056     class OsbErrors {
00057     public:
00059         typedef std::list<OsbError> Cont;
00061         typedef Cont::size_type Size;
00063         typedef Cont::iterator Iter;
00065         typedef Cont::const_iterator ConstIter;
00066     public:                             // wrappers to STL container
00068 
00069 
00070         const Cont& cont() const;
00072         Size size() const;
00074         bool empty() const;
00076         const OsbError& front() const;
00078         const OsbError& back() const;
00080         ConstIter begin() const;
00082         ConstIter end() const;
00084 
00086 
00087 
00088         void pushBack(const OsbError& e);
00096         void append(const OsbErrors& errors);
00098         void clear();
00100         OsbError& back();
00102         Iter begin();
00104         Iter end();
00106     private:
00108         Cont cont_;
00109     };                                  // class OsbErrors
00110 }                                       // namespace OSB_LIB
00111 #endif                                  // #ifndef _OSBERRORS_H_

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