ScanProjectSchema.cpp
Go to the documentation of this file.
2 
3 namespace lvr2
4 {
5 
6 std::pair<std::string, std::string> getNames(
7  const std::string& defaultGroup,
8  const std::string& defaultContainer,
9  const Description& d)
10 {
11  std::string returnGroup = defaultGroup;
12  std::string returnContainer = defaultContainer;
13 
14  if(d.groupName)
15  {
16  returnGroup = *d.groupName;
17  }
18 
19  if(d.dataSetName)
20  {
21  returnContainer = *d.dataSetName;
22  }
23 
24  return std::make_pair(returnGroup, returnContainer);
25 }
26 
27 } // namespace lvr2
lvr2::Description::dataSetName
StringOptional dataSetName
Definition: ScanProjectSchema.hpp:19
lvr2::getNames
std::pair< std::string, std::string > getNames(const std::string &defaultGroup, const std::string &defaultContainer, const Description &d)
Definition: ScanProjectSchema.cpp:6
ScanProjectSchema.hpp
lvr2::Description::groupName
StringOptional groupName
Definition: ScanProjectSchema.hpp:18
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::Description
Definition: ScanProjectSchema.hpp:16


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