export_FitsNTuple.cxx

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

Generated for HippoDraw Class Library by doxygen