dca_interface  6.3.4
zla_classification_result.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 ZLA_CLASSIFICATION_RESULT_H
7 #define ZLA_CLASSIFICATION_RESULT_H
8 
15 namespace dca {
16  class zla_result;
17 
23  typedef int DCA_ZLA_TYPE;
24 
29  extern const DCA_ZLA_TYPE DCA_NONE;
34  extern const DCA_ZLA_TYPE DCA_ZLA_FLOW;
54  extern const DCA_ZLA_TYPE DCA_ZLA_URL;
59  extern const DCA_ZLA_TYPE DCA_ZLA_BLOCKALLOW;
69  extern const DCA_ZLA_TYPE DCA_ZLA_NDR;
70 
76  typedef int DCA_ZLA_RESULT;
77 
82  extern const DCA_ZLA_RESULT ZLA_SPAM;
87  extern const DCA_ZLA_RESULT ZLA_HAM;
92  extern const DCA_ZLA_RESULT ZLA_NDR;
97  extern const DCA_ZLA_RESULT ZLA_UNKNOWN;
98 
108  {
109  public:
113  ZlaClassificationResult& operator = ( const ZlaClassificationResult& rhi );
114  virtual ~ZlaClassificationResult();
116 
119 
122 
124  PRIVATE_PTR zla_result *_p;
125  };
126 
127 }
128 
129 #endif
const DCA_ZLA_TYPE DCA_ZLA_URL
The URL module.
DCA_ZLA_RESULT result() const
Returns the result for the ZLA classification.
const DCA_ZLA_TYPE DCA_NONE
Initial/no module.
const DCA_ZLA_TYPE DCA_ZLA_NDR
The Non-Delivery-Report module.
const DCA_ZLA_RESULT ZLA_HAM
The email data is classified as HAM.
const DCA_ZLA_TYPE DCA_ZLA_FLOW
The Flow Control module.
const DCA_ZLA_TYPE DCA_ZLA_DBBLOCKALLOW
The DB Block Allow module.
const DCA_ZLA_RESULT ZLA_UNKNOWN
The email data is unknown i.e. there was not enough data for classification or no ZLA match.
int DCA_ZLA_RESULT
Type define used for the result of a ZLA classification.
const DCA_ZLA_RESULT ZLA_SPAM
The email data is classified as SPAM.
Overall result of a ZLA classification.
DCA_ZLA_TYPE module() const
Returns the module type for the ZLA classification.
const DCA_ZLA_RESULT ZLA_NDR
The email data is classified as NDR (non-delivery-report)
const DCA_ZLA_TYPE DCA_ZLA_BLOCKALLOW
The Block Allow module.
const DCA_ZLA_TYPE DCA_ZLA_SHINGLE_HEADERPRINT
The Shingle Header Print module.
const DCA_ZLA_TYPE DCA_ZLA_SHINGLE_PRINT
The Shingle Print module.
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition: base_types.h:83
const DCA_ZLA_TYPE DCA_ZLA_SHINGLE_BAYES
The Shingle Bayes module.
int DCA_ZLA_TYPE
Type define used for modules contained in the ZLA.