Helios++
Helios software for LiDAR simulations
HeliosDemos::DemoSelector Class Reference

Simple class to handle demo selection. More...

#include <DemoSelector.h>

Collaboration diagram for HeliosDemos::DemoSelector:

Public Member Functions

void select (string const name, string const surveyPath="", string const assetsPath="")
 Run the demo with given name if any. More...
 

Static Public Member Functions

static shared_ptr< DemoSelectorgetInstance ()
 Singleton getter for the demo selector instance. More...
 

Private Member Functions

 DemoSelector ()=default
 Default constructor for demo selector.
 

Static Private Attributes

static shared_ptr< DemoSelectords = nullptr
 Singleton instance of demo selector. More...
 

Detailed Description

Simple class to handle demo selection.

Author
Alberto M. Esmoris Pena
Version
1.0

Member Function Documentation

◆ getInstance()

shared_ptr< DemoSelector > DemoSelector::getInstance ( )
static

Singleton getter for the demo selector instance.

Returns
Demo selector singleton instance
See also
DemoSelector::ds

◆ select()

void HeliosDemos::DemoSelector::select ( string const  name,
string const  surveyPath = "",
string const  assetsPath = "" 
)

Run the demo with given name if any.

Parameters
nameName of the demo to be run
surveyPathPath to the survey to be used by the demo, if any. When there is no survey, an empty string should be passed

Member Data Documentation

◆ ds

shared_ptr< DemoSelector > DemoSelector::ds = nullptr
staticprivate

Singleton instance of demo selector.

See also
DemoSelector::getInstance

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