#include <rrCapabilities.h>
Public Member Functions | |
Capabilities () | |
~Capabilities () | |
void | add (Capability &capability) |
string | info () const |
u_int | count () |
void | clear () |
Capability * | operator[] (int i) |
Capability * | get (const string &capName) |
bool | setParameter (const string &name, const string &value) |
StringList | asStringList () |
string | asXML () |
Protected Attributes | |
vector< Capability * > | mCapabilities |
Friends | |
ostream & | operator<< (ostream &stream, const Capabilities &caps) |
Container for Capabilitities
rrp::Capabilities::Capabilities | ( | ) |
Create a Capabilitities container
rrp::Capabilities::~Capabilities | ( | ) |
De allocate memory associated with the capabilities.
void rrp::Capabilities::add | ( | Capability & | capability | ) |
Add a capability
StringList rrp::Capabilities::asStringList | ( | ) |
Get capabilities as a list of strings
string rrp::Capabilities::asXML | ( | ) |
Get capabilities as XML
void rrp::Capabilities::clear | ( | ) |
Clear the capabilties container.
u_int rrp::Capabilities::count | ( | ) |
Get number of capabilties.
Capability * rrp::Capabilities::get | ( | const string & | capName | ) |
Get a pointer to a capability using a vaspability name.
string rrp::Capabilities::info | ( | ) | const |
Get capabilities as a list of strings
Capability * rrp::Capabilities::operator[] | ( | int | i | ) |
Get a pointer to a capability using operator []
bool rrp::Capabilities::setParameter | ( | const string & | name, |
const string & | value | ||
) |
Set a parameter value in a capability.
|
friend |
Output capabilities to a ostream
|
mutableprotected |
Name of capability Descritpion of a capability