# Hurricane Documentation

# Hurricane VLSI Database

Pad.h
1 // ****************************************************************************************************
2 // File: ./hurricane/Pad.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_PAD
21 #define HURRICANE_PAD
22
23 #include "hurricane/Component.h"
24 #include "hurricane/Pads.h"
25
26 namespace Hurricane {
27
28 class Layer;
29
30
31
32 // ****************************************************************************************************
33 // Pad declaration
34 // ****************************************************************************************************
35
36 class Pad : public Component {
37 // *************************
38
39 // Types
40 // *****
41
42 public: typedef Component Inherit;
43
44 // Attributes
45 // **********
46
47 private: const Layer* _layer;
48 private: Box _boundingBox;
49
50 // Constructors
51 // ************
52
53 protected: Pad(Net* net, const Layer* layer, const Box& boundingBox);
54
55 public: static Pad* create(Net* net, const Layer* layer, const Box& boundingBox);
56
57 // Accessors
58 // *********
59
60 public: virtual DbU::Unit getX() const;
61 public: virtual DbU::Unit getY() const;
62 public: virtual Box getBoundingBox() const;
63 public: virtual Box getBoundingBox(const BasicLayer* basicLayer) const;
64 public: virtual const Layer* getLayer() const {return _layer;};
65
66 // Updators
67 // ********
68
69 public: void setLayer(const Layer* layer);
70 public: virtual void translate(const DbU::Unit& dx, const DbU::Unit& dy);
71 public: void setBoundingBox(const Box& boundingBox);
72
73 // Others
74 // ******
75
76 public: virtual void _toJson(JsonWriter*) const;
77 public: static JsonObject* getJsonObject(unsigned long flags);
78 public: virtual string _getTypeName() const {return _TName("Pad");};
79 public: virtual string _getString() const;
80 public: virtual Record* _getRecord() const;
81
82 };
83
84
85 class JsonPad : public JsonComponent {
86 // ***********************************
87
88 public: static void initialize();
89 public: JsonPad(unsigned long flags);
90 public: virtual string getTypeName() const;
91 public: virtual JsonPad* clone(unsigned long) const;
92 public: virtual void toData(JsonStack&);
93 };
94
95 } // End of Hurricane namespace.
96
97
98 INSPECTOR_P_SUPPORT(Hurricane::Pad);
99
100
101 #endif // HURRICANE_PAD
102
103
104 // ****************************************************************************************************
105 // Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
106 // ****************************************************************************************************
Hurricane::Pad
Pad description (API)
Definition: Pad.h:36
Hurricane::BasicLayer
BasicLayer description (API)
Definition: BasicLayer.h:44
Hurricane::Component
Component description (API)
Definition: Component.h:42
Hurricane::Pad::create
static Pad * create(Net *net, const Layer *layer, const Box &boundingBox)
Hurricane::Pad::Inherit
Component Inherit
Definition: Pad.h:42
Hurricane::JsonObject
Support for JSON export.
Definition: JsonObject.h:83
Hurricane::DbU::Unit
std::int64_t Unit
Definition: DbU.h:70
Hurricane::Box
Box description (API)
Definition: Box.h:31
Hurricane::Layer
Layer description (API)
Definition: Layer.h:52
Hurricane
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5
Hurricane::Net
Net description (API)
Definition: Net.h:48