class Poco::Util::RegExpValidator

Overview

This validator matches the option value against a regular expression. Moreā€¦

#include <RegExpValidator.h>

class RegExpValidator: public Poco::Util::Validator
{
public:
    // construction

    RegExpValidator(const std::string& regexp);

    // methods

    virtual
    void
    validate(
        const Option& option,
        const std::string& value
        );
};

Inherited Members

public:
    // methods

    void
    duplicate() const;

    void
    release() const;

    int
    referenceCount() const;

    virtual
    void
    validate(
        const Option& option,
        const std::string& value
        ) = 0;

Detailed Documentation

This validator matches the option value against a regular expression.

Construction

RegExpValidator(const std::string& regexp)

Creates the RegExpValidator, using the given regular expression.

Methods

virtual
void
validate(
    const Option& option,
    const std::string& value
    )

Validates the value for the given option by matching it with the regular expression.