Commit 0b4e52a7 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added BaseObject::NoObject which can be used, if an object does not exist.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17856 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ce2d1329
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include "BaseObjectCore.hh" #include "BaseObjectCore.hh"
#include "BaseObject.hh"
#include "Types.hh" #include "Types.hh"
#include <OpenFlipper/BasePlugin/PluginFunctionsCore.hh> #include <OpenFlipper/BasePlugin/PluginFunctionsCore.hh>
#include <OpenFlipper/BasePlugin/PluginFunctions.hh> #include <OpenFlipper/BasePlugin/PluginFunctions.hh>
...@@ -74,6 +75,11 @@ static ObjectManager objectManager_; ...@@ -74,6 +75,11 @@ static ObjectManager objectManager_;
*/ */
static int idGenerator = 1; static int idGenerator = 1;
/** Static member for no object initialization
*
*/
int BaseObject::NOOBJECT = -1;
BaseObject::BaseObject(const BaseObject& _object) : BaseObject::BaseObject(const BaseObject& _object) :
QObject(), QObject(),
id_(idGenerator), id_(idGenerator),
......
...@@ -101,6 +101,10 @@ class DLLEXPORTONLY BaseObject : public QObject { ...@@ -101,6 +101,10 @@ class DLLEXPORTONLY BaseObject : public QObject {
virtual ~BaseObject(); virtual ~BaseObject();
/** predefined handle which is returned when objects are not found or not initialized.
*/
static int NOOBJECT;
//=========================================================================== //===========================================================================
/** @name Object Identification /** @name Object Identification
* @{ */ * @{ */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment