Helios++
Helios software for LiDAR simulations
SurveyDemo.h
1 #ifdef PCL_BINDING
2 #pragma once
3 
4 #include <demo/BaseDemo.h>
5 
6 #include <string>
7 
8 namespace HeliosDemos{
9 
10 using std::string;
11 
27 protected:
28  // *** ATTRIBUTES *** //
29  // ******************** //
33  string surveyPath;
37  string assetsPath;
38 
39 public:
40  // *** CONSTRUCTION / DESTRUCTION *** //
41  // ************************************ //
51  string const name,
52  string const surveyPath,
53  string const assetsPath
54  ) :
55  BaseDemo(name),
58  {};
59  virtual ~SurveyDemo() = default;
60 
61 
62  // *** SURVEY METHODS *** //
63  // ************************ //
70  bool validateSurveyPath();
77  bool validateAssetsPath();
78 
79 
80  // *** GETTERs and SETTERs *** //
81  // ***************************** //
87  string const & getSurveyPath() const {return surveyPath;}
93  void setSurveyPath(string const surveyPath)
94  {this->surveyPath = surveyPath;}
100  string const & getAssetsPath() const {return assetsPath;}
106  void setAssetsPath(string const assetsPath)
107  {this->assetsPath = assetsPath;}
108 };
109 
110 }
111 
112 #endif
BaseDemo class.
Definition: BaseDemo.h:22
string const name
The name for the demo.
Definition: BaseDemo.h:29
SurveyDemo class.
Definition: SurveyDemo.h:26
SurveyDemo(string const name, string const surveyPath, string const assetsPath)
Survey demo constructor.
Definition: SurveyDemo.h:50
void setAssetsPath(string const assetsPath)
Set assets path.
Definition: SurveyDemo.h:106
string const & getSurveyPath() const
Get survey path.
Definition: SurveyDemo.h:87
bool validateAssetsPath()
Check whether the assets path points to an accessible directory (true) or not (false)
Definition: SurveyDemo.cpp:14
string assetsPath
Path to the assets directory.
Definition: SurveyDemo.h:37
bool validateSurveyPath()
Check whether the survey path points to an accessible file (true) or not (false)
Definition: SurveyDemo.cpp:9
void setSurveyPath(string const surveyPath)
Set survey path.
Definition: SurveyDemo.h:93
string surveyPath
Path to the survey XML file.
Definition: SurveyDemo.h:33
string const & getAssetsPath() const
Get assets path.
Definition: SurveyDemo.h:100