ct_common  1.0.1
Common library for combinatorial testing
src/ct_common/common/paramspec_bool.h
Go to the documentation of this file.
00001 //===----- ct_common/common/paramspec_bool.h --------------------*- C++ -*-===//
00002 //
00003 //                      The ct_common Library
00004 //
00005 // This file is distributed under the MIT license. See LICENSE for details.
00006 //
00007 //===----------------------------------------------------------------------===//
00008 //
00009 // This header file contains the class for boolean parameter specifications
00010 //
00011 //===----------------------------------------------------------------------===//
00012 
00013 #ifndef CT_COMMON_PARAMSPEC_BOOL_H_
00014 #define CT_COMMON_PARAMSPEC_BOOL_H_
00015 
00016 #include <ct_common/common/utils.h>
00017 #include <ct_common/common/paramspec.h>
00018 
00019 namespace ct {
00020 namespace common {
00024 class DLL_EXPORT ParamSpec_Bool: public ParamSpec
00025 {
00026 public:
00027   ParamSpec_Bool(void);
00028   ParamSpec_Bool(const ParamSpec_Bool &from);
00029   ParamSpec_Bool &operator = (const ParamSpec_Bool &right);
00030   virtual ~ParamSpec_Bool(void);
00031 
00036   virtual void set_values(const std::vector<std::string> &string_values);
00037   const std::vector<bool> &get_bool_values(void) const { return this->bool_values_; }
00038 
00039   virtual std::string get_class_name(void) const;
00040   static std::string class_name(void);
00041 
00042 private:
00043   std::vector<bool> bool_values_;  
00047 };
00048 }  // namespace common
00049 }  // namespace ct
00050 
00051 #endif  // CT_COMMON_PARAMSPEC_BOOL_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines