DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Tasks::Profiles Class Reference

Classes

struct  Details
 

Public Member Functions

 ~Profiles (void)
 
void add (const std::string &name, const std::string &description)
 
void clear (void)
 
void select (const std::string &name)
 
void unselect (const std::string &name)
 
bool isSelected (const std::string &name)
 
std::string getSelected (void)
 

Constructor & Destructor Documentation

DUNE::Tasks::Profiles::~Profiles ( void  )
inline

Destructor.

References add(), clear(), getSelected(), isSelected(), select(), and unselect().

Member Function Documentation

void DUNE::Tasks::Profiles::add ( const std::string &  name,
const std::string &  description 
)

Add a profile to the list of available profiles.

Parameters
nameprofile name.
descriptionprofile description.

References DUNE::Tasks::Profiles::Details::description.

Referenced by DUNE::Daemon::Daemon(), and ~Profiles().

void DUNE::Tasks::Profiles::clear ( void  )

Clear all profiles.

Referenced by ~Profiles().

std::string DUNE::Tasks::Profiles::getSelected ( void  )

Retrieve the comma separated list of currently selected profiles.

Returns
comma separated list of currently selected profiles.

Referenced by ~Profiles().

bool DUNE::Tasks::Profiles::isSelected ( const std::string &  name)

Test if a given profile (or any profile in a profile list) is selected.

Parameters
nameprofile name or comma separated list of profile names.

References DUNE::Utils::String::split().

Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::Manager::Manager(), DUNE::Navigation::BasicNavigation::onEntityResolution(), DUNE::Navigation::BasicNavigation::onUpdateParameters(), and ~Profiles().

void DUNE::Tasks::Profiles::select ( const std::string &  name)

Select a given profile or comma separated list of profiles.

Parameters
nameprofile name or comma separated list of profile names.

References DUNE::Utils::String::split(), and DUNE::Utils::String::str().

Referenced by DUNE::Daemon::Daemon(), and ~Profiles().

void DUNE::Tasks::Profiles::unselect ( const std::string &  name)

Unselect a given profile or profile list.

Parameters
nameprofile name or comma separated list of profile names.

References DUNE::Utils::String::split(), and DUNE::Utils::String::str().

Referenced by ~Profiles().

Collaboration diagram for DUNE::Tasks::Profiles:
Collaboration graph