9 #ifndef KEYWORDCREATOR_H
10 #define KEYWORDCREATOR_H 1
15 #include "FitsError.h"
31 KeywordCreator (HDU* p);
32 virtual ~KeywordCreator();
34 virtual Keyword* MakeKeyword (
const String& keyName,
const String& comment = String(
"")) = 0;
35 static Keyword* getKeyword (
const String& keyName, HDU* p);
37 virtual void reset ();
38 virtual Keyword* createKeyword (
const String& keyName,
const String& comment = String(
""));
41 static Keyword* getKeyword (
const String& keyName,
ValueType keyType, HDU* p);
42 static Keyword* getKeyword (
int keyNumber, HDU* p);
52 KeywordCreator(
const KeywordCreator &right);
53 KeywordCreator & operator=(
const KeywordCreator &right);
55 static Keyword* parseRecord (
const String& name,
const String& valueString,
const String& comment, HDU* hdu);
56 static bool isContinued (
const String& value);
57 static void getLongValueString (HDU* p,
const String& keyName, String& value);
74 inline void KeywordCreator::reset ()
80 inline HDU* KeywordCreator::forHDU ()