# Hurricane VLSI Database

Interruption.h
1 // ****************************************************************************************************
2 // File: ./hurricane/Interruption.h
3 // Authors: R. Escassut
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 it under the terms of the GNU
9 // Lesser General Public License as published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
11 //
12 // Hurricane is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
13 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU
14 // General Public License for more details.
15 //
16 // You should have received a copy of the Lesser GNU General Public License along with Hurricane. If
17 // not, see <http://www.gnu.org/licenses/>.
18 // ****************************************************************************************************
19
20 #ifndef HURRICANE_INTERRUPTION
21 #define HURRICANE_INTERRUPTION
22
23 #include "hurricane/Exception.h"
24
25 namespace Hurricane {
26
27
28
29 // ****************************************************************************************************
30 // Interruption declaration
31 // ****************************************************************************************************
32
33 class Interruption : public Exception {
34 // **********************************
35
36 // Types
37 // *****
38
39 public: typedef Exception Inherit;
40
41 // Attributes
42 // **********
43
44 private: string _reason;
45 private: int _code;
46
47 // Constructors
48 // ************
49
50 public: Interruption(const string& reason, int code = 0);
51
52 public: Interruption(const Interruption& interruption);
53
54 // Operators
55 // *********
56
57 public: Interruption& operator=(const Interruption& interruption);
58
59 // Accessors
60 // *********
61
62 public: string getReason() const {return _reason;};
63 public: int getCode() const {return _code;};
64
65 // Others
66 // ******
67
68 public: virtual string _getTypeName() const { return _TName("Interruption"); };
69 public: virtual string _getString() const;
70
71 };
72
73
74 } // End of Hurricane namespace.
75
76
77 #endif // HURRICANE_INTERRUPTION
78
79
80 // ****************************************************************************************************
81 // Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
82 // ****************************************************************************************************
Hurricane::Interruption::operator=
Interruption & operator=(const Interruption &interruption)
Hurricane::Interruption
Interruption description (API)
Definition: Interruption.h:33
Hurricane::Exception
Exception description (API)
Definition: Exception.h:34
Hurricane::Interruption::Inherit
Exception Inherit
Definition: Interruption.h:39
Hurricane::Interruption::Interruption
Interruption(const string &reason, int code=0)
Hurricane
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5

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