18 #include "FitsError.h"
208 WrongKeywordValueType (
const String& diag,
bool silent =
true);
220 virtual std::ostream & put (std::ostream &s)
const = 0;
222 virtual void write ();
231 const String&
comment ()
const;
232 const String&
name ()
const;
233 bool isLongStr ()
const;
237 template <
typename T>
238 T&
value(T& val)
const;
240 template <
typename T>
244 Keyword (
const String &keyname,
248 bool isLongStr =
false);
250 virtual void copy (
const Keyword& right);
251 virtual bool compare (
const Keyword &right)
const;
271 friend std::ostream &operator << (std::ostream &s,
const Keyword &right);
273 #ifndef SPEC_TEMPLATE_IMP_DEFECT
274 #ifndef SPEC_TEMPLATE_DECL_DEFECT
295 inline void Keyword::setParent (HDU* parent)
325 inline bool Keyword::isLongStr ()
const
FitsException is the base class for all exceptions thrown by this library.
Definition: FitsError.h:94
Base class for all HDU [Header-Data Unit] objects.
Definition: HDU.h:674
Abstract base class defining the interface for Keyword objects.
Definition: Keyword.h:199
T & value(T &val) const
get the keyword value
Definition: KeywordT.h:29
const HDU * parent() const
return a pointer to parent HDU.
Definition: Keyword.h:310
bool operator!=(const Keyword &right) const
inequality operator
Definition: Keyword.cxx:72
fitsfile * fitsPointer() const
return a pointer to the FITS file containing the parent HDU.
Definition: Keyword.cxx:109
virtual ~Keyword()
virtual destructor
Definition: Keyword.cxx:55
Keyword & operator=(const Keyword &right)
assignment operator
Definition: Keyword.cxx:60
ValueType keytype() const
return the type of a keyword
Definition: Keyword.h:300
const String & name() const
return the name of a keyword
Definition: Keyword.h:320
void setValue(const T &newValue)
modify the value of an existing Keyword and write it to the file
Definition: KeywordT.h:44
virtual Keyword * clone() const =0
virtual copy constructor
bool operator==(const Keyword &right) const
equality operator
Definition: Keyword.cxx:67
virtual void write()
left in for historical reasons, this seldom needs to be called by users
Definition: Keyword.cxx:97
const String & comment() const
return the comment field of the keyword
Definition: Keyword.h:315
Keyword(const Keyword &right)
copy constructor
Definition: Keyword.cxx:36
Namespace enclosing all CCfits classes and globals definitions.
Definition: AsciiTable.cxx:26
std::ostream & operator<<(std::ostream &s, const Column &right)
output operator for Column objects.
Definition: Column.h:1337
ValueType
CCfits value types and their CFITSIO equivalents (in caps)
Definition: CCfits.h:81