dca_interface  6.3.4
dca_malware::MalwareCategory Class Reference

#include <malware_category.h>

Detailed Description

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.

Public Member Functions

bool operator== (const MalwareCategory &aInst) const
 Equality operator, returns true if two MalwareCategory objects refer to the identical internal category. More...
 
bool operator!= (const MalwareCategory &aInst) const
 Inequality operator, returns true if two MalwareCategory objects refer to different internal categories. More...
 
DCA_CATEGORY_ID_TYPE id () const
 Returns the internal id of a MalwareCategory class. More...
 
std::string name (const std::string &localeString=std::string()) const
 Returns the localized (display) name of the category. More...
 
DCA_SIZE_TYPE enumsSize () const
 Returns the count of MalwareEnum items associated with current MalwareCategory. More...
 
DCA_ENUM_ID_TYPE enumId (DCA_INDEX_TYPE index) const
 Returns the id of an enum item associated with the current MalwareCategory. More...
 
DCA_ENUM_ID_TYPE enumByValue (int value) const
 Returns the id of an enum item associated with the current MalwareCategory. More...
 

Member Function Documentation

◆ 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]aInstAnother 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]aInstAnother instance to check for inequality with the current instance.
Returns
False if identical, otherwise true
See also
dca_malware::NullMalwareCategory

◆ id()

DCA_CATEGORY_ID_TYPE dca_malware::MalwareCategory::id ( ) const

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]localeStringThe 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()

DCA_SIZE_TYPE dca_malware::MalwareCategory::enumsSize ( ) const

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()

DCA_ENUM_ID_TYPE dca_malware::MalwareCategory::enumId ( DCA_INDEX_TYPE  index) const

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]indexThe index of the enum id to retrieve. The value must be in the range of 0..enumSize()-1

◆ enumByValue()

DCA_ENUM_ID_TYPE dca_malware::MalwareCategory::enumByValue ( int  value) const

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]valueThe value returned from a MalwareClassifier::classify() call
See also
MalwareDbClassifier::classify(), MalwareClassificationResult

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