00001
00012 #ifdef _MSC_VER
00013
00014 # pragma warning(disable:4231)
00015
00016
00017 # pragma warning(disable:4251)
00018
00019
00020 # pragma warning(disable:4275)
00021
00022
00023 # pragma warning(disable:4800)
00024 #endif
00025
00026 #include "fits/FitsNTuple.h"
00027
00028 #include <boost/python.hpp>
00029
00030 using std::vector;
00031 using namespace boost::python;
00032
00033 namespace hippodraw {
00034 namespace Python {
00035
00036 void
00037 export_FitsNTuple()
00038 {
00039 class_ < FitsNTuple, bases < DataSource > >
00040 ( "FitsNTuple",
00041 "a derived class of DataSource that references a table or image in a\n"
00042 "FITS file. A FitNTuple object must be created by the FitsController."
00043 "Changes made to this object will not be refected in the FITS file.",
00044 no_init )
00045
00046 .def ( "addColumn",
00047 &FitsNTuple::addColumn,
00048 "addColumn ( string, list or tuple ) -> value\n"
00049 "\n"
00050 "Adds a column to the data source. The string argument is used\n"
00051 "for the label of the new column. The length of the new column\n"
00052 "must the same as existing columns. The value returns is the\n"
00053 "index to the column." )
00054
00055 .def ( "replaceColumn",
00056 ( void ( FitsNTuple::* )
00057 ( const std::string &,
00058 const std::vector < double > & ) )
00059 &FitsNTuple::replaceColumn,
00060 "replaceColumn ( index, list ) -> None\n"
00061 "replaceColumn ( label, list ) -> None\n"
00062 "\n"
00063 "Replaces the column of data by index or label. Does not\n"
00064 "modifiy the FITS file." )
00065
00066 .def ( "replaceColumn",
00067 ( void ( FitsNTuple::* )
00068 ( unsigned int,
00069 const std::vector < double > & ) )
00070 &FitsNTuple::replaceColumn )
00071 ;
00072 }
00073
00074 }
00075 }