DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CyclicDataGenerator.hpp
Go to the documentation of this file.
1#ifndef CYCLICDATAGENERATOR_HPP_
2#define CYCLICDATAGENERATOR_HPP_
3
4#include <string.h>
5#include <stdlib.h>
6
7namespace dunedaq {
8namespace dpdklibs {
9namespace cyclicdatagenerator {
10
11
13public:
14 CyclicDataGenerator(size_t offset = 0);
15 CyclicDataGenerator(char *pattern, size_t offset = 0);
17
18 char get_next();
19 void get_next_n(char *dst, size_t n);
20 char get_prev();
21 void get_prev_n(char *dst, size_t n);
22
23private:
24 const char* pattern;
25 const size_t slice_len;
27};
28
29} // namespace cyclicdatagenerator
30} // namespace dpdklibs
31} // namespace dunedaq
32
33#endif
double offset
Including Qt Headers.