#include <rrParameters.h>
Container for Plugin parameters.
rrp::Parameters::Parameters |
( |
bool |
canClear = true | ) |
|
Create a parameter container
rrp::Parameters::~Parameters |
( |
| ) |
|
|
virtual |
Deallocate memory allocated
rrp::Parameters::Parameters |
( |
const Parameters & |
cpyMe | ) |
|
void rrp::Parameters::add |
( |
PluginParameter * |
para, |
|
|
bool |
ownMemory = false |
|
) |
| |
Add a parameter. By default, the container do not owe memory allocated by the parameter. If the ownMemory flag is set to true, the container will de allocate memory for the parameter as well
- Parameters
-
para | A pointer to a Plugin parameter |
ownMemory | Boolean flag indicating if the container is owing the memory of the parameter or not. |
bool rrp::Parameters::clear |
( |
| ) |
|
Empty the parameter container
u_int rrp::Parameters::count |
( |
| ) |
const |
Return number of parameters in the container.
Get Current Parameter. De Advances the internal iterator to next element
- Returns
- A Pointer to a PluginParameter if present, NULL otherwise
Get First Parameter. Resets the internal iterator to first element
- Returns
- A Pointer to a PluginParameter if present, NULL otherwise
StringList rrp::Parameters::getNames |
( |
| ) |
const |
Return parameters in the container as a list of strings.
Get Next Parameter. Advances the internal iterator to next element
- Returns
- A Pointer to a PluginParameter if present, NULL otherwise
Get a parameter with a specific name
- Returns
- A Pointer to a PluginParameter if present, NULL otherwise
Get Previous Parameter. De Advances the internal iterator to next element
- Returns
- A Pointer to a PluginParameter if present, NULL otherwise
Access a parameter using operator []
- Returns
- A const Pointer to a PluginParameter
ostream& operator<< |
( |
ostream & |
os, |
|
|
const Parameters & |
pars |
|
) |
| |
|
friend |
Output the container to a output stream (ostream)
bool rrp::Parameters::mCanClientClearList |
|
protected |
Boolean indicating if a client of the container can clear the list. True by default
The parameter container may owe the parameter, default is false. In certain ciscumstances, the container need to owe the memory of the parameter and will de allocate it on clear, or in the destruction of the container.
- Todo:
- Change the container to a std::list.
The documentation for this class was generated from the following files: