PrevUpHomeNext

Class parameter_map

zeep::http::parameter_map

Synopsis

// In header: </home/maarten/projects/libzeep/zeep/http/webapp.hpp>


class parameter_map {
public:

  // public member functions
  void add(const std::string &);
  void add(std::string, std::string);
  void replace(std::string, std::string);
  template<typename T> const parameter_value & get(const std::string &, T);
  template<> const parameter_value & get(const std::string &, const char *);
  template<> const parameter_value & get(const std::string &, bool);
};

Description

parameter_map is used to pass parameters from forms. The parameters can have 'any' type. Works a bit like the program_options code in boost.

parameter_map public member functions

  1. void add(const std::string & param);
    add a name/value pair as a string formatted as 'name=value'
  2. void add(std::string name, std::string value);
  3. void replace(std::string name, std::string value);
  4. template<typename T> 
      const parameter_value & get(const std::string & name, T defaultValue);
  5. template<> 
      const parameter_value & 
      get(const std::string & name, const char * defaultValue);
  6. template<> 
      const parameter_value & get(const std::string & name, bool defaultValue);

PrevUpHomeNext