00001 #ifndef TESTPASSES__TESTOBJECTS_H 00002 #define TESTPASSES__TESTOBJECTS_H 00003 00004 #include "suifkernel/suif_object.h" 00005 #include "suifkernel/suifkernel_forwarders.h" 00006 #include "suifkernel/iter.h" 00007 00008 class TestX : public SuifObject { 00009 friend class TestObjectFactory; 00010 public: 00011 virtual ~TestX(); 00012 00013 virtual void setX1( TestX* x1 ); 00014 virtual void setX2( TestX* x2 ); 00015 virtual TestX* getX1(); 00016 virtual TestX* getX2(); 00017 virtual void setInt1( int i ); 00018 virtual int getInt1(); 00019 virtual void add( TestX* x ); 00020 virtual Iter<TestX*>* get_vector_iterator(); 00021 00022 static const LString &get_class_name(); 00023 00024 protected: 00025 00026 static void constructorFunction( void* place ); 00027 00028 TestX(); 00029 00030 00031 private: 00032 int i; 00033 TestX* x1; 00034 TestX* x2; 00035 suif_vector<TestX*>* _vector; 00036 }; 00037 00038 00039 // -------------------------------- TestY ---------------------- 00040 00041 class TestY : public TestX { 00042 friend class TestObjectFactory; 00043 public: 00044 virtual void setX3( TestX* x3 ); 00045 virtual TestX* getX3(); 00046 00047 virtual ~TestY(); 00048 00049 static const LString &get_class_name(); 00050 protected: 00051 TestY(); 00052 00053 static void constructorFunction( void* place ); 00054 00055 private: 00056 TestX* x3; 00057 }; 00058 00059 #endif 00060 00061 00062