14 |
|
|
15 |
#include "../object.hpp" |
#include "../object.hpp" |
16 |
#include "../object-registry.hpp" |
#include "../object-registry.hpp" |
17 |
|
#include <boost/format.hpp> |
18 |
namespace |
namespace |
19 |
{ |
{ |
20 |
using namespace usata; |
using namespace usata; |
21 |
|
|
22 |
class Something : public Object |
class Something : public Object |
23 |
{ |
{ |
24 |
|
|
31 |
virtual void update(void){}; |
virtual void update(void){}; |
32 |
virtual void draw (void){}; |
virtual void draw (void){}; |
33 |
virtual ~Something(){}; |
virtual ~Something(){}; |
34 |
|
virtual std::string name(); |
|
|
|
35 |
}; |
}; |
36 |
|
|
37 |
|
std::string |
38 |
|
Something::name() |
39 |
|
{ |
40 |
|
return (boost::format("Something@%1%")%static_cast<void*>(this)).str(); |
41 |
|
} |
42 |
|
|
43 |
USATA_OBJECT_REGISTER(Something) |
USATA_OBJECT_REGISTER(Something) |
44 |
|
|
45 |
} |
} |