dca_interface
6.3.4
|
#include <wac_classification.h>
Defintion of the WacClassification class.
This class is used to create a WacClassification instance by using the static create() function.
A WacClassification instance can be used to create a WacClassifier instance.
A WacCategoriesInfo class can be retrieved by using the static getCategoriesInfo() function, which is used to enumerate all container objects.
Definition at line 61 of file wac_classification.h.
Public Member Functions | |
WacCategoriesInfo | getCategoriesInfo () const |
Retrieve the WacCategoriesInfo class. More... | |
WacClassifier | createClassifier (const dca::DbConnection &aDbConnection, const WacClassifierOptions &aWacClassifierOptions=WacClassifierOptions()) const |
Creates a WacClassifier that is used to classify WacInputData objects. More... | |
dca::LogLevel | setLogLevel (dca::LogLevel newLevel) |
Changes the log level of the package and returns the previously used loglevel. Usually the logging level is set to LOG_Notice. More... | |
bool | wacDetailsAvailable (const dca::UrlClassificationResults &res) const |
Returns whether or not a subsequent WAC classification may provide useful WAC information. If this functions returns true, a WAC classification could return a positive WAC result. More... | |
Static Public Member Functions | |
static WacClassification | create (const dca::DcaInstance &aDca, const dca::License &aLicense) |
Initializes the WacClassification module. More... | |
Static Public Attributes | |
static DCA_MODULE_ID_TYPE | ID |
The unique ID of the WAC classification module. | |
|
static |
Initializes the WacClassification module.
[in] | aDca | A previously initialized DcaInstance object |
[in] | aLicense | An initialized License object |
WacCategoriesInfo dca_wac::WacClassification::getCategoriesInfo | ( | ) | const |
Retrieve the WacCategoriesInfo class.
WacClassifier dca_wac::WacClassification::createClassifier | ( | const dca::DbConnection & | aDbConnection, |
const WacClassifierOptions & | aWacClassifierOptions = WacClassifierOptions() |
||
) | const |
Creates a WacClassifier that is used to classify WacInputData objects.
[in] | aDbConnection | An initialized database connection object. |
[in] | aWacClassifierOptions | Options to use, if not provided the default options will be used |
ExDca | - One of the following error codes (available by using dca::ExDca::getReturnCode() in your catch-handler) |
dca::LogLevel dca_wac::WacClassification::setLogLevel | ( | dca::LogLevel | newLevel | ) |
Changes the log level of the package and returns the previously used loglevel. Usually the logging level is set to LOG_Notice.
[in] | newLevel | The new LogLevel the class instance should use for logging |
bool dca_wac::WacClassification::wacDetailsAvailable | ( | const dca::UrlClassificationResults & | res | ) | const |
Returns whether or not a subsequent WAC classification may provide useful WAC information. If this functions returns true, a WAC classification could return a positive WAC result.
[in] | res | The result of a previous URL classification call. |