| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

ParameterDescription.cc

Go to the documentation of this file.
00001 #include "RuleParser/RuleFactory.h" // need for smart pointer destruction.
00002 #include "RuleParser/ParameterDescription.h"
00003 
00004 using namespace RuleParser;
00005 
00006 RuleParser::ParameterDescription::ParameterDescription(
00007                      unsigned int id,                    // ID number for use with queryParam
00008                      const std::string& name,            // String that matches this paramter when parsing
00009                      const std::type_info& type,         // Type of returned parameter, int, double, string, or custom
00010                      const std::vector<std::string>& operators, // List of operators valid for this parameter.
00011                      const boost::shared_ptr<RuleFactory>& ruleFactory // Optional factory that will produce rule for this paramater
00012                      )
00013   : m_id(id)
00014   , m_name(name)
00015   , m_type(type.name())
00016   , m_operators(operators)
00017   , m_factory(ruleFactory) 
00018   {}
00019 
00020 RuleParser::ParameterDescription::ParameterDescription(
00021                      unsigned int id,                    // ID number for use with queryParam
00022                      const std::string& name,            // String that matches this paramter when parsing
00023                      const std::type_info& type,         // Type of returned parameter, int, double, string, or custom
00024                      const std::vector<std::string>& operators, // List of operators valid for this parameter.
00025                      RuleFactory* ruleFactory           // Optional factory that will produce rule for this paramater
00026                      )
00027    : m_id(id)
00028    , m_name(name)
00029    , m_type(type.name())
00030    , m_operators(operators)
00031    , m_factory(ruleFactory) 
00032    {}
00033 
00034 
00035 // For simple parameters (int,double,string match)
00036 RuleParser::ParameterDescription::ParameterDescription(
00037                      unsigned int id,                    // ID number for use with queryParam
00038                      const std::string& name,            // String that matches this paramter when parsing
00039                      const std::type_info& type          // Type of returned parameter, int, double, string, or custom
00040                      )
00041   : m_id(id)
00042   , m_name(name)
00043   , m_type(type.name())
00044   , m_operators()
00045   , m_factory() 
00046   {}
00047 
00048 
00049 RuleParser::ParameterDescription::~ParameterDescription()
00050 { 
00051 };
00052 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:09:14 2011 for RuleParser by doxygen 1.4.7