datasets.h 429 Bytes
Newer Older
/jdi/'s avatar
/jdi/ committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Datasets.h
 *
 *  Created on: 02.10.2015
 *      Author: jdi
 */

#ifndef DATASETS_H_
#define DATASETS_H_

#include <map>
#include "bytes.h"

struct dataset {
	short type;
	short len;
	bytes value;
};

20
class datasets : public std::vector<dataset> {
/jdi/'s avatar
/jdi/ committed
21
22
23
24
25
public:
	datasets(){};
	datasets(std::initializer_list<dataset> s)
	{
		for (dataset b : s) {
26
27
			//(*this)[b.type]=b;
			push_back(b);
/jdi/'s avatar
/jdi/ committed
28
29
30
31
32
		}
    }
};

#endif /* DATASETS_H_ */