-
Notifications
You must be signed in to change notification settings - Fork 0
/
Data.h
49 lines (36 loc) · 895 Bytes
/
Data.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
43
44
45
46
47
48
49
#ifndef _Data_H_
#define _Data_H_
#include <iostream>
#include <fstream>
#include <NTL/ZZ.h>
using namespace std;
NTL_CLIENT
class Data {
public:
Data();
Data(int len);
Data(char * bN, int order = 0);
Data(vector<char> block, char* bN, int order = 0);
~Data();
Data(ZZ d, int len = 1);
ZZ getValue();
ZZ getValuePers();
ZZ getValuePers(char* fileNameBase);
ZZ getValuePersByStringName();
vector<char> getBytesFromFile();
char* getDataVal(long* s = NULL);
char* getDataValByStringName(long* s = NULL);
int getLength();
void setLength(int len);
char* getName();
string getNameAsString();
static int readCounterInt(char* inname);
int length;
private:
ZZ returnVal;
ZZ value;
char* blockName;
string blockNameString;
int orderNumber;
};
#endif /*_Data_H_*/