dca_interface  6.3.4
urldb_classifier.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 URLDB_CLASSIFIER_H
7 #define URLDB_CLASSIFIER_H
8 
15 namespace dca {
16 
17  class urldbclassifier_p;
18 
19  class UrlClassificationResults;
20  class Url;
21 
40  {
41  public:
44  UrlDbClassifier( const UrlDbClassifier& rhi );
45  UrlDbClassifier& operator = ( const UrlDbClassifier& rhi );
46  virtual ~UrlDbClassifier();
48 
60  FunctionResult classify( const Url& aUrl, UrlClassificationResults& urlResults ) const;
61 
70 
72  PRIVATE_PTR urldbclassifier_p *_p;
73  };
74 
75 }
76 
77 #endif
FunctionResult classify(const Url &aUrl, UrlClassificationResults &urlResults) const
Performs the URL classification and returns the results.
LogLevel setLogLevel(LogLevel newLevel)
Sets the logging level for the given class instance. The old value will be returned.
Results of an URL classification.
URL database classifier class.
LogLevel
This enum is used in all setLogLevel() functions to change the verbosity level of the classes.
Definition: base_classes.h:212
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition: base_types.h:83
Standard function result.
Definition: base_classes.h:148
Encapsulates a URL object.
Definition: base_url.h:44