Hurricane VLSI Database


Warning.h
1
2// -*- C++ -*-
3//
4// Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
5//
6// This file is part of Hurricane.
7//
8// Hurricane is free software: you can redistribute it and/or modify
9// it under the terms of the GNU Lesser General Public License as
10// published by the Free Software Foundation, either version 3 of the
11// License, or (at your option) any later version.
12//
13// Hurricane is distributed in the hope that it will be useful, but
14// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-
15// TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU
16// General Public License for more details.
17//
18// You should have received a copy of the Lesser GNU General Public
19// License along with Hurricane. If not, see
20// <http://www.gnu.org/licenses/>.
21//
22// +-----------------------------------------------------------------+
23// | H U R R I C A N E |
24// | V L S I B a c k e n d D a t a - B a s e |
25// | |
26// | Author : Remy Escassut |
27// | E-mail : Jean-Paul.Chaput@lip6.fr |
28// | =============================================================== |
29// | C++ Header : "./hurricane/Warning.h" |
30// +-----------------------------------------------------------------+
31
32
33# ifndef HURRICANE_WARNING_H
34# define HURRICANE_WARNING_H
35
36#include "hurricane/Exception.h"
37
38
39namespace Hurricane {
40
41
42 class Warning : public Exception {
43
44 public:
45 // Constructors.
46 Warning ( const string& reason );
47 Warning ( const char* format, ... );
48 Warning ( int code, const string& reason );
49 Warning ( int code, const char* format, ... );
50 Warning ( const Warning& warning );
51 Warning& operator= ( const Warning& warning );
52 // Methods.
53 inline string getReason () const { return _reason; }
54 inline int getCode () const { return _code; }
55 // Hurricane Managment.
56 virtual string _getTypeName () const;
57 virtual string _getString () const;
58
59 protected:
60 // Internal: Attributes.
61 string _reason;
62 int _code;
63 };
64
65
66} // Hurricane namespace.
67
68
69GETSTRING_POINTER_SUPPORT(Hurricane::Warning);
70GETSTRING_VALUE_SUPPORT(Hurricane::Warning);
71IOSTREAM_POINTER_SUPPORT(Hurricane::Warning);
72IOSTREAM_VALUE_SUPPORT(Hurricane::Warning);
73
74
75#endif // HURRICANE_WARNING_H
Warning description (API).
Definition Warning.h:42
Warning & operator=(const Warning &warning)
int getCode() const
Definition Warning.h:54
Warning(const Warning &warning)
Warning(const char *format,...)
Warning(int code, const string &reason)
Warning(int code, const char *format,...)
Warning(const string &reason)
string getReason() const
Definition Warning.h:53
Contains Almost Everything.
Definition BasicLayer.h:39


Generated by doxygen 1.16.1 on Return to top of page
Hurricane VLSI Database Copyright © 2000-2020 Bull S.A. All rights reserved