RTC Toolkit
2.0.0
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