hdf5/ScanPositionIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_SCANPOSITIONIO_HPP
4 #define LVR2_IO_HDF5_SCANPOSITIONIO_HPP
5 
7 
8 #include <boost/optional.hpp>
9 
10 // Dependencies
11 #include "ArrayIO.hpp"
13 #include "MatrixIO.hpp"
14 #include "ScanCameraIO.hpp"
15 #include "ScanIO.hpp"
16 
17 namespace lvr2
18 {
19 
20 namespace hdf5features
21 {
22 
51 template <typename Derived>
53 {
54  public:
55  void save(uint scanPos, const ScanPositionPtr& scanPositionPtr);
56  void save(HighFive::Group& group, const ScanPositionPtr& scanPositionPtr);
57 
58  ScanPositionPtr load(uint scanPos);
61 
62  protected:
63  bool isScanPosition(HighFive::Group& group);
64 
65  Derived* m_file_access = static_cast<Derived*>(this);
66  // dependencies
73 
74  static constexpr const char* ID = "ScanPositionIO";
75  static constexpr const char* OBJID = "ScanPosition";
76 };
77 
78 } // namespace hdf5features
79 
80 template <typename Derived>
81 struct Hdf5Construct<hdf5features::ScanPositionIO, Derived>
82 {
83 
84  // DEPS
90  using deps = typename dep1::template Merge<dep2>::template Merge<dep3>::template Merge<
91  dep4>::template Merge<dep5>;
92 
93  // add the feature itself
94  using type = typename deps::template add_features<hdf5features::ScanPositionIO>::type;
95 };
96 
97 } // namespace lvr2
98 
99 #include "ScanPositionIO.tcc"
100 
101 #endif // LVR2_IO_HDF5_SCANPOSITIONIO_HPP
ScanPositionPtr loadScanPosition(uint scanPos)
typename Hdf5Construct< hdf5features::ScanIO, Derived >::type dep3
void save(uint scanPos, const ScanPositionPtr &scanPositionPtr)
typename deps::template add_features< hdf5features::ScanPositionIO >::type type
Helper class how to construct a IO feature with its dependencies.
bool isScanPosition(HighFive::Group &group)
typename Hdf5Construct< hdf5features::ArrayIO, Derived >::type dep1
ScanCameraIO< Derived > * m_scanCameraIO
static constexpr const char * OBJID
typename Hdf5Construct< hdf5features::MatrixIO, Derived >::type dep2
typename Hdf5Construct< hdf5features::HyperspectralCameraIO, Derived >::type dep5
ScanPositionPtr load(uint scanPos)
typename Hdf5Construct< hdf5features::ScanCameraIO, Derived >::type dep4
unsigned int uint
Definition: Model.hpp:46
typename Derived::template add_features< Feature >::type type
static constexpr const char * ID
typename dep1::template Merge< dep2 >::template Merge< dep3 >::template Merge< dep4 >::template Merge< dep5 > deps
HyperspectralCameraIO< Derived > * m_hyperspectralCameraIO
std::shared_ptr< ScanPosition > ScanPositionPtr
Definition: ScanTypes.hpp:311


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:09