Instrument Neutral Distributed Interface INDI  2.0.2
Public Types | Public Member Functions | List of all members
INDI::FITSRecord Class Reference

#include <fitskeyword.h>

Public Types

enum  Type {
  VOID , COMMENT , STRING = TSTRING , LONGLONG = TLONGLONG ,
  DOUBLE = TDOUBLE
}
 

Public Member Functions

 FITSRecord ()
 
 FITSRecord (const char *key, const char *value, const char *comment=nullptr)
 
 FITSRecord (const char *key, int64_t value, const char *comment=nullptr)
 
 FITSRecord (const char *key, double value, int decimal=6, const char *comment=nullptr)
 
 FITSRecord (const char *comment)
 
Type type () const
 
const std::string & key () const
 
const std::string & valueString () const
 
int64_t valueInt () const
 
double valueDouble () const
 
const std::string & comment () const
 
int decimal () const
 

Detailed Description

Definition at line 29 of file fitskeyword.h.

Member Enumeration Documentation

◆ Type

Enumerator
VOID 
COMMENT 
STRING 
LONGLONG 
DOUBLE 

Definition at line 32 of file fitskeyword.h.

Constructor & Destructor Documentation

◆ FITSRecord() [1/5]

INDI::FITSRecord::FITSRecord ( )

Definition at line 27 of file fitskeyword.cpp.

◆ FITSRecord() [2/5]

INDI::FITSRecord::FITSRecord ( const char *  key,
const char *  value,
const char *  comment = nullptr 
)

Definition at line 33 of file fitskeyword.cpp.

◆ FITSRecord() [3/5]

INDI::FITSRecord::FITSRecord ( const char *  key,
int64_t  value,
const char *  comment = nullptr 
)

Definition at line 44 of file fitskeyword.cpp.

◆ FITSRecord() [4/5]

INDI::FITSRecord::FITSRecord ( const char *  key,
double  value,
int  decimal = 6,
const char *  comment = nullptr 
)

Definition at line 64 of file fitskeyword.cpp.

◆ FITSRecord() [5/5]

INDI::FITSRecord::FITSRecord ( const char *  comment)
explicit

Definition at line 79 of file fitskeyword.cpp.

Member Function Documentation

◆ comment()

const std::string & INDI::FITSRecord::comment ( ) const

Definition at line 126 of file fitskeyword.cpp.

◆ decimal()

int INDI::FITSRecord::decimal ( ) const

Definition at line 131 of file fitskeyword.cpp.

◆ key()

const std::string & INDI::FITSRecord::key ( ) const

Definition at line 92 of file fitskeyword.cpp.

◆ type()

FITSRecord::Type INDI::FITSRecord::type ( ) const

Definition at line 87 of file fitskeyword.cpp.

◆ valueDouble()

double INDI::FITSRecord::valueDouble ( ) const

Definition at line 118 of file fitskeyword.cpp.

◆ valueInt()

int64_t INDI::FITSRecord::valueInt ( ) const

Definition at line 102 of file fitskeyword.cpp.

◆ valueString()

const std::string & INDI::FITSRecord::valueString ( ) const

Definition at line 97 of file fitskeyword.cpp.

Member Data Documentation

◆ val_double

double INDI::FITSRecord::val_double

Definition at line 60 of file fitskeyword.h.

◆ val_int64

int64_t INDI::FITSRecord::val_int64

Definition at line 58 of file fitskeyword.h.

◆ val_uint64

uint64_t INDI::FITSRecord::val_uint64

Definition at line 59 of file fitskeyword.h.


The documentation for this class was generated from the following files: