Represents objects that have status.
More...
#include <StatusContainer.hpp>
Represents objects that have status.
The StatusContainer interface is generalized by classes that need to hold status.
Definition at line 35 of file StatusContainer.hpp.
torc::generic::StatusContainer::~StatusContainer |
( |
| ) |
|
throw | ( | |
| ) | | |
torc::generic::StatusContainer::StatusContainer |
( |
| ) |
|
|
protected |
torc::generic::StatusContainer::StatusContainer |
( |
const StatusContainer & |
source | ) |
|
|
private |
Add a status to the vector of statuses. If an empty pointer is supplied, it returns without doing anything.
- Parameters
-
[in] | inStatus | A pointer to a status object. |
- Exceptions
-
Add a status to the list of statuses. If an empty pointer is supplied, it returns without doing anything.
- Parameters
-
[in] | inStatus | A pointer to a status object. |
- Exceptions
-
Definition at line 47 of file StatusContainer.cpp.
std::vector< StatusSharedPtr > mStatuses
template<typename _Action >
void torc::generic::StatusContainer::applyOnAllStatuses |
( |
const _Action & |
action | ) |
|
throw | ( | Error |
| ) | | |
|
inline |
Apply action on all statuses.
- Parameters
-
[in] | action | Action to be applied |
Definition at line 95 of file StatusContainer.hpp.
98 std::vector<StatusSharedPtr>::iterator it =
mStatuses.begin();
103 e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
std::vector< StatusSharedPtr > mStatuses
void torc::generic::StatusContainer::getStatuses |
( |
std::vector< StatusSharedPtr > & |
outStatus | ) |
const |
|
inline |
Get a vector of pointer to Status object
- Parameters
-
[out] | outStatus | The vector of pointer to Status object |
Definition at line 86 of file StatusContainer.hpp.
std::vector< StatusSharedPtr > mStatuses
void torc::generic::StatusContainer::setStatuses |
( |
const std::vector< StatusSharedPtr > & |
inStatus | ) |
|
Set a vector of pointer to Status object
- Parameters
-
[in] | inStatus | The vector of pointer to Status object |
Definition at line 32 of file StatusContainer.cpp.
33 std::vector<StatusSharedPtr>::const_iterator it = inStatus.begin();
34 for(; it != inStatus.end(); it++) {
std::vector< StatusSharedPtr > mStatuses
The documentation for this class was generated from the following files: