dmpserverparameters.h
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* @Author: your name
* @Date: 2021-04-26 11:22:48
* @LastEditTime: 2021-04-26 16:58:30
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /dmapserver/src/server/dmpserverparameters.h
*/
/**************************************************************************
* file: dmpserverparameters.h
* Author: wanzhongping
* Date: 2021-01-19 09:47:49
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#ifndef __dmpserverparameters_h__
#define __dmpserverparameters_h__
#include "dmap_server.h"
#include <map>
#include <vector>
#include <boost/algorithm/string.hpp>
#include "dmpserverutils.h"
typedef std::map<std::string, std::string> ParameterMap;
class SERVER_EXPORT DmpServerParameters
{
public:
DmpServerParameters();
DmpServerParameters(const std::string &queryString);
virtual ~DmpServerParameters() {};
void add(const std::string &key, const std::string &value);
void remove(const std::string &key);
void getValue(const std::string &key, std::string &value);
void clear();
CIMap parameters() const { return params_ ;}
void setQueryString(const std::string &queryString);
std::string service() const;
std::string request() const;
std::string version() const;
protected:
CIMap params_;
};
#endif //__dmpserverparameters_h__