libdballe
9.11
|
Options to control message import. More...
#include <importer.h>
Public Types | |
enum | DomainErrors { THROW = 0, UNSET = 1, CLAMP = 2, TAG = 3 } |
Public Member Functions | |
bool | operator== (const ImporterOptions &) const |
bool | operator!= (const ImporterOptions &) const |
void | print (FILE *out) |
Print a summary of the options to out. | |
std::string | to_string () const |
Generate a string summary of import options. | |
Static Public Member Functions | |
static std::unique_ptr< ImporterOptions > | create () |
Create with default values. | |
static std::unique_ptr< ImporterOptions > | create (const std::string &s) |
Opposite of to_string: create an Options from a string. | |
Public Attributes | |
bool | simplified = true |
enum dballe::ImporterOptions::DomainErrors | domain_errors = DomainErrors::THROW |
Static Public Attributes | |
static const ImporterOptions | defaults |
Default importer options. | |
Protected Member Functions | |
ImporterOptions (const std::string &s) | |
ImporterOptions (const ImporterOptions &)=default | |
ImporterOptions (ImporterOptions &&)=default | |
ImporterOptions & | operator= (const ImporterOptions &)=default |
ImporterOptions & | operator= (ImporterOptions &&)=default |
Friends | |
class | Importer |
Options to control message import.
To maintain ABI stability and allow to add options to this class, code using the stable ABI cannot create objects, but need to use the create() static methods.