/[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.3 by skunix, Fri Dec 31 06:34:14 2004 UTC revision 1.4 by skunix, Fri Dec 31 07:27:46 2004 UTC
# Line 21  namespace Line 21  namespace
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& ){};
# Line 31  namespace Line 31  namespace
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)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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