helper class with static methods that facilitate the migration from the old stack-based condition handling code in module dcmnet to the new class based code.
More...
helper class with static methods that facilitate the migration from the old stack-based condition handling code in module dcmnet to the new class based code.
◆ dump() [1/2]
dumps a given condition code to the console.
This method is intended as a replacement for COND_DumpCondition(). Since no global condition stack exists anymore, the condition must be passed to this method.
- Parameters
-
cond | condition to be dumped |
console | console to dump to |
- Deprecated:
- Please use the other dump() function instead!
◆ dump() [2/2]
Get a string representation for the given condition code This method is intended as a replacement for COND_DumpCondition().
Since no global condition stack exists anymore, the condition must be passed to this method.
- Parameters
-
str | string to dump into |
cond | condition to be dumped |
- Returns
- reference to string
◆ push() [1/2]
creates a new hierarchical condition from the given condition and sub-condition.
This method is intended as a replacement for COND_PushCondition(). Instead of maintaining a global condition stack (which is difficult in multi-threaded applications), the error text of the sub-condition is appended to the newly created condition.
- Parameters
-
newCondition | the condition |
subCondition | the sub-condition |
◆ push() [2/2]
static OFCondition DimseCondition::push |
( |
unsigned short |
aModule, |
|
|
unsigned short |
aCode, |
|
|
OFStatus |
aStatus, |
|
|
const char * |
aText, |
|
|
OFCondition |
subCondition |
|
) |
| |
|
static |
creates a new condition from the given parameters and the sub-condition.
This method is intended as a replacement for COND_PushCondition(). Instead of maintaining a global condition stack (which is difficult in multi-threaded applications), the error text of the sub-condition is appended to the newly created condition.
- Parameters
-
aModule | the module for the condition |
aCode | the code for the condition |
aStatus | the status for the condition |
aText | the error text |
subCondition | the sub-condition |
The documentation for this class was generated from the following file:
- dcmnet/include/dcmtk/dcmnet/cond.h