libdballe  9.11
domain_errors.h
1 #ifndef DBALLE_MSG_DOMAIN_ERRORS_H
2 #define DBALLE_MSG_DOMAIN_ERRORS_H
3 
4 #include <dballe/importer.h>
5 #include <wreport/options.h>
6 
7 namespace dballe {
8 namespace impl {
9 namespace msg {
10 
15 {
16  bool old_silent;
17 #ifdef WREPORT_OPTIONS_HAS_VAR_CLAMP_DOMAIN_ERRORS
18  bool old_clamp;
19 #endif
20 #ifdef WREPORT_OPTIONS_HAS_VAR_HOOK_DOMAIN_ERRORS
22 #endif
23 
24 public:
25  WreportVarOptionsForImport(dballe::ImporterOptions::DomainErrors val);
27 };
28 
33 {
34  void handle_domain_error_int(wreport::Var& var, int32_t val) override;
35  void handle_domain_error_double(wreport::Var& var, double val) override;
36 };
37 
38 
39 }
40 }
41 }
42 
43 #endif
Definition: cmdline.h:18
Locally override wreport options to match the given ImporterOptions request.
Definition: domain_errors.h:14
Hook for out of range values.
Definition: domain_errors.h:32