MongoDB  2.7.0
Public Member Functions | List of all members
mongo::optionenvironment::StringFormatKeyConstraint Class Reference

Implementation of a Constraint that enforces a specific format on a string value. More...

#include <constraints.h>

Inheritance diagram for mongo::optionenvironment::StringFormatKeyConstraint:
mongo::optionenvironment::KeyConstraint mongo::optionenvironment::Constraint

Public Member Functions

 StringFormatKeyConstraint (const Key &key, const std::string &regexFormat, const std::string &displayFormat)
 
- Public Member Functions inherited from mongo::optionenvironment::KeyConstraint
 KeyConstraint (const Key &key)
 
- Public Member Functions inherited from mongo::optionenvironment::Constraint
Status operator() (const Environment &env)
 

Additional Inherited Members

- Protected Attributes inherited from mongo::optionenvironment::KeyConstraint
Key _key
 

Detailed Description

Implementation of a Constraint that enforces a specific format on a string value.

Fails if the value of the key is not a string or does not match the given regex.


The documentation for this class was generated from the following files: