/[usata]/usata2/src/objects/test_object.cpp
ViewVC logotype

Diff of /usata2/src/objects/test_object.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by skunix, Sun Jan 2 02:48:32 2005 UTC revision 1.6 by skunix, Mon Jan 3 07:43:50 2005 UTC
# Line 21  namespace Line 21  namespace
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  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26