00001 #include <vector> 00002 00003 class Callbacks 00004 { 00005 public: 00006 typedef void (*PVF)(); 00007 void add( PVF f ); 00008 void run() const; 00009 00010 private: 00011 std::vector<PVF> m_funcPointers; 00012 };