-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectBase.h
More file actions
47 lines (34 loc) · 793 Bytes
/
Copy pathObjectBase.h
File metadata and controls
47 lines (34 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef BaseLib_ObjectBase_h_Included
#define BaseLib_ObjectBase_h_Included
#include<exception>
#include<iostream>
#include<string>
#include"BaseLib/Mutex.h"
#include"BaseLib/Export.h"
namespace BaseLib
{
// TODO: Add function that uniquely id the object
class DLL_STATE ObjectBase
{
public:
ObjectBase(std::string objectName = std::string(""));
virtual ~ObjectBase();
std::string Name() const throw();
void SetName(std::string name) throw();
//shared_ptr<X> create();
//static virtual shared_ptr<ObjectBase> create();
private:
std::string name_;
mutable Mutex mutex_;
};
/*template <class T>
class IObject {
public:
IObject(T obj) : obj_(obj)
{}
private:
T obj_;
}
*/
} // namespace ObjectBase
#endif // BaseLib_ObjectBase_h_Included