Helios++
Helios software for LiDAR simulations
BaseDemo.h
1 #ifdef PCL_BINDING
2 #pragma once
3 
4 #include <iostream>
5 #include <string>
6 
7 namespace HeliosDemos {
8 
9 using std::string;
10 
22 class BaseDemo{
23 protected:
24  // *** ATTRIBUTES *** //
25  // ******************** //
29  string const name;
30 public:
31  // *** CONSTRUCTION / DESTRUCTION *** //
32  // ************************************ //
37  BaseDemo(string const name) : name(name) {};
38  virtual ~BaseDemo() = default;
39 
40  // *** GETTERS and SETTERS *** //
41  // ***************************** //
46  string getName() {return name;}
47 
48  // *** R U N *** //
49  // *************** //
55  virtual void run() = 0;
56 };
57 }
58 #endif
BaseDemo class.
Definition: BaseDemo.h:22
string getName()
Obtain the demo name.
Definition: BaseDemo.h:46
BaseDemo(string const name)
Base demo constructor.
Definition: BaseDemo.h:37
virtual void run()=0
Run the demo itself.
string const name
The name for the demo.
Definition: BaseDemo.h:29