pmc/include/object.h
changeset 42 83b8151b966d
parent 34 4a35f239fe5b
child 54 c064ce9f40f5
equal deleted inserted replaced
41:574503cf7bb0 42:83b8151b966d
     5 
     5 
     6 #ifndef OBJECT_H
     6 #ifndef OBJECT_H
     7 #define OBJECT_H
     7 #define OBJECT_H
     8 
     8 
     9 #include <string>
     9 #include <string>
    10 #include <iostream>
       
    11 
    10 
    12 class Object {
    11 class Object {
    13   protected:
    12   protected:
    14     std::string name;
    13     std::string name;
    15 
    14 
    16   public:
    15   public:
    17     virtual ~ Object () {
    16     virtual ~ Object ();
    18         std::cout << "Freeing Object " << name << std::endl;
    17     virtual std::string getName ();
    19      };
    18     virtual Object getClass ();
    20 };
    19 };
    21 #endif
    20 #endif