summaryrefslogtreecommitdiffstats
path: root/src/tclap/Constraint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tclap/Constraint.h')
-rw-r--r--[-rwxr-xr-x]src/tclap/Constraint.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/tclap/Constraint.h b/src/tclap/Constraint.h
index a92acf9..e99418b 100755..100644
--- a/src/tclap/Constraint.h
+++ b/src/tclap/Constraint.h
@@ -1,4 +1,3 @@
-
/******************************************************************************
*
* file: Constraint.h
@@ -29,40 +28,41 @@
#include <iomanip>
#include <algorithm>
-namespace TCLAP {
-
-/**
- * The interface that defines the interaction between the Arg and Constraint.
- */
-template<class T>
-class Constraint
+namespace TCLAP
{
+ /**
+ * The interface that defines the interaction between the Arg and Constraint.
+ */
+ template<class T>
+ class Constraint
+ {
+ public:
+ /**
+ * Returns a description of the Constraint.
+ */
+ virtual std::string description() const = 0;
- public:
- /**
- * Returns a description of the Constraint.
- */
- virtual std::string description() const =0;
-
- /**
- * Returns the short ID for the Constraint.
- */
- virtual std::string shortID() const =0;
+ /**
+ * Returns the short ID for the Constraint.
+ */
+ virtual std::string shortID() const = 0;
- /**
- * The method used to verify that the value parsed from the command
- * line meets the constraint.
- * \param value - The value that will be checked.
- */
- virtual bool check(const T& value) const =0;
-
- /**
- * Destructor.
- * Silences warnings about Constraint being a base class with virtual
- * functions but without a virtual destructor.
- */
- virtual ~Constraint() { ; }
-};
+ /**
+ * The method used to verify that the value parsed from the command
+ * line meets the constraint.
+ * \param value - The value that will be checked.
+ */
+ virtual bool check(const T &value) const = 0;
+ /**
+ * Destructor.
+ * Silences warnings about Constraint being a base class with virtual
+ * functions but without a virtual destructor.
+ */
+ virtual ~Constraint()
+ {
+ }
+ };
} //namespace TCLAP
+
#endif