16#include "eformat/eformat.h"
17#include "eformat/write/eformat.h"
28 uint32_t dummy_data[256];
29 for (
size_t i=0; i<256; ++i) dummy_data[i] = i;
34 const uint32_t run_no = 1001;
35 const uint32_t lvl1_id = 2222;
36 const uint32_t bc_id = 3333;
37 const uint32_t lvl1_type = 2;
38 const uint32_t event_type = 1;
39 const uint32_t global_id = 5555;
40 const uint32_t lvl2_info = 3;
41 const uint32_t ef_info[4] = { 0, 1, 2, 3 };
44 lvl1_type, event_type, 256, dummy_data,
47 lvl1_type, event_type, 256, dummy_data,
50 lvl1_type, event_type, 256, dummy_data,
62 lvl1_id, lvl1_type, lvl2_info, ef_info);
67 struct iovec iov[128];
68 uint32_t total_pages = write::shallow_copy(*fe_list, iov, 128);
72 FullEventFragment <PagedMemory<>::const_iterator> ferd(mem.
begin());
75 std::cout <<
"Generated event seems Ok." << std::endl;
78 std::cerr << std::endl
79 <<
"Uncaught eformat issue: " << ex.
what() << std::endl;
82 std::cerr << std::endl
83 <<
"Uncaught ERS issue: " << ex.
what() << std::endl;
85 catch (std::exception& ex) {
86 std::cerr << std::endl
87 <<
"Uncaught std exception: " << ex.
what() << std::endl;
90 std::cerr << std::endl <<
"Uncaught unknown exception" << std::endl;
const_iterator begin(void) const
const char * what() const
Human description message.