12#error This is a C++ include file and cannot be used from plain C
60 int GetKey(
const char *fitsLine,
char *keyword,
char *value = NULL);
66 int Read(
const char *keyword,
int *offset,
char *value = NULL);
69 int Write(
const char *fitsLine);
72 int Append(
const char *fitsLine);
75 int Add(
const char *keyword,
int var,
const char *comment = NULL);
78 int Add(
const char *keyword,
float var,
const char *comment = NULL);
81 int Add(
const char *keyword,
double var,
const char *comment = NULL);
84 int Add(
const char *keyword,
const char *var,
const char *comment = NULL);
88 const char *comment = NULL);
91 int Add(
const char *comment);
94 int AddLogical(
const char *keyword,
int var,
const char *comment = NULL);
97 int AddFree(
const char *keyword,
const char *var,
98 const char *comment = NULL);
101 int Merge(
const char *keyword,
int var,
const char *comment = NULL);
104 int Merge(
const char *keyword,
float var,
const char *comment = NULL);
107 int Merge(
const char *keyword,
double var,
const char *comment = NULL);
110 int Merge(
const char *keyword,
const char *var,
const char *comment = NULL);
113 int Merge(
const char *keyword,
const char *comment = NULL);
116 int MergeFree(
const char *keyword,
const char *var,
117 const char *comment = NULL);
156 int Gen_(
char *fitsLine,
const char *keyword,
int type,
int intVal,
157 double doubleVal,
const char *stringVal,
const char *comment);
160 int GenKey_(
char *fitsLine,
const char *keyword,
char *comment);
163 int Combine_(
const char *newHeader,
int newSize);
166 int Read_(
const char *keyword,
int len,
int *offset,
char *value);
Definition ngcbDIC.hpp:50
Definition ngcbFITS.hpp:24
int Merge(const char *keyword, int var, const char *comment=NULL)
Merge 32-bit integer keyword (overwrite if existing)
Definition ngcbFITS.cpp:451
void DetachDictionary()
Detach dictionary.
Definition ngcbFITS.cpp:74
int Add(const char *keyword, int var, const char *comment=NULL)
Add 32-bit integer keyword.
Definition ngcbFITS.cpp:146
void AttachDictionary(ngcbDIC *dic)
Attach dictionary.
Definition ngcbFITS.cpp:72
int Append(const char *fitsLine)
Append a line to the header.
Definition ngcbFITS.cpp:784
void HeaderEnd()
Finish header (padding etc.)
Definition ngcbFITS.cpp:115
int AddLogical(const char *keyword, int var, const char *comment=NULL)
Add logical keyword.
Definition ngcbFITS.cpp:160
int GetKey(const char *fitsLine, char *keyword, char *value=NULL)
Get keyword and value from line.
Definition ngcbFITS.cpp:600
virtual ~ngcbFITS()
Destructor.
Definition ngcbFITS.cpp:49
int HeaderSize()
Current header size.
Definition ngcbFITS.hpp:48
int Read(const char *keyword, int *offset, char *value=NULL)
Read keyword and value from header.
Definition ngcbFITS.cpp:737
ngcbFITS()
Constructor.
Definition ngcbFITS.cpp:33
int Write(const char *fitsLine)
(Re-)Write a line in the header
Definition ngcbFITS.cpp:742
char * Header()
Current header.
Definition ngcbFITS.hpp:45
char padBlock[ngcbFITS_BLOCK_LEN]
Constant block for padding.
Definition ngcbFITS.hpp:36
char * ErrMsg()
Error message.
Definition ngcbFITS.hpp:129
int MergeFree(const char *keyword, const char *var, const char *comment=NULL)
Merge free generic keyword (overwrite if existing)
Definition ngcbFITS.cpp:537
int AddFree(const char *keyword, const char *var, const char *comment=NULL)
Add free generic keyword.
Definition ngcbFITS.cpp:399
int AddLongString(const char *keyword, const char *var, const char *comment=NULL)
Add long string keyword.
Definition ngcbFITS.cpp:239
void HeaderSize(int s)
Import header size.
Definition ngcbFITS.hpp:51
int NumBlock()
Actual number of reserved blocks.
Definition ngcbFITS.cpp:107
void HeaderInit()
(Re-)initialize header
Definition ngcbFITS.cpp:109
int Full()
Check if header is full.
Definition ngcbFITS.hpp:63
int ngcbDetIndex
Detector system index (global per application)
Definition ngcbFITS.cpp:28
#define ngcbFITS_LINE_LEN
Definition ngcb.h:175
#define ngcbFITS_BLOCK_LEN
Definition ngcb.h:190