RTC Toolkit  2.0.0
recordingUtils.hpp
Go to the documentation of this file.
1 
11 #ifndef RTCTK_COMPONENTFRAMEWORK_RECORDINGUTILS_HPP
12 #define RTCTK_COMPONENTFRAMEWORK_RECORDINGUTILS_HPP
13 
15 
16 namespace rtctk::componentFramework {
17 
23 template <typename T>
24 AsSpanT<T> ToSpan(T& data) {
25  return AsSpanT<T>(data.data(), data.size());
26 }
27 
28 } // namespace rtctk::componentFramework
29 
30 #endif // RTCTK_COMPONENTFRAMEWORK_RECORDINGUTILS_HPP
recordingTypeTraits.hpp
FitsRecorder allows to write ColumnData to into fits files in a specified directory.
rtctk::componentFramework
Definition: commandReplier.cpp:20
rtctk::componentFramework::AsSpanT
typename AsSpan< T >::TYPE AsSpanT
Definition: recordingTypeTraits.hpp:130
rtctk::componentFramework::ToSpan
AsSpanT< T > ToSpan(T &data)
Simple function that converts types that are convertible to spans to a span.
Definition: recordingUtils.hpp:24