
The class describes the status of an object of the class Associate, Contract, PersProduct and PersProductNode.
Definition at line 456 of file status.h.
| OSB_LIB::Status::Status | ( | ) | [inline] |
| OSB_LIB::Status::Status | ( | StatusValue | status, | |
| const StatusReason::Oid & | reason | |||
| ) |
Constructor with status and reason.
| status | Applicable status. | |
| reason | Id of the reason for the applicable status. |
| bool OSB_LIB::Status::changeStatus | ( | const StatusChange & | sc | ) |
Change the status.
| sc | Status change with the new status and reason. |
| bool OSB_LIB::Status::changeStatus | ( | const Status & | newStatus | ) | [inline] |
Change the status.
| newStatus | The new status for the entity. |
Definition at line 606 of file status.h.
References changeStatus(), reasonId_, and status_.
| bool OSB_LIB::Status::changeStatus | ( | StatusValue | newStatus, | |
| const StatusReason::Oid & | reasonId | |||
| ) |
Change the status.
Changes the status if the transition is technically allowed. The function does not verify if the reason is valid for the pair old/new status value and the entity who's status is changed.
| newStatus | New status value. | |
| reasonId | Reason id for the change to the new status. |
Referenced by changeStatus().
| bool OSB_LIB::Status::operator!= | ( | const Status & | rhs | ) | const [inline] |
| bool OSB_LIB::Status::operator== | ( | const StatusReason::Oid & | rhs | ) | const [inline] |
| bool OSB_LIB::Status::operator== | ( | const Status & | rhs | ) | const [inline] |
| StatusReason::Oid OSB_LIB::Status::reason | ( | ) | const [inline] |
| StatusValue OSB_LIB::Status::status | ( | ) | const [inline] |
Get the status value.
Definition at line 580 of file status.h.
References status_.
Referenced by OSB_LIB::StatusChange::adjustNewStatus().
| std::ostream& OSB_LIB::Status::write | ( | std::ostream & | os | ) | const |
Print to an output stream.
| os | Output stream to write to. |
StatusReason::Oid OSB_LIB::Status::reasonId_ [private] |
Reason for the status.
Definition at line 553 of file status.h.
Referenced by changeStatus(), operator==(), and reason().
StatusValue OSB_LIB::Status::status_ [private] |
Value of the status.
Definition at line 551 of file status.h.
Referenced by changeStatus(), operator==(), and status().
1.4.7