Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PyFitsController Class Reference

#include <PyFitsController.h>

Collaboration diagram for PyFitsController:

Collaboration graph
[legend]
List of all members.

Detailed Description

A wrapper for FitsController.

Note:
This wrapper was used instead of the export_ pattern so that this class could generate the PyDataSource object without have circular dependency between subdirectories.
Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 31 of file PyFitsController.h.

Public Member Functions

PyDataSourcecreateDataArray (const std::string &filename, const std::string &hduname)
 Creates a DataArray Python object from the FITS file filename and the FITS HDU named hduname.
FitsNTuplecreateNTuple (const std::string &filename, const std::string &hduname)
 Creates a FitsNTuple object.
const std::vector< std::string > & getNTupleNames (const std::string &filename)
 Returns the names of the top level tree in the Root file.

Static Public Member Functions

static PyFitsControllerinstance ()
 The singleton instance method.

Private Member Functions

 PyFitsController (const PyFitsController &)
 The copy constructor, protected from being used.
 PyFitsController ()
 The default constructor, protected from being used.

Static Private Attributes

static FitsControllerm_instance = 0
 The singleton FitsController object.
static PyFitsControllers_instance = 0
 The singleton PyFitsController instance.


Constructor & Destructor Documentation

PyFitsController::PyFitsController  )  [private]
 

The default constructor, protected from being used.

Definition at line 92 of file PyFitsController.cxx.

Referenced by instance().

PyFitsController::PyFitsController const PyFitsController  )  [private]
 

The copy constructor, protected from being used.


Member Function Documentation

PyDataSource * PyFitsController::createDataArray const std::string filename,
const std::string hduname
 

Creates a DataArray Python object from the FITS file filename and the FITS HDU named hduname.

Definition at line 126 of file PyFitsController.cxx.

References createNTuple().

Referenced by hippodraw::Python::export_FitsController().

FitsNTuple * PyFitsController::createNTuple const std::string filename,
const std::string hduname
 

Creates a FitsNTuple object.

Definition at line 110 of file PyFitsController.cxx.

References m_instance.

Referenced by createDataArray(), and hippodraw::Python::export_FitsController().

const std::vector< std::string > & PyFitsController::getNTupleNames const std::string filename  ) 
 

Returns the names of the top level tree in the Root file.

Definition at line 136 of file PyFitsController.cxx.

References m_instance.

Referenced by hippodraw::Python::export_FitsController().

PyFitsController * PyFitsController::instance  )  [static]
 

The singleton instance method.

Definition at line 98 of file PyFitsController.cxx.

References FitsController::instance(), m_instance, PyFitsController(), and s_instance.

Referenced by hippodraw::Python::export_FitsController().


Member Data Documentation

FitsController * PyFitsController::m_instance = 0 [static, private]
 

The singleton FitsController object.

Definition at line 87 of file PyFitsController.cxx.

Referenced by createNTuple(), getNTupleNames(), and instance().

PyFitsController * PyFitsController::s_instance = 0 [static, private]
 

The singleton PyFitsController instance.

Definition at line 88 of file PyFitsController.cxx.

Referenced by instance().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3