dca_interface  6.3.4
dca_malware::MalwareClassification Class Reference

#include <malware_classification.h>

Detailed Description

Main class for the Malware classification.

See also
MalwareDbClassifier

Definition at line 53 of file malware_classification.h.

Public Member Functions

MalwareCategoriesInfo getCategoriesInfo () const
 Retrieve the MalwareCategoriesInfo class.
 
MalwareDbClassifier createDbClassifier (const dca::DbConnection &aDbConnection, const MalwareDbClassifierOptions &options=MalwareDbClassifierOptions()) const
 Create a Malware database classifier. The classifier is created by using the provided database connection. The DbClassifier is automatically connected to the database via the DbConnection after successful initialization. More...
 
dca::LogLevel setLogLevel (dca::LogLevel newLevel)
 Sets the logging level for the given class instance. The old value will be returned. More...
 

Static Public Member Functions

static MalwareClassification create (const dca::DcaInstance &aDcaInstance, const dca::License &aLicense)
 Creates the Malware classification module by using the given DcaInstance and License. More...
 

Static Public Attributes

static DCA_MODULE_ID_TYPE ID
 The unique ID of the Malware classification module.
 

Member Function Documentation

◆ create()

static MalwareClassification dca_malware::MalwareClassification::create ( const dca::DcaInstance aDcaInstance,
const dca::License aLicense 
)
static

Creates the Malware classification module by using the given DcaInstance and License.

This is the package creation function.

Before using any other functions of the Malware classification package, a MalwareClassification instance must be created by sumitting a valid DcaInstance and License.

Parameters
[in]aDcaInstanceA previously initialized DcaInstance object
[in]aLicenseAn initialized License object
Returns
An initialized MalwareClassification instance.
Exceptions
ExDcaOne of the following error codes (available by using ExDca::getReturnCode() in your catch-handler)

◆ createDbClassifier()

MalwareDbClassifier dca_malware::MalwareClassification::createDbClassifier ( const dca::DbConnection aDbConnection,
const MalwareDbClassifierOptions options = MalwareDbClassifierOptions() 
) const

Create a Malware database classifier. The classifier is created by using the provided database connection. The DbClassifier is automatically connected to the database via the DbConnection after successful initialization.

Parameters
[in]aDbConnectionThe database connection to be used for classification
[in]optionsThe Options that define whether or not WebLearn should be enabled. This paramter is optional.
Returns
A MalwareDbClassifier that is associated with the specified db connection, using the specified options (if any).
Exceptions
ExDcaOne of the following error codes (available by using ExDca::getReturnCode() in your catch-handler)

◆ setLogLevel()

dca::LogLevel dca_malware::MalwareClassification::setLogLevel ( dca::LogLevel  newLevel)

Sets the logging level for the given class instance. The old value will be returned.

Usually the logging level is set to LOG_Notice.

Parameters
[in]newLevelThe new LogLevel the class instance should use for logging
Returns
The old used logging level.

The documentation for this class was generated from the following file: