RTC Toolkit
2.0.0
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
~
Variables
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
c
d
f
i
l
m
o
p
r
s
t
Enumerations
Enumerator
Related Functions
o
p
r
Files
File List
File Members
All
b
c
e
f
g
i
l
m
o
p
r
s
t
u
v
w
Functions
b
c
e
f
g
l
m
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
componentFramework
services
dataRecording
src
include
rtctk
componentFramework
fitsColumnFormat.hpp
Go to the documentation of this file.
1
11
#ifndef RTCTK_COMPONENTFRAMEWORK_FITSCOLUMNFORMAT_HPP
12
#define RTCTK_COMPONENTFRAMEWORK_FITSCOLUMNFORMAT_HPP
13
14
#include <fmt/core.h>
15
#include <fmt/format.h>
16
#include <string>
17
18
namespace
rtctk::componentFramework
{
19
24
template
<
class
T,
typename
_ =
void
>
25
struct
FitsColumnFormat
;
26
30
template
<
class
T>
31
std::string
GetFitsType
() {
32
if
constexpr (
FitsColumnFormat<T>::COUNT
!= 1) {
33
return
fmt::format_int(
FitsColumnFormat<T>::COUNT
).str() + std::string{
FitsColumnFormat<T>::PREFIX
} + std::string{
FitsColumnFormat<T>::TYPE
};
34
}
else
{
35
return
std::string{
FitsColumnFormat<T>::PREFIX
} + std::string{
FitsColumnFormat<T>::TYPE
};
36
}
37
}
38
43
template
<
class
T,
class
...
Args
>
44
void
GetFITSTForm
(std::vector<std::string>& input);
45
46
}
// namespace rtctk::componentFramework
47
48
#include "fitsColumnFormat.ipp"
49
50
#endif // RTCTK_COMPONENTFRAMEWORK_FITSCOLUMNFORMAT_HPP
rtctk::componentFramework::FitsColumnFormat
Type that stores type information for a FITS TFORM string.
Definition:
fitsColumnFormat.hpp:25
rtctk::componentFramework::Args
detail::Args Args
Definition:
rtcComponentMain.hpp:37
rtctk::componentFramework
Definition:
commandReplier.cpp:20
rtctk::componentFramework::GetFITSTForm
void GetFITSTForm(std::vector< std::string > &input)
Get a vactor of TFORM strings for a list of types.
rtctk::componentFramework::GetFitsType
std::string GetFitsType()
Get the TFORM value for a type.
Definition:
fitsColumnFormat.hpp:31
Generated by
1.8.20