GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_object.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  This file is part of the GLC-lib library.
4  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
5  http://glc-lib.sourceforge.net
6 
7  GLC-lib is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  GLC-lib is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with GLC-lib; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21 *****************************************************************************/
22 
24 
25 #ifndef GLC_OBJECT_H_
26 #define GLC_OBJECT_H_
27 
28 #include <QtOpenGL>
29 #include <QString>
30 #include <QUuid>
31 #include <QMutex>
32 #include "glc_global.h"
33 
34 #include "glc_config.h"
35 
38 
45 
46 
48 {
50 
52 
53 public:
54 
56 
58  GLC_Object(const QString& name= QString());
59 
61  GLC_Object(GLC_uint id, const QString& name= QString());
62 
64  GLC_Object(const GLC_Object& sourceObject);
65 
67  virtual ~GLC_Object();
69 
71 
73 
74 public:
76  inline GLC_uint id() const
77  {return m_Uid;}
78 
80  inline const QString name() const
81  {return m_Name;}
82 
84  inline bool operator == (const GLC_Object& obj)
85  {return (m_Uid == obj.m_Uid) && (m_Name == obj.m_Name);}
87 
89 
91 
92 public:
93 
95 
96  void setId(const GLC_uint id);
97 
99 
100  void setName(const QString& name);
101 
103 
104  GLC_Object &operator=(const GLC_Object&);
105 
107 
108 
110 // Protected member
112 
113 protected:
115 
117 
119  QString m_Name;
120 
122  QMutex m_Mutex;
123 };
124 #endif //GLC_OBJECT_H_

©2005-2013 Laurent Ribon