00001 00008 #ifndef _CONNECTABLE_H 00009 #define _CONNECTABLE_H 00010 00011 #include "main.h" 00012 00013 class Object; 00014 00015 class Connectable { 00016 public: 00017 Connectable() : _connection(NULL) {} 00018 void set_connection( Object* object ) { _connection = object; } 00019 Object* get_connection() { return _connection; } 00020 const Object* get_connection() const { return _connection; } 00021 private: 00022 Object* _connection; 00023 }; 00024 00025 #endif // header guard