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
StringOptional groupName
std::pair< std::string, std::string > getNames(const std::string &defaultGroup, const std::string &defaultContainer, const Description &d)
StringOptional dataSetName


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