#include <SafeResult.h>
|
virtual void | apply (function< void(P)> forSuccessCase, function< void(string errorMsg)> forErrorCase)=0 |
|
P | getResultOrExit (int exitCode) |
|
template<typename P>
class pdb::SafeResult< P >
Definition at line 33 of file SafeResult.h.
template<typename P >
virtual void pdb::SafeResult< P >::apply |
( |
function< void(P)> |
forSuccessCase, |
|
|
function< void(string errorMsg)> |
forErrorCase |
|
) |
| |
|
pure virtual |
If this safe result is in the success case, returns the result item. Otherwise calls exit(exitCode) and terminates the process.
Definition at line 44 of file SafeResult.h.
The documentation for this class was generated from the following file: