Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
xmlconfig
xmlconfig.hpp
Go to the documentation of this file.
1
11
#ifndef _XMLCONFIG_H_
12
#define _XMLCONFIG_H_
13
14
#include <string>
15
#include <cstdlib>
16
#include <iostream>
17
18
19
#include "./tinyxml/tinyxml.h"
20
#include "../cryptotools/cryptotools.hpp"
21
#include "../arithm/arithm.hpp"
22
#include "../verifierutils/verifierutils.hpp"
23
24
50
class
XmlConfig
51
{
52
private
:
57
TiXmlDocument
doc
;
58
62
unsigned
int
nopart
;
63
68
unsigned
int
thres
;
69
73
unsigned
int
maxciph
;
74
80
unsigned
int
vbitlenro
;
81
86
unsigned
int
statdist
;
87
92
unsigned
int
cbitlenro
;
93
99
cryptoTools::SHAx
*
rohash
;
100
106
cryptoTools::SHAx
*
prghash
;
107
112
arithm::Group
*
pgroup
;
113
114
115
public
:
128
const
char
*
retrieveText
(std::string node, TiXmlHandle hdl);
129
142
int
toInteger
(std::string node, TiXmlHandle hdl);
143
156
cryptoTools::SHAx
*
string2hash
(
const
char
* hashRepresentation);
157
179
arithm::Group
*
unmarshalPGroup
(
const
char
* fieldRepresentation);
180
186
XmlConfig
(std::string path2file);
187
188
unsigned
int
getNopart
();
189
190
unsigned
int
getThres
();
191
192
unsigned
int
getMaxciph
();
193
194
unsigned
int
getVbitlenro
();
195
196
unsigned
int
getStatdist
();
197
198
unsigned
int
getCbitlenro
();
199
200
cryptoTools::SHAx
*
getRohash
();
201
202
cryptoTools::SHAx
*
getPrghash
();
203
204
arithm::Group
*
getPgroup
();
205
};
206
207
#endif