Instrument Neutral Distributed Interface INDI
2.2.5
libs
indibase
fitskeyword.h
Go to the documentation of this file.
1
19
20
#pragma once
21
22
#include <string>
23
#include <fitsio.h>
24
#include <cstdint>
25
26
namespace
INDI
27
{
28
29
class
FITSRecord
30
{
31
public
:
32
enum
Type
33
{
34
VOID
,
35
COMMENT
,
36
STRING
= TSTRING,
37
LONGLONG
= TLONGLONG,
38
//ULONGLONG = TULONGLONG,
39
DOUBLE
= TDOUBLE
40
};
41
FITSRecord
();
42
FITSRecord
(
const
char
*
key
,
const
char
*value,
const
char
*
comment
=
nullptr
);
43
FITSRecord
(
const
char
*
key
, int64_t value,
const
char
*
comment
=
nullptr
);
44
//FITSRecord(const char *key, uint64_t value, const char *comment = nullptr);
45
FITSRecord
(
const
char
*
key
,
double
value,
int
decimal
= 6,
const
char
*
comment
=
nullptr
);
46
explicit
FITSRecord
(
const
char
*
comment
);
47
Type
type
()
const
;
48
const
std::string&
key
()
const
;
49
const
std::string&
valueString
()
const
;
50
int64_t
valueInt
()
const
;
51
//uint64_t valueUInt() const;
52
double
valueDouble
()
const
;
53
const
std::string&
comment
()
const
;
54
int
decimal
()
const
;
55
private
:
56
union
57
{
58
int64_t
val_int64
;
59
uint64_t
val_uint64
;
60
double
val_double
;
61
};
62
std::string val_str;
63
std::string m_key;
64
Type
m_type =
VOID
;
65
std::string m_comment;
66
int
m_decimal = 6;
67
};
68
69
}
INDI::FITSRecord::decimal
int decimal() const
Definition
fitskeyword.cpp:131
INDI::FITSRecord::key
const std::string & key() const
Definition
fitskeyword.cpp:92
INDI::FITSRecord::valueDouble
double valueDouble() const
Definition
fitskeyword.cpp:118
INDI::FITSRecord::val_int64
int64_t val_int64
Definition
fitskeyword.h:58
INDI::FITSRecord::valueString
const std::string & valueString() const
Definition
fitskeyword.cpp:97
INDI::FITSRecord::valueInt
int64_t valueInt() const
Definition
fitskeyword.cpp:102
INDI::FITSRecord::type
Type type() const
Definition
fitskeyword.cpp:87
INDI::FITSRecord::val_uint64
uint64_t val_uint64
Definition
fitskeyword.h:59
INDI::FITSRecord::comment
const std::string & comment() const
Definition
fitskeyword.cpp:126
INDI::FITSRecord::val_double
double val_double
Definition
fitskeyword.h:60
INDI::FITSRecord::Type
Type
Definition
fitskeyword.h:33
INDI::FITSRecord::VOID
@ VOID
Definition
fitskeyword.h:34
INDI::FITSRecord::STRING
@ STRING
Definition
fitskeyword.h:36
INDI::FITSRecord::DOUBLE
@ DOUBLE
Definition
fitskeyword.h:39
INDI::FITSRecord::LONGLONG
@ LONGLONG
Definition
fitskeyword.h:37
INDI::FITSRecord::COMMENT
@ COMMENT
Definition
fitskeyword.h:35
INDI::FITSRecord::FITSRecord
FITSRecord()
Definition
fitskeyword.cpp:27
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition
pegasus_wifi.h:35
Type
Holds the connection type.
Generated on
for Instrument Neutral Distributed Interface INDI by
1.15.0