#include <malware_category.h>
The MalwareCategory class contains information for a single category.
To retrieve all categories available use the MalwareCategoriesInfo class.
- See also
- MalwareCategoriesInfo
Definition at line 26 of file malware_category.h.
◆ operator==()
bool dca_malware::MalwareCategory::operator== |
( |
const MalwareCategory & |
aInst | ) |
const |
Equality operator, returns true if two MalwareCategory objects refer to the identical internal category.
- Parameters
-
[in] | aInst | Another MalwareCategory instance to check for equality with current instance. |
- Returns
- True if identical else false
- See also
- dca_malware::NullMalwareCategory
◆ operator!=()
bool dca_malware::MalwareCategory::operator!= |
( |
const MalwareCategory & |
aInst | ) |
const |
Inequality operator, returns true if two MalwareCategory objects refer to different internal categories.
- Parameters
-
[in] | aInst | Another instance to check for inequality with the current instance. |
- Returns
- False if identical, otherwise true
- See also
- dca_malware::NullMalwareCategory
◆ id()
Returns the internal id of a MalwareCategory class.
- Returns
- The id of the category.
◆ name()
std::string dca_malware::MalwareCategory::name |
( |
const std::string & |
localeString = std::string() | ) |
const |
Returns the localized (display) name of the category.
- Parameters
-
[in] | localeString | The name of the Locale to be used. Leave blank for using the default locale ("en_US") |
- Returns
- Localized category name.
- Note
- The available locales for a given MalwareCategoriesInfo object can be obtained via the Locales class.
◆ enumsSize()
Returns the count of MalwareEnum items associated with current MalwareCategory.
- Returns
- Returns the count of MalwareEnum items or 0 if the MalwareCategory does not contain any MalwareEnum items.
◆ enumId()
Returns the id of an enum item associated with the current MalwareCategory.
- Returns
- Returns the id of an enum item with the given index, related to the current category. If no enum exists for the current index -1 will be returned.
- Parameters
-
[in] | index | The index of the enum id to retrieve. The value must be in the range of 0..enumSize()-1 |
◆ enumByValue()
Returns the id of an enum item associated with the current MalwareCategory.
- Returns
- Returns the id of the enum item by a given value. that is usually returned from a Malware classification call. If no enum exists with the current value -1 will be returned.
- Parameters
-
[in] | value | The value returned from a MalwareClassifier::classify() call |
- See also
- MalwareDbClassifier::classify(), MalwareClassificationResult
The documentation for this class was generated from the following file: