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

Implementation of a Constraint that makes two keys mutually exclusive. More...

#include <constraints.h>

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

Public Member Functions

 MutuallyExclusiveKeyConstraint (const Key &key, const Key &otherKey)
 
- 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 makes two keys mutually exclusive.

Fails if both keys are set.


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