forked from pavel-odintsov/fastnetmon
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathipfix_rfc.h
32 lines (26 loc) · 860 Bytes
/
ipfix_rfc.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
#ifndef IPFIX_RFC_H
#define IPFIX_RFC_H
/* This file is autogenerated with script ipfix_csv_processor.pl */
/* Please do not edit it directly */
#include <iostream>
#include <map>
class ipfix_information_element_t {
public:
ipfix_information_element_t(std::string name, unsigned int length);
ipfix_information_element_t();
std::string get_name();
unsigned int get_length();
std::string name;
unsigned int length;
};
typedef std::map<unsigned int, ipfix_information_element_t> ipfix_database_t;
class ipfix_information_database {
public:
ipfix_information_database();
bool add_element(unsigned int field_id, std::string name, unsigned int length);
std::string get_name_by_id(unsigned int field_id);
unsigned int get_length_by_id(unsigned int field_id);
private:
ipfix_database_t database;
};
#endif