14 #ifndef _PyDataSource_H
15 #define _PyDataSource_H
51 void checkRank ( boost::python::numeric::array array );
73 void static extractVector ( boost::python::numeric::array array,
74 std::vector<double> & col );
79 template <
typename T >
80 void static copy_direct ( boost::python::numeric::array array,
81 std::vector<double > & col );
93 unsigned int rows()
const;
96 const std::string &
getTitle ()
const;
98 void setTitle(
const std::string & title);
102 void setName(
const std::string & name);
105 const std::vector<std::string> &
getLabels()
const;
108 const std::vector<double> &
getColumn(
const std::string & name)
const;
110 const std::vector<double> &
getColumn(
unsigned int index)
const;
114 const std::vector<double> & col);
118 const std::vector<double> & col);
123 boost::python::numeric::array array );
128 boost::python::numeric::array array);
131 int addColumn(
const std::string & label,
132 const std::vector<double> & col );
140 int addColumn(
const std::string & label,
141 boost::python::numeric::array array );
148 bool hasColumn(
const std::string & name)
const;
161 boost::python::numeric::array
167 boost::python::numeric::array
173 const std::vector < double > & v,
174 const std::vector < intptr_t > &
shape );
180 boost::python::numeric::array array );
186 boost::python::numeric::array array );
192 const std::vector < double > & array );
196 void addRow (
const std::vector < double > & array );
210 const char *
what()
const throw() {
230 #endif // _PyDataSource_H