00001 // -*- C++ -*- 00020 /* 00021 * $Log: PublisherBase.h,v $ 00022 * Revision 1.1 2006/11/27 09:44:43 n-ando 00023 * The first commitment. 00024 * 00025 */ 00026 00027 #ifndef PublisherBase_h 00028 #define PublisherBase_h 00029 00030 namespace RTC 00031 { 00032 /* 00033 typedef PublisherBase* (*PublisherNewFunc)(InPortConsumer& consumer, 00034 Properties& property); 00035 typedef void (*PublisherDeleteFunc)(PublisherBase* rtc); 00036 00037 template <class _New> 00038 PublisherBase* CreatePublisher(InPortConsumer& consumer, 00039 Properties& property) 00040 { 00041 return new _New(consumer, property); 00042 } 00043 00044 template <class _Delete> 00045 void Delete(PublisherBase* publisher) 00046 { 00047 delete publisher; 00048 } 00049 */ 00050 00073 class PublisherBase 00074 { 00075 public: 00076 virtual void update() = 0; 00077 virtual ~PublisherBase(){}; 00078 }; 00079 00080 }; 00081 #endif // PublisherBase_h