# 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
39 namespace 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;
54 inline int getCode () const;
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 // Inline Functions.
67 inline string Warning::getReason () const { return _reason; }
68 inline int Warning::getCode () const { return _code; }
69
70
71 } // Hurricane namespace.
72
73
74 GETSTRING_POINTER_SUPPORT(Hurricane::Warning);
75 GETSTRING_VALUE_SUPPORT(Hurricane::Warning);
76 IOSTREAM_POINTER_SUPPORT(Hurricane::Warning);
77 IOSTREAM_VALUE_SUPPORT(Hurricane::Warning);
78
79
80 #endif // HURRICANE_WARNING_H
Hurricane::Warning::Warning
Warning(const string &reason)
Hurricane::Warning::getCode
int getCode() const
Definition: Warning.h:68
Hurricane::Warning
Warning description (API)
Definition: Warning.h:42
Hurricane::Warning::getReason
string getReason() const
Definition: Warning.h:67
Hurricane::Exception
Exception description (API)
Definition: Exception.h:34
Hurricane
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5
Hurricane::Warning::operator=
Warning & operator=(const Warning &warning)

Generated by doxygen 1.8.14 on Sun Mar 8 2020 | Return to top of page

Hurricane VLSI Database | Copyright © 2000-2016 Bull S.A. All rights reserved