13#error This is a C++ include file and cannot be used from plain C
61 int GetKey(
const char *fitsLine,
char *keyword,
char *value = NULL);
67 int Read(
const char *keyword,
int *offset,
char *value = NULL);
70 int Write(
const char *fitsLine);
73 int Append(
const char *fitsLine);
76 int Add(
const char *keyword,
int var,
const char *comment = NULL);
79 int Add(
const char *keyword,
float var,
const char *comment = NULL);
82 int Add(
const char *keyword,
double var,
const char *comment = NULL);
85 int Add(
const char *keyword,
const char *var,
const char *comment = NULL);
89 const char *comment = NULL);
92 int Add(
const char *comment);
95 int AddLogical(
const char *keyword,
int var,
const char *comment = NULL);
98 int AddFree(
const char *keyword,
const char *var,
99 const char *comment = NULL);
102 int Merge(
const char *keyword,
int var,
const char *comment = NULL);
105 int Merge(
const char *keyword,
float var,
const char *comment = NULL);
108 int Merge(
const char *keyword,
double var,
const char *comment = NULL);
111 int Merge(
const char *keyword,
const char *var,
const char *comment = NULL);
114 int Merge(
const char *keyword,
const char *comment = NULL);
117 int MergeFree(
const char *keyword,
const char *var,
118 const char *comment = NULL);
157 int Gen_(
char *fitsLine,
const char *keyword,
int type,
int intVal,
158 double doubleVal,
const char *stringVal,
const char *comment);
161 int GenKey_(
char *fitsLine,
const char *keyword,
char *comment);
164 int Combine_(
const char *newHeader,
int newSize);
167 int Read_(
const char *keyword,
int len,
int *offset,
char *value);
Definition ngcbDIC.hpp:51
Definition ngcbFITS.hpp:25
int Merge(const char *keyword, int var, const char *comment=NULL)
Merge 32-bit integer keyword (overwrite if existing)
Definition ngcbFITS.cpp:452
void DetachDictionary()
Detach dictionary.
Definition ngcbFITS.cpp:75
int Add(const char *keyword, int var, const char *comment=NULL)
Add 32-bit integer keyword.
Definition ngcbFITS.cpp:147
void AttachDictionary(ngcbDIC *dic)
Attach dictionary.
Definition ngcbFITS.cpp:73
int Append(const char *fitsLine)
Append a line to the header.
Definition ngcbFITS.cpp:785
void HeaderEnd()
Finish header (padding etc.)
Definition ngcbFITS.cpp:116
int AddLogical(const char *keyword, int var, const char *comment=NULL)
Add logical keyword.
Definition ngcbFITS.cpp:161
int GetKey(const char *fitsLine, char *keyword, char *value=NULL)
Get keyword and value from line.
Definition ngcbFITS.cpp:601
virtual ~ngcbFITS()
Destructor.
Definition ngcbFITS.cpp:50
int HeaderSize()
Current header size.
Definition ngcbFITS.hpp:49
int Read(const char *keyword, int *offset, char *value=NULL)
Read keyword and value from header.
Definition ngcbFITS.cpp:738
ngcbFITS()
Constructor.
Definition ngcbFITS.cpp:34
int Write(const char *fitsLine)
(Re-)Write a line in the header
Definition ngcbFITS.cpp:743
char * Header()
Current header.
Definition ngcbFITS.hpp:46
char padBlock[ngcbFITS_BLOCK_LEN]
Constant block for padding.
Definition ngcbFITS.hpp:37
char * ErrMsg()
Error message.
Definition ngcbFITS.hpp:130
int MergeFree(const char *keyword, const char *var, const char *comment=NULL)
Merge free generic keyword (overwrite if existing)
Definition ngcbFITS.cpp:538
int AddFree(const char *keyword, const char *var, const char *comment=NULL)
Add free generic keyword.
Definition ngcbFITS.cpp:400
int AddLongString(const char *keyword, const char *var, const char *comment=NULL)
Add long string keyword.
Definition ngcbFITS.cpp:240
void HeaderSize(int s)
Import header size.
Definition ngcbFITS.hpp:52
int NumBlock()
Actual number of reserved blocks.
Definition ngcbFITS.cpp:108
void HeaderInit()
(Re-)initialize header
Definition ngcbFITS.cpp:110
int Full()
Check if header is full.
Definition ngcbFITS.hpp:64
int ngcbDetIndex
Detector system index (global per application)
Definition ngcbFITS.cpp:29
#define ngcbFITS_LINE_LEN
Definition ngcb.h:176
#define ngcbFITS_BLOCK_LEN
Definition ngcb.h:191