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 3653 of file mjsonrpc.cxx.

Constructor & Destructor Documentation

◆ ~EventStashEntry()

EventStashEntry::~EventStashEntry ( )
inline

Definition at line 3660 of file mjsonrpc.cxx.

3661 {
3662 //Print(); printf(", dtor!\n");
3663 buffer_name.clear();
3664 event_id = 0;
3665 trigger_mask = 0;
3666 if (pevent)
3667 free((void*)pevent);
3668 pevent = NULL;
3669 }
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 3680 of file mjsonrpc.cxx.

3681 {
3682 printf("EventStashEntry: %s,%d,0x%x,%p", buffer_name.c_str(), event_id, trigger_mask, pevent);
3683 if (pevent)
3684 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);
3685 }
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 3671 of file mjsonrpc.cxx.

3672 {
3673 if (pevent) {
3674 free((void*)pevent);
3675 pevent = NULL;
3676 }
3677 pevent = CopyEvent(xpevent);
3678 }
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 3655 of file mjsonrpc.cxx.

◆ event_id

int EventStashEntry::event_id = 0

Definition at line 3656 of file mjsonrpc.cxx.

◆ pevent

const EVENT_HEADER* EventStashEntry::pevent = NULL

Definition at line 3658 of file mjsonrpc.cxx.

◆ trigger_mask

int EventStashEntry::trigger_mask = 0

Definition at line 3657 of file mjsonrpc.cxx.


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