CARMA C++
|
This class extracts information from a spectral line catalog file and puts it into a multimap for later searches. More...
#include <carma/services/SpectralLineCatalog.h>
Inherits carma::services::Catalog.
Public Member Functions | |
std::vector < carma::services::SpectralLine > | lookup (const std::string &lineName, const carma::services::Frequency &freqLo, const carma::services::Frequency &freqHi) |
Look up spectral line from a catalog. More... | |
const carma::services::SpectralLine & | lookup (const std::string &name, const std::string &transition) |
Look up spectral line from a catalog. More... | |
void | open (const std::string &fileName) |
Open a table for read access. More... | |
SpectralLineCatalog () | |
Default constructor. More... | |
~SpectralLineCatalog () | |
Destructor. More... | |
![]() | |
virtual bool | contains (const std::string &entryName) |
long | getCommentColumnNo () const |
std::string | getFileName () const |
bool | hasCommentColumn () const |
Tables and Catalogs are of course allowed to have no column which contains comments. More... | |
virtual const carma::services::CatalogEntry & | lookup (const std::string &entryName)=0 |
Lookup an catalog entry by name. More... | |
void | open (const std::string &fileName) |
Open a file for reading in this Catalog. More... | |
void | setCommentColumnNo (const long columnNo) |
Comment are allows to have white space, which can confuse carma::services::Table which assumes white space delineates columns. More... | |
Additional Inherited Members | |
![]() | |
static const long | NO_COMMENT = -1 |
We're allowed to have no comments in catalog, as this value indicates. More... | |
![]() | |
carma::services::Table | catalogTable_ |
std::string | fileName_ |
This class extracts information from a spectral line catalog file and puts it into a multimap for later searches.
Definition at line 34 of file SpectralLineCatalog.h.
carma::services::SpectralLineCatalog::SpectralLineCatalog | ( | ) |
Default constructor.
carma::services::SpectralLineCatalog::~SpectralLineCatalog | ( | ) |
Destructor.
std::vector<carma::services::SpectralLine> carma::services::SpectralLineCatalog::lookup | ( | const std::string & | lineName, |
const carma::services::Frequency & | freqLo, | ||
const carma::services::Frequency & | freqHi | ||
) |
Look up spectral line from a catalog.
This look-up is case insensitive.
lineName | The identifying name of the spectral line |
freqLo | lower limit on the frequency of the spectral lines |
freqHi | upper limit on the frequency of the spectral lines |
SpectraLineNotFoundException | if the spectral line cannot be found in the opened catalog. |
const carma::services::SpectralLine& carma::services::SpectralLineCatalog::lookup | ( | const std::string & | name, |
const std::string & | transition | ||
) |
Look up spectral line from a catalog.
This look-up is case insensitive.
name | The spectral line name |
transition | The specific transition for the spectral line |
SpectraLineNotFoundException | if the spectral line cannot be found in the opened catalog. |
void carma::services::SpectralLineCatalog::open | ( | const std::string & | fileName | ) |
Open a table for read access.
fileName | the file to open. |