Honeycomb  0.1
Component-Model Framework
Object.h
Go to the documentation of this file.
1 // Honeycomb, Copyright (C) 2015 NewGamePlus Inc. Distributed under the Boost Software License v1.0.
2 #pragma once
3 
4 #include "Honey/String/Id.h"
6 
7 namespace honey
8 {
9 
11 
12 class Object : public SharedObj<Object>
13 {
14 public:
15  Object(const Id& id = idnull) : _instId(id) {}
16  virtual ~Object() {}
17 
19  virtual void setInstId(const Id& id) { _instId = id; }
20  const Id& getInstId() const { return _instId; }
21 
22 protected:
24 };
25 
26 }
virtual void setInstId(const Id &id)
Set per instance id.
Definition: Object.h:19
Reference-counted object for intrusive shared pointers.
Definition: SharedPtr.h:93
Object(const Id &id=idnull)
Definition: Object.h:15
virtual ~Object()
Definition: Object.h:16
#define idnull
Null id.
Definition: Id.h:124
const Id & getInstId() const
Definition: Object.h:20
Id _instId
Definition: Object.h:23
Holds a name string and its hashed value for fast comparison ops. See String Identifier.
Definition: Id.h:25
Base class for objects.
Definition: Object.h:12
Global Honeycomb namespace.