21 |
|
|
22 |
class Something : public Object, public GCInterface |
class Something : public Object, public GCInterface |
23 |
{ |
{ |
24 |
|
std::string n; |
25 |
public: |
public: |
26 |
|
|
27 |
virtual void realize(Usata&, const Object_sp& ){}; |
virtual void realize(Usata&, const Object_sp& ){}; |
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(); |
virtual const std::string &name(); |
35 |
}; |
}; |
36 |
|
|
37 |
std::string |
const std::string& |
38 |
Something::name() |
Something::name() |
39 |
{ |
{ |
40 |
return (boost::format("Something@%1%")%static_cast<void*>(this)).str(); |
n=(boost::format("Something@%1%")%static_cast<void*>(this)).str(); |
41 |
|
return n; |
42 |
} |
} |
43 |
|
|
44 |
USATA_OBJECT_REGISTER(Something) |
USATA_OBJECT_REGISTER(Something) |