Poco::MongoDB

class RegularExpression

Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/RegularExpression.h

Description

Represents a regular expression in BSON format

Member Summary

Member Functions: createRE, getOptions, getPattern, setOptions, setPattern

Types

Ptr

typedef SharedPtr < RegularExpression > Ptr;

Constructors

RegularExpression

RegularExpression();

Constructor

RegularExpression

RegularExpression(
    const std::string & pattern,
    const std::string & options
);

Constructor

Destructor

~RegularExpression virtual

virtual ~RegularExpression();

Destructor

Member Functions

createRE

SharedPtr < Poco::RegularExpression > createRE() const;

Tries to create a Poco::RegularExpression

getOptions inline

std::string getOptions() const;

Returns the options

getPattern inline

std::string getPattern() const;

Returns the pattern

setOptions inline

void setOptions(
    const std::string & options
);

Sets the options

setPattern inline

void setPattern(
    const std::string & pattern
);

Sets the pattern