-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServerElement.h
43 lines (35 loc) · 1006 Bytes
/
ServerElement.h
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: ServerElement.h
* Author: Benjamin
*
* Created on 13 février 2017, 14:56
*/
#ifndef SERVERELEMENT_H
#define SERVERELEMENT_H
#include <map>
#include "IElement.h"
namespace Spatch
{
namespace Parsing
{
class ServerElement : public IElement
{
public:
ServerElement();
virtual ~ServerElement();
virtual void setId(std::string &id);
virtual bool addProperty(std::string &key, std::string &value);
virtual bool isValid() const;
virtual bool finish(Spatch::Configuration::Config &conf);
private:
std::string _id;
std::map<std::string, std::string> _prop;
};
}
}
#endif /* SERVERELEMENT_H */