dca_interface  6.3.4
malware_category.h
Go to the documentation of this file.
1 /* IBM Source Code */
2 /* (C) Copyright IBM Corp. 2009, 2012 */
3 /* Licensed Materials - Property of IBM */
4 /* US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA Schedule Contract with IBM Corp. */
5 
6 #ifndef MALWARE_CATEGORY_H
7 #define MALWARE_CATEGORY_H
8 
14 namespace dca_malware {
15 
16  class malwarecategory_p;
17 
27  public:
30  MalwareCategory( const MalwareCategory& aCategory );
31  MalwareCategory& operator = ( const MalwareCategory& aCategory );
32  virtual ~MalwareCategory();
34 
41  bool operator == ( const MalwareCategory& aInst ) const;
42 
49  bool operator != ( const MalwareCategory& aInst ) const;
50 
56 
63  std::string name( const std::string& localeString = std::string() ) const;
64 
70 
78 
86  DCA_ENUM_ID_TYPE enumByValue( int value ) const;
87 
89  PRIVATE_PTR malwarecategory_p *_p;
90  };
91 
99 }
100 
101 #endif
The MalwareCategory class contains information for a single category.
DCA_CATEGORY_ID_TYPE id() const
Returns the internal id of a MalwareCategory class.
DCA_ENUM_ID_TYPE enumId(DCA_INDEX_TYPE index) const
Returns the id of an enum item associated with the current MalwareCategory.
std::string name(const std::string &localeString=std::string()) const
Returns the localized (display) name of the category.
DCA_ENUM_ID_TYPE enumByValue(int value) const
Returns the id of an enum item associated with the current MalwareCategory.
bool operator!=(const MalwareCategory &aInst) const
Inequality operator, returns true if two MalwareCategory objects refer to different internal categori...
bool operator==(const MalwareCategory &aInst) const
Equality operator, returns true if two MalwareCategory objects refer to the identical internal catego...
int DCA_CATEGORY_ID_TYPE
Type for category ids.
Definition: base_types.h:31
size_t DCA_INDEX_TYPE
Type for index access (used for arrays and collections).
Definition: base_types.h:66
MalwareCategory NullMalwareCategory
Defines a constant unassigned MalwareCategory you can use for checks. if( myMalwareCategory == NullMa...
size_t DCA_SIZE_TYPE
Type for size (used for size of array and collections).
Definition: base_types.h:72
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition: base_types.h:83
int DCA_ENUM_ID_TYPE
Id type for MalwareEnum class.
Definition: malware_base.h:21
DCA_SIZE_TYPE enumsSize() const
Returns the count of MalwareEnum items associated with current MalwareCategory.