TipsVal
Valuation library for inflation-indexed bonds
|
#include "andrew_kalotay_associates/common/structs.h"
Public Types | |
enum | code_type { ok = 0 , warning = 2 , no_lattice_model = 2*2 , fatal = 256 , invalid_license = 256*2 , no_curve_model = 256*4 , computation_failed = 256*8 , invalid_quote = 256*16 , no_default_model = 256*32 , no_stock_model = 256*64 , invalid_handle = 256*256*256 } |
Public Member Functions | |
bool | operator! () const |
Status (code_type this_code=ok, const char *this_message="") | |
Internal use only. | |
~Status () | |
Internal use only. | |
void | set_to_worst (int this_code=Status::ok) |
Internal use only. | |
void | set_message (const char *m) |
Internal use only. | |
void | set (int code=ok, const char *m="") |
Internal use only. | |
void | set_to_worst (int code, const char *m) |
Internal use only. | |
void | set_to_worst (Status status) |
Internal use only. | |
Public Attributes | |
int | code |
String | message |
Error message if any. | |
Reports status of output report
Possible values of return code are values below or sums of them:
Possible return code values