/[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.1 by skunix, Thu Dec 30 06:08:00 2004 UTC revision 1.2 by skunix, Thu Dec 30 20:14:57 2004 UTC
# Line 14  Line 14 
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    
# 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();
   
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  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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