Defines a description of the properties of an original document processed by the segmenter.
More...
#include <documentClass.hpp>
Defines a description of the properties of an original document processed by the segmenter.
strus::analyzer::DocumentClass::DocumentClass |
( |
| ) |
|
|
inline |
strus::analyzer::DocumentClass::DocumentClass |
( |
const std::string & |
mimeType_ | ) |
|
|
inlineexplicit |
strus::analyzer::DocumentClass::DocumentClass |
( |
const std::string & |
mimeType_, |
|
|
const std::string & |
encoding_ |
|
) |
| |
|
inline |
strus::analyzer::DocumentClass::DocumentClass |
( |
const std::string & |
mimeType_, |
|
|
const std::string & |
encoding_, |
|
|
const std::string & |
scheme_ |
|
) |
| |
|
inline |
strus::analyzer::DocumentClass::DocumentClass |
( |
const DocumentClass & |
o | ) |
|
|
inline |
bool strus::analyzer::DocumentClass::defined |
( |
| ) |
const |
|
inline |
Evaluate if this document class definition is defined.
- Returns
- true if defined
const std::string& strus::analyzer::DocumentClass::encoding |
( |
| ) |
const |
|
inline |
Get the character set encoding of the document class.
- Returns
- the character set encoding string
int strus::analyzer::DocumentClass::level |
( |
| ) |
const |
|
inline |
Evaluate the level of definition of the document class.
- Returns
- level of definition
- Note
- this method is used to weight different oppinions of document class detection
const std::string& strus::analyzer::DocumentClass::mimeType |
( |
| ) |
const |
|
inline |
Get the MIME type of the document class.
- Returns
- the document MIME type string
const std::string& strus::analyzer::DocumentClass::scheme |
( |
| ) |
const |
|
inline |
Get the scheme identifier of the document class.
- Returns
- the document scheme identifier
void strus::analyzer::DocumentClass::setEncoding |
( |
const std::string & |
encoding_ | ) |
|
|
inline |
Set the character set encoding of the document class.
- Parameters
-
[in] | the | character set encoding string |
void strus::analyzer::DocumentClass::setMimeType |
( |
const std::string & |
mimeType_ | ) |
|
|
inline |
Set the MIME type of the document class.
- Parameters
-
[in] | the | document MIME type string |
void strus::analyzer::DocumentClass::setScheme |
( |
const std::string & |
scheme_ | ) |
|
|
inline |
Set the scheme identifier of the document class.
- Parameters
-
[in] | the | document scheme identifier |
The documentation for this class was generated from the following file: