14#include "framework/pcore/SeqFile.h"
15#include "framework/pcore/RingBuffer.h"
16#include "framework/pcore/EvtMessage.h"
18#define RBUFSIZE 100000000
19#define MAXEVTSIZE 400000000
24int main(
int argc,
char** argv)
27 printf(
"file2rb : rbufname filename neof\n");
32 if (file->status() <= 0) {
38 char* evbuf =
new char[MAXEVTSIZE];
43 while ((size = rbuf->
remq((
int*)evbuf)) == 0) {
49 if (msg->
type() == MSG_TERMINATE) {
50 printf(
"EoF found. Exitting.....\n");
54 int wstat = file->write(evbuf);
Class to manage streamed object.
ERecordType type() const
Get record type.
Class to manage a Ring Buffer placed in an IPC shared memory.
int remq(int *buf)
Pick up a buffer from the RingBuffer.
A class to manage I/O for a chain of blocked files.
Abstract base class for different kinds of events.