Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPanel.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
16 /*
17  *
18  */
19 
20 #ifndef __TY_PANEL__
21 #define __TY_PANEL__
22 
24 
33 class TYPanel : public TYElement
34 {
37 
38  // Methodes
39 public:
45  TYPanel();
46 
52  TYPanel(const TYPanel& other);
53 
59  virtual ~TYPanel();
60 
62  TYPanel& operator=(const TYPanel& other);
63 
65  bool operator==(const TYPanel& other) const;
66 
68  bool operator!=(const TYPanel& other) const;
69 
78  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
79 
80  virtual std::string toString() const;
81 
87  std::string getFirstPos() const
88  {
89  return _firstPos;
90  }
91 
96  void setFirstPos(const std::string& firstPos)
97  {
98  _firstPos = firstPos;
99  }
100 
106  std::string getSecondPos() const
107  {
108  return _secondPos;
109  }
110 
115  void setSecondPos(const std::string& secondPos)
116  {
117  _secondPos = secondPos;
118  }
119 
125  std::string getValue() const
126  {
127  return _value;
128  }
129 
134  void setValue(const std::string& value)
135  {
136  _value = value;
137  }
138 
139 protected:
140  std::string _firstPos;
141  std::string _secondPos;
142  std::string _value;
143 };
144 
145 #endif // __TY_PANEL__
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
Definition: TYElement.h:430
#define OPROTODECL(classname)
Definition: TYElement.h:64
Classe de definition d'un panel d'information.
Definition: TYPanel.h:34
bool operator==(const TYPanel &other) const
Operateur ==.
Definition: TYPanel.cpp:51
TYPanel & operator=(const TYPanel &other)
Operateur =.
Definition: TYPanel.cpp:39
TYPanel()
Constructeur. Le constructeur de la calsse TYPanel.
Definition: TYPanel.cpp:23
std::string getSecondPos() const
Get de la seconde position.
Definition: TYPanel.h:106
virtual ~TYPanel()
Destructeur. Le destructeur de la calsse TYPanel.
Definition: TYPanel.cpp:37
virtual std::string toString() const
Definition: TYPanel.cpp:96
std::string getFirstPos() const
Get/set de la premiere position.
Definition: TYPanel.h:87
std::string _value
Definition: TYPanel.h:142
void setFirstPos(const std::string &firstPos)
Set de la premiere position.
Definition: TYPanel.h:96
void setValue(const std::string &value)
Set de la valeur.
Definition: TYPanel.h:134
bool operator!=(const TYPanel &other) const
Operateur !=.
Definition: TYPanel.cpp:75
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
Definition: TYPanel.cpp:80
std::string getValue() const
Get de la valeur.
Definition: TYPanel.h:125
std::string _secondPos
Definition: TYPanel.h:141
std::string _firstPos
Definition: TYPanel.h:140
void setSecondPos(const std::string &secondPos)
Set de la seconde position.
Definition: TYPanel.h:115