9 #ifndef CARMA_SERVICES_SOURCE_H
10 #define CARMA_SERVICES_SOURCE_H
23 class Source :
public carma::services::CatalogEntry {
35 Source(
const std::string& name);
71 Source(
const std::string& name,
75 const Angle& parallax,
77 double xProperMotion = 0.0,
78 double yProperMotion = 0.0,
79 const std::string& catalogFormat =
"CARMA",
80 unsigned long idNo = 0,
82 const std::string& comments =
"This Space For Rent"
119 Source(
const std::string& name,
125 double xProperMotion = 0.0,
126 double yProperMotion = 0.0,
127 const std::string& catalogFormat =
"CARMA",
128 unsigned long idNo = 0,
130 const std::string& comments =
"This Space For Rent"
188 void setIdNo(
unsigned long idNo);
226 return xProperMotion_;
240 return yProperMotion_;
269 return catalogFormat_;
287 bool isOptical()
const
292 bool isRadio()
const {
318 static bool isPlanet(
const std::string& sourceName);
326 double xProperMotion_;
327 double yProperMotion_;
328 std::string catalogFormat_;
331 std::string comments_;
334 static const unsigned int NELEMENTS = 11;
346 #endif // CARMA_SERVICES_SOURCE_H
Representation of Distance in any units.
Angle getXCoordinate() const
double getYProperMotion() const
Right Ascension, Declination.
Source()
Default Constructor.
void setIdNo(unsigned long idNo)
Set an ID number for this Source.
Representation of an angle, return values are always modulo 2PI radians.
void setCatalogFormat(const std::string &catalogFormat)
Set the catalog format style (this is used by NOVAS).
Source is derived from CatalogEntry and is used to hold information for a particular entry from a sou...
The Distance class can represent an distance in any units.
std::string getComments() const
void setYCoordinate(const Angle &ycoord)
Set the Y coordinate of this Source.
void setParallax(const Angle ¶llax)
Set the parallax of this Source.
The Velocity class can represent an velocity in any units.
enum carma::services::sourcePntEnum sourcePntType
Can this source be used for RADIO and/or OPTICAL pointing?
Source can be used only for optical pointing.
Angle getYCoordinate() const
coordSysType getCoordSysType() const
unsigned long getIdNo() const
Source can be used only for both radio and optical pointing.
std::string getCatalogFormat() const
void setXProperMotion(double xProperMotion)
Set the X proper motion of this Source.
void setXCoordinate(const Angle &xcoord)
Set the X coordinate of this Source.
The Angle class can represent any angle in any units.
sourcePntType getPntType() const
Source can be used only for radio pointing.
enum carma::services::coordSysEnum coordSysType
The coordinate systems.
double getXProperMotion() const
virtual ~Source()
Destructor.
void setVelocity(const Velocity &velocity)
Set the radial velocity of this Source.
static Distance getDistance(const Angle ¶llax)
Given an parallax angle, return the equivalent distance.
Distance getDistance() const
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the << operator to allow, e.g.
Representation of Velocity in any units.
Velocity getVelocity() const
void setPntType(sourcePntType type)
Set the pointing type for this source.
Angle getParallax() const
void setYProperMotion(double yProperMotion)
Set the Y proper motion of this Source.
void setComments(const std::string &comments)
Set any additional comments about this Source.