BaseIO.hpp
Go to the documentation of this file.
1 
41 #ifndef BASEIO_HPP_
42 #define BASEIO_HPP_
43 
44 #include <string>
45 #include <map>
46 
47 #include "lvr2/io/Model.hpp"
48 
49 namespace lvr2
50 {
51 
52 
57 class BaseIO
58 {
59  public:
60  BaseIO() {}
61  virtual ~BaseIO() {};
62 
68  virtual ModelPtr read(std::string filename ) = 0;
69 
70 
76  virtual void save(std::string filename) = 0;
77 
78 
85  virtual void save(ModelPtr model, std::string filename);
86 
87 
88 
93  virtual void setModel(ModelPtr m);
94 
95 
100  virtual ModelPtr getModel();
101 
102 
103  protected:
105 
106 };
107 
108 } // namespace lvr2
109 
110 
111 #endif /* BASEIO_HPP_ */
virtual ModelPtr getModel()
Get the model for io operations.
Definition: BaseIO.cpp:61
Interface specification for low-level io. All read elements are stored in linear arrays.
Definition: BaseIO.hpp:57
ModelPtr m_model
Definition: BaseIO.hpp:104
virtual ModelPtr read(std::string filename)=0
Parse the given file and load supported elements.
std::shared_ptr< Model > ModelPtr
Definition: Model.hpp:80
virtual void save(std::string filename)=0
Save the loaded elements to the given file.
virtual ~BaseIO()
Definition: BaseIO.hpp:61
virtual void setModel(ModelPtr m)
Set the model for io operations to use.
Definition: BaseIO.cpp:55


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