MIDAS
Loading...
Searching...
No Matches
EventStashEntry Struct Reference
Collaboration diagram for EventStashEntry:

Public Member Functions

 ~EventStashEntry ()
 
void ReplaceEvent (const EVENT_HEADER *xpevent)
 
void Print () const
 

Public Attributes

std::string buffer_name
 
int event_id = 0
 
int trigger_mask = 0
 
const EVENT_HEADERpevent = NULL
 

Detailed Description

Definition at line 3556 of file mjsonrpc.cxx.

Constructor & Destructor Documentation

◆ ~EventStashEntry()

EventStashEntry::~EventStashEntry ( )
inline

Definition at line 3563 of file mjsonrpc.cxx.

3564 {
3565 //Print(); printf(", dtor!\n");
3566 buffer_name.clear();
3567 event_id = 0;
3568 trigger_mask = 0;
3569 if (pevent)
3570 free((void*)pevent);
3571 pevent = NULL;
3572 }
std::string buffer_name
int event_id
const EVENT_HEADER * pevent
int trigger_mask

Member Function Documentation

◆ Print()

void EventStashEntry::Print ( ) const
inline

Definition at line 3583 of file mjsonrpc.cxx.

3584 {
3585 printf("EventStashEntry: %s,%d,0x%x,%p", buffer_name.c_str(), event_id, trigger_mask, pevent);
3586 if (pevent)
3587 printf(", size %d, serial %d, time %d, event_id %d, trigger_mask %x", pevent->data_size, pevent->serial_number, pevent->time_stamp, pevent->event_id, pevent->trigger_mask);
3588 }
short int event_id
Definition midas.h:853
DWORD data_size
Definition midas.h:857
DWORD serial_number
Definition midas.h:855
DWORD time_stamp
Definition midas.h:856
short int trigger_mask
Definition midas.h:854

◆ ReplaceEvent()

void EventStashEntry::ReplaceEvent ( const EVENT_HEADER xpevent)
inline

Definition at line 3574 of file mjsonrpc.cxx.

3575 {
3576 if (pevent) {
3577 free((void*)pevent);
3578 pevent = NULL;
3579 }
3580 pevent = CopyEvent(xpevent);
3581 }
static const EVENT_HEADER * CopyEvent(const EVENT_HEADER *pevent)
Here is the call graph for this function:

Member Data Documentation

◆ buffer_name

std::string EventStashEntry::buffer_name

Definition at line 3558 of file mjsonrpc.cxx.

◆ event_id

int EventStashEntry::event_id = 0

Definition at line 3559 of file mjsonrpc.cxx.

◆ pevent

const EVENT_HEADER* EventStashEntry::pevent = NULL

Definition at line 3561 of file mjsonrpc.cxx.

◆ trigger_mask

int EventStashEntry::trigger_mask = 0

Definition at line 3560 of file mjsonrpc.cxx.


The documentation for this struct was generated from the following file: