Public Member Functions | Protected Attributes | List of all members
lvr2::BaseIO Class Referenceabstract

Interface specification for low-level io. All read elements are stored in linear arrays. More...

#include <BaseIO.hpp>

Inheritance diagram for lvr2::BaseIO:
Inheritance graph
[legend]

Public Member Functions

 BaseIO ()
 
virtual ModelPtr getModel ()
 Get the model for io operations. More...
 
virtual ModelPtr read (std::string filename)=0
 Parse the given file and load supported elements. More...
 
virtual void save (ModelPtr model, std::string filename)
 Set the model and save the loaded elements to the given file. More...
 
virtual void save (std::string filename)=0
 Save the loaded elements to the given file. More...
 
virtual void setModel (ModelPtr m)
 Set the model for io operations to use. More...
 
virtual ~BaseIO ()
 

Protected Attributes

ModelPtr m_model
 

Detailed Description

Interface specification for low-level io. All read elements are stored in linear arrays.

Definition at line 57 of file BaseIO.hpp.

Constructor & Destructor Documentation

◆ BaseIO()

lvr2::BaseIO::BaseIO ( )
inline

Definition at line 60 of file BaseIO.hpp.

◆ ~BaseIO()

virtual lvr2::BaseIO::~BaseIO ( )
inlinevirtual

Definition at line 61 of file BaseIO.hpp.

Member Function Documentation

◆ getModel()

ModelPtr lvr2::BaseIO::getModel ( )
virtual

Get the model for io operations.

Returns
Shared pointer to model.

Definition at line 61 of file BaseIO.cpp.

◆ read()

virtual ModelPtr lvr2::BaseIO::read ( std::string  filename)
pure virtual

Parse the given file and load supported elements.

Parameters
filenameThe file to read.

Implemented in lvr2::RxpIO.

◆ save() [1/2]

void lvr2::BaseIO::save ( ModelPtr  model,
std::string  filename 
)
virtual

Set the model and save the loaded elements to the given file.

Parameters
filenameFilename of the file to write.

Definition at line 48 of file BaseIO.cpp.

◆ save() [2/2]

virtual void lvr2::BaseIO::save ( std::string  filename)
pure virtual

Save the loaded elements to the given file.

Parameters
filenameFilename of the file to write.

Implemented in lvr2::RxpIO.

◆ setModel()

void lvr2::BaseIO::setModel ( ModelPtr  m)
virtual

Set the model for io operations to use.

Parameters
mShared pointer to model.

Definition at line 55 of file BaseIO.cpp.

Member Data Documentation

◆ m_model

ModelPtr lvr2::BaseIO::m_model
protected

Definition at line 104 of file BaseIO.hpp.


The documentation for this class was generated from the following files:


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 Wed Mar 2 2022 00:37:27