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;
236 template <
typename T>
237 T&
value(T& val)
const;
239 template <
typename T>
245 virtual void copy (
const Keyword& right);
246 virtual bool compare (
const Keyword &right)
const;
265 friend std::ostream &operator << (std::ostream &s,
const Keyword &right);
267 #ifndef SPEC_TEMPLATE_IMP_DEFECT 268 #ifndef SPEC_TEMPLATE_DECL_DEFECT 280 inline std::ostream& operator << (std::ostream &s,
const Keyword &right)
289 inline void Keyword::setParent (
HDU*
parent)
bool operator==(const Keyword &right) const
equality operator
Definition: Keyword.cxx:65
T & value(T &val) const
get the keyword value
Definition: KeywordT.h:29
virtual ~Keyword()
virtual destructor
Definition: Keyword.cxx:53
virtual Keyword * clone() const =0
virtual copy constructor
Abstract base class defining the interface for Keyword objects.
Definition: Keyword.h:198
bool operator!=(const Keyword &right) const
inequality operator
Definition: Keyword.cxx:70
Base class for all HDU [Header-Data Unit] objects.
Definition: HDU.h:571
virtual void write()
left in for historical reasons, this seldom needs to be called by users
Definition: Keyword.cxx:95
const String & name() const
return the name of a keyword
Definition: Keyword.h:314
FitsException is the base class for all exceptions thrown by this library.
Definition: FitsError.h:93
Namespace enclosing all CCfits classes and globals definitions.
Definition: AsciiTable.cxx:26
Keyword(const Keyword &right)
copy constructor
Definition: Keyword.cxx:36
ValueType
CCfits value types and their CFITSIO equivalents (in caps)
Definition: CCfits.h:81
ValueType keytype() const
return the type of a keyword
Definition: Keyword.h:294
const String & comment() const
return the comment field of the keyword
Definition: Keyword.h:309
fitsfile * fitsPointer() const
return a pointer to the FITS file containing the parent HDU.
Definition: Keyword.cxx:107
void setValue(const T &newValue)
modify the value of an existing Keyword and write it to the file
Definition: KeywordT.h:44
const HDU * parent() const
return a pointer to parent HDU.
Definition: Keyword.h:304
Keyword & operator=(const Keyword &right)
assignment operator
Definition: Keyword.cxx:58