21 |
|
|
22 |
class Something : public Object, public GCInterface |
class Something : public Object, public GCInterface |
23 |
{ |
{ |
|
std::string n; |
|
24 |
public: |
public: |
25 |
|
|
26 |
virtual void realize(Usata&, const Object_sp& ){}; |
virtual void realize(Usata&, const Object_sp& ){}; |
27 |
|
Something(); |
28 |
virtual ResourceList |
virtual ResourceList |
29 |
construct(const ObjectProperties&){return ResourceList();} |
construct(const ObjectProperties&){return ResourceList();} |
30 |
virtual void update(void){}; |
virtual void update(void){}; |
31 |
virtual void draw (void){}; |
virtual void draw (void){}; |
32 |
virtual ~Something(){}; |
virtual ~Something(){}; |
|
virtual std::string name(); |
|
33 |
}; |
}; |
34 |
|
|
35 |
std::string |
Something::Something() |
|
Something::name() |
|
36 |
{ |
{ |
37 |
n=(boost::format("Something@%1%")%static_cast<void*>(this)).str(); |
name((boost::format("Something@%1%")%static_cast<const void*>(this)).str()); |
38 |
return n; |
|
39 |
} |
} |
40 |
|
|
41 |
|
|
42 |
USATA_OBJECT_REGISTER(Something) |
USATA_OBJECT_REGISTER(Something) |
43 |
|
|
44 |
} |
} |