DUNE: Uniform Navigational Environment  2016.05.0
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 clear().

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().

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.
bool DUNE::Tasks::Profiles::isSelected ( const std::string &  name)
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().

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().

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