summaryrefslogtreecommitdiff
path: root/src/mongo/util/options_parser/option_section.h
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@10gen.com>2013-10-24 15:06:44 -0400
committerShaun Verch <shaun.verch@10gen.com>2013-11-04 11:30:34 -0500
commit0b1f32bd5e8adf5e56396f001ac97d0200146ff6 (patch)
tree20bc5d85cea048d4af95b1b2248da039688aada5 /src/mongo/util/options_parser/option_section.h
parentccf75cf8300d5e050d524da82bdec03d8d6e303f (diff)
downloadmongo-0b1f32bd5e8adf5e56396f001ac97d0200146ff6.tar.gz
SERVER-11143 Add constraints to option registration interface
Diffstat (limited to 'src/mongo/util/options_parser/option_section.h')
-rw-r--r--src/mongo/util/options_parser/option_section.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/options_parser/option_section.h b/src/mongo/util/options_parser/option_section.h
index 9535bf52741..0da5fba3a90 100644
--- a/src/mongo/util/options_parser/option_section.h
+++ b/src/mongo/util/options_parser/option_section.h
@@ -17,6 +17,7 @@
#include "mongo/util/options_parser/option_description.h"
#include <boost/program_options.hpp>
+#include <boost/shared_ptr.hpp>
#include <iostream>
#include <list>
@@ -123,6 +124,12 @@ namespace optionenvironment {
*/
Status getDefaults(std::map<Key, Value>* values) const;
+ /**
+ * Populates the given vector with all the constraints for all options in this section and
+ * sub sections.
+ */
+ Status getConstraints(std::vector<boost::shared_ptr<Constraint > >* constraints) const;
+
std::string positionalHelpString(const std::string& execName) const;
std::string helpString() const;