My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::ModelReader Class Reference

Public Types

enum  { ERR_NONE = 0x0, ERR_OUTSIDE_MJD = 0x1, ERR_OUTSIDE_FREQ = 0x2 }
 

Public Member Functions

 ModelReader ()
 
 ModelReader (std::string dir, std::string fileName)
 
virtual ~ModelReader ()
 
void readFile (std::string dir, std::string fileName)
 
double getDistance (TimeVal &mjd, unsigned int &errCode)
 
double getDistance (double mjd, unsigned int &errCode)
 
void readRecord (InputStream *stream)
 
void readItem (InputStream *stream)
 
void fillInterpContainers (double mjd)
 

Public Attributes

std::vector< double > mjd_
 
std::vector< double > ra_
 
std::vector< double > dec_
 
std::vector< double > dist_
 
QuadraticInterpolatorraInterp_
 
QuadraticInterpolatordecInterp_
 
QuadraticInterpolatordistInterp_
 

Static Public Attributes

static const double arcSecPerRad_ = 206265
 

Constructor & Destructor Documentation

ModelReader::ModelReader ( )

Constructor.

....................................................................... Constructors

ModelReader::~ModelReader ( )
virtual

Destructor.

....................................................................... Destructor

Member Function Documentation

void ModelReader::fillInterpContainers ( double  mjd)

....................................................................... Find the nearest point to the passed MJD

double ModelReader::getDistance ( TimeVal time,
unsigned int &  error 
)

....................................................................... Get the distance at a given time.

double ModelReader::getDistance ( double  mjd,
unsigned int &  error 
)

....................................................................... Get the distance at a given time.


The documentation for this class was generated from the following files: