descriptions/HDF5IO.cpp
Go to the documentation of this file.
2 
3 namespace lvr2
4 {
5 
7  : m_kernel(kernel), m_schema(schema)
8 {
9 
10 }
11 
13 {
14  using BaseScanProjectIO = lvr2::FeatureBase<>;
15  using MyScanProjectIO = BaseScanProjectIO::AddFeatures<lvr2::ScanProjectIO>;
16 
17  MyScanProjectIO io(m_kernel, m_schema);
18  io.saveScanProject(project);
19 }
20 
22 {
23  using BaseScanProjectIO = lvr2::FeatureBase<>;
24  using MyScanProjectIO = BaseScanProjectIO::AddFeatures<lvr2::ScanProjectIO>;
25 
26  MyScanProjectIO io(m_kernel, m_schema);
27  ScanProjectPtr ptr = io.loadScanProject();
28  return ptr;
29 }
30 
31 } // namespace lvr2
32 
HDF5KernelPtr m_kernel
Manager Class for all FeatureBase components located in hdf5 directory.
Definition: FeatureBase.hpp:31
ScanProjectPtr loadScanProject()
std::shared_ptr< HDF5Schema > HDF5SchemaPtr
void saveScanProject(ScanProjectPtr project)
std::shared_ptr< ScanProject > ScanProjectPtr
Definition: ScanTypes.hpp:344
std::shared_ptr< HDF5Kernel > HDF5KernelPtr
Definition: HDF5Kernel.hpp:252
HDF5IO()
Construct a new HDF5IO object. Do not use this. Only used by ModelFactory.
Definition: HDF5IO.hpp:93
HDF5SchemaPtr m_schema


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