hdf5/ScanCameraIO.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef LVR2_IO_HDF5_SCANCAMERAIO_HPP
4 #define LVR2_IO_HDF5_SCANCAMERAIO_HPP
5 
6 #include "ScanImageIO.hpp"
8 
9 namespace lvr2
10 {
11 
12 namespace hdf5features
13 {
14 
15 template <typename Derived>
17 {
18  public:
19  void save(uint scanPos, uint camNr, const ScanCameraPtr& buffer);
20  void save(HighFive::Group& group, uint camNr, const ScanCameraPtr& buffer);
21  void save(HighFive::Group& group, const ScanCameraPtr& buffer);
22 
23  ScanCameraPtr load(uint scanPos, uint camNr);
24  ScanCameraPtr load(HighFive::Group& group, uint camNr);
26 
27  protected:
28  bool isScanCamera(HighFive::Group& group);
29 
30  Derived* m_file_access = static_cast<Derived*>(this);
31 
32  // dependencies
34 
35  static constexpr const char* ID = "ScanCameraIO";
36  static constexpr const char* OBJID = "ScanCamera";
37 };
38 
39 } // namespace hdf5features
40 
48 template <typename Derived>
49 struct Hdf5Construct<hdf5features::ScanCameraIO, Derived>
50 {
51 
52  // DEPS
54 
55  // ADD THE FEATURE ITSELF
56  using type = typename deps::template add_features<hdf5features::ScanCameraIO>::type;
57 };
58 
59 } // namespace lvr2
60 
61 #include "ScanCameraIO.tcc"
62 
63 #endif // LVR2_IO_HDF5_SCANCAMERAIO_HPP
ScanCameraPtr load(uint scanPos, uint camNr)
typename Hdf5Construct< hdf5features::ScanImageIO, Derived >::type deps
ScanImageIO< Derived > * m_scanImageIO
std::shared_ptr< ScanCamera > ScanCameraPtr
Definition: ScanTypes.hpp:153
Helper class how to construct a IO feature with its dependencies.
static constexpr const char * ID
bool isScanCamera(HighFive::Group &group)
void save(uint scanPos, uint camNr, const ScanCameraPtr &buffer)
unsigned int uint
Definition: Model.hpp:46
typename deps::template add_features< hdf5features::ScanCameraIO >::type type
typename Derived::template add_features< Feature >::type type
static constexpr const char * OBJID


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