Code_TYMPAN  4.2.0
Industrial site acoustic simulation
OSizeManager.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14 */
15 
16 /*
17  *
18  */
19 
20 #ifndef __O_SIZEMANAGER__
21 #define __O_SIZEMANAGER__
22 
23 #include "Tympan/core/smartptr.h"
24 
25 // Smart pointer sur OSizeManager.
28 
37 class OSizeManager : public IRefCount
38 {
39 public:
43  ~OSizeManager();
44 
48  static LPOSizeManager get();
49 
53  inline void setWidth(unsigned int width) { _width = width; }
54 
58  inline void setHeight(unsigned int height) { _height = height; }
59 
63  inline unsigned int getWidth() const { return _width; }
64 
68  inline unsigned int getHeight() const { return _height; }
69 
70 private:
71  // Instance unique.
73 
77  OSizeManager();
78 
79  // Copy prohibited
80  OSizeManager(const OSizeManager&);
82 
83  // Largeur
84  unsigned int _width;
85 
86  // Hauteur
87  unsigned int _height;
88 };
89 
90 
91 #endif // __O_SIZEMANAGER__
unsigned int _height
Definition: OSizeManager.h:87
unsigned int getWidth() const
Definition: OSizeManager.h:63
unsigned int _width
Definition: OSizeManager.h:84
SmartPtr< OSizeManager > LPOSizeManager
Definition: OSizeManager.h:26
static LPOSizeManager _pInstance
Definition: OSizeManager.h:72
void setWidth(unsigned int width)
Definition: OSizeManager.h:53
OSizeManager & operator=(const OSizeManager &)
unsigned int getHeight() const
Definition: OSizeManager.h:68
void setHeight(unsigned int height)
Definition: OSizeManager.h:58