00001 /* -*- mode: c++ -*- */ 00002 00014 #ifndef _PyNTuple_H_ 00015 #define _PyNTuple_H_ 00016 00017 #include "datasrcs/NTuple.h" 00018 00019 namespace hippodraw { 00020 00028 class PyNTuple : public NTuple 00029 { 00030 private: 00031 00032 public: 00033 00036 explicit PyNTuple ( const std::vector < std::string > & labels ); 00037 00042 PyNTuple ( unsigned int n ); 00043 00046 PyNTuple ( const PyNTuple & ); 00047 00050 PyNTuple ( const NTuple & ); 00051 00054 PyNTuple ( ); 00055 00058 virtual void setTitle ( const std::string & title ); 00059 00060 virtual int addColumn ( const std::string & label, 00061 const std::vector < double > & column ); 00062 00063 virtual void replaceColumn ( unsigned int i, 00064 const std::vector < double > & column ); 00065 00066 virtual void replaceColumn ( const std::string & label, 00067 const std::vector < double > & column ); 00068 00069 virtual void addRow ( const std::vector < double > & row ); 00070 00071 virtual void clear (); 00072 00073 virtual void append ( const DataSource * source ); 00074 00075 }; 00076 00077 } // namespace hippodraw 00078 00079 #endif // _PyNTuple_H_