51 : attack_type(attack_type),
52 pipeline_name(std::move(pipeline_name)),
53 expiration_date(std::move(expiration_date)) {}
56 os <<
"DocSdkFeature[ attack_type: ";
57 #define PRINT_ATTACK_TYPE(t) case AttackType::t: os << #t; break; 65 #undef PRINT_ATTACK_TYPE DOCSDK_API std::vector< DocSdkFeature > GetLicenseInfo()
Returns information (e.g. supported features and expiration dates) about the installed license if ava...
LicenseException(const char *message)
Definition: settings.h:94
LicenseException(const std::string &message)
Definition: settings.h:93
#define PRINT_ATTACK_TYPE(t)
friend std::ostream & operator<<(std::ostream &os, const DocSdkFeature &feature)
Definition: settings.h:55
#define DOCSDK_API
Definition: config.h:24
AttackType
Document spoofing attack type.
Definition: settings.h:34
DocSDK feature information.
Definition: settings.h:45
AttackType attack_type
Definition: settings.h:46
DOCSDK_API void SetRuntimeLicense(const std::string &license_str)
Sets the runtime license. Only takes effect in "Lambda" SDK distribution and should be called before ...
DOCSDK_API void SetNumThreads(unsigned int num_threads) noexcept
Sets the maximum number of CPU threads available for DocSDK. If 0 is passed, then the optimal number ...
std::string expiration_date
Definition: settings.h:48
std::string pipeline_name
Definition: settings.h:47
A type for exception which is thrown on license expiration or absence.
Definition: settings.h:91
DocSdkFeature(AttackType attack_type, std::string pipeline_name, std::string expiration_date)
Definition: settings.h:50