dca_interface
6.3.4
home
build
tmp
dcatmp18664
pkgdevel
dca
include
dca
url_classification
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
39
class
UrlDbClassifier
40
{
41
public
:
43
UrlDbClassifier
();
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
69
LogLevel
setLogLevel
(
LogLevel
newLevel );
70
72
PRIVATE_PTR
urldbclassifier_p *_p;
73
};
74
75
}
76
77
#endif
dca::UrlDbClassifier::classify
FunctionResult classify(const Url &aUrl, UrlClassificationResults &urlResults) const
Performs the URL classification and returns the results.
dca::UrlDbClassifier::setLogLevel
LogLevel setLogLevel(LogLevel newLevel)
Sets the logging level for the given class instance. The old value will be returned.
dca::UrlClassificationResults
Results of an URL classification.
Definition:
url_classification_result.h:32
dca::UrlDbClassifier
URL database classifier class.
Definition:
urldb_classifier.h:40
dca::LogLevel
LogLevel
This enum is used in all setLogLevel() functions to change the verbosity level of the classes.
Definition:
base_classes.h:212
PRIVATE_PTR
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition:
base_types.h:83
dca::FunctionResult
Standard function result.
Definition:
base_classes.h:148
dca::Url
Encapsulates a URL object.
Definition:
base_url.h:44
Generated by
1.8.18