hdf5/HyperspectralCameraIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_HYPERSPECTRALCAMERAIO_HPP
4 #define LVR2_IO_HDF5_HYPERSPECTRALCAMERAIO_HPP
5 
6 #include "ArrayIO.hpp"
7 #include "MatrixIO.hpp"
9 
10 namespace lvr2
11 {
12 
13 namespace hdf5features
14 {
15 
16 template <typename Derived>
18 {
19  public:
20  void save(HighFive::Group& group, const HyperspectralCameraPtr& buffer);
21 
23  // HyperspectralCameraPtr load(HighFive::Group& group, uint camNr);
26 
27  protected:
29 
30  Derived* m_file_access = static_cast<Derived*>(this);
31 
32  // dependencies
35 
36  static constexpr const char* ID = "HyperspectralCameraIO";
37  static constexpr const char* OBJID = "HyperspectralCamera";
38 };
39 
40 } // namespace hdf5features
41 
49 template <typename Derived>
50 struct Hdf5Construct<hdf5features::HyperspectralCameraIO, Derived>
51 {
52 
53  // DEPS
56  using deps = typename dep1::template Merge<dep2>;
57 
58  // ADD THE FEATURE ITSELF
59  using type = typename deps::template add_features<hdf5features::HyperspectralCameraIO>::type;
60 };
61 
62 } // namespace lvr2
63 
64 #include "HyperspectralCameraIO.tcc"
65 
66 #endif // LVR2_IO_HDF5_HYPERSPECTRALCAMERAIO_HPP
void save(HighFive::Group &group, const HyperspectralCameraPtr &buffer)
typename Hdf5Construct< hdf5features::ArrayIO, Derived >::type dep1
bool isHyperspectralCamera(HighFive::Group &group)
Helper class how to construct a IO feature with its dependencies.
typename deps::template add_features< hdf5features::HyperspectralCameraIO >::type type
std::shared_ptr< HyperspectralCamera > HyperspectralCameraPtr
Definition: ScanTypes.hpp:268
unsigned int uint
Definition: Model.hpp:46
typename Derived::template add_features< Feature >::type type
typename Hdf5Construct< hdf5features::MatrixIO, Derived >::type dep2
HyperspectralCameraPtr loadHyperspectralCamera(uint scanPos)
HyperspectralCameraPtr load(uint scanPos)


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:06