class MyXml

Library: Net Responsibility
Package: Core
Header: MyXml.h

Description

MyXml inherits XMLConfiguration and adds some extra functionality to it. It's most important task is to extract and compile the blacklists, as well as the txtfile.

Inheritance

Direct Base Classes: Poco::Util::XMLConfiguration

All Base Classes: Poco::RefCountedObject, Poco::Util::AbstractConfiguration, Poco::Util::XMLConfiguration

Member Summary

Member Functions: getBlacklist, getExtensions, getStringMap, getStringVector

Inherited Functions: createView, duplicate, enumerate, expand, getBool, getDouble, getInt, getRaw, getRawString, getString, has, hasOption, hasProperty, keys, load, loadEmpty, parseBool, parseInt, referenceCount, release, remove, removeRaw, save, setBool, setDouble, setInt, setRaw, setRawWithEvent, setString

Constructors

MyXml

MyXml();

MyXml

MyXml(
    string path
);

Load the XML file found at path.

Member Functions

getBlacklist

Blacklist getBlacklist();

Extracts and compiles the keywords in the blacklist file.

getExtensions

Extensions getExtensions();

Extracts every Extension shipped with the blacklists.

getStringMap

map < string, string > getStringMap() const;

Returns a map<string, string> with all values found in the document.

getStringVector

vector < string > getStringVector(
    string key
) const;

Returns a string vector with the values found at "key".

Variables

_logger protected

Logger * _logger;