MIDAS
|
Functions | |
void | bk_init (void *event) |
BOOL | bk_is32 (const void *event) |
BOOL | bk_is32a (const void *event) |
void | bk_init32 (void *event) |
void | bk_init32a (void *event) |
INT | bk_size (const void *event) |
static void | copy_bk_name (char *dst, const char *src) |
void | bk_create (void *event, const char *name, WORD type, void **pdata) |
INT | bk_copy (char *pevent, char *psrce, const char *bkname) |
int | bk_delete (void *event, const char *name) |
INT | bk_close (void *event, void *pdata) |
INT | bk_list (const void *event, char *bklist) |
INT | bk_locate (const void *event, const char *name, void *pdata) |
INT | bk_find (const BANK_HEADER *pbkh, const char *name, DWORD *bklen, DWORD *bktype, void **pdata) |
INT | bk_iterate (const void *event, BANK **pbk, void *pdata) |
INT | bk_iterate32 (const void *event, BANK32 **pbk, void *pdata) |
INT | bk_iterate32a (const void *event, BANK32A **pbk32a, void *pdata) |
INT | bk_swap (void *event, BOOL force) |
dox
dox Close the Midas bank priviously created by bk_create(). The data pointer pdata must be obtained by bk_create() and used as an address to fill a bank. It is incremented with every value written to the bank and finally points to a location just after the last byte of the bank. It is then passed to bk_close() to finish the bank creation
event | pointer to current composed event |
pdata | pointer to the data |
Definition at line 16780 of file midas.cxx.
dox Copy a bank given by name if found from a buffer source to a destination buffer.
* | pevent pointing after the EVENT_HEADER (as in FE) |
* | psrce pointing to EVENT_HEADER in this case (for ebch[i].pfragment) |
bkname | Bank to be found and copied from psrce to pevent |
Definition at line 16604 of file midas.cxx.
Create a Midas bank. The data pointer pdata must be used as an address to fill a bank. It is incremented with every value written to the bank and finally points to a location just after the last byte of the bank. It is then passed to the function bk_close() to finish the bank creation.
event | pointer to the data area |
name | of the bank, must be exactly 4 charaters |
type | type of bank, one of the Midas_Data_Types values defined in midas.h |
pdata | pointer to the data area of the newly created bank |
Definition at line 16561 of file midas.cxx.
Definition at line 16674 of file midas.cxx.
INT bk_find | ( | const BANK_HEADER * | pbkh, |
const char * | name, | ||
DWORD * | bklen, | ||
DWORD * | bktype, | ||
void ** | pdata | ||
) |
Finds a MIDAS bank of given name inside an event.
pbkh | pointer to current composed event |
name | bank name to look for |
bklen | number of elemtents in bank |
bktype | bank type, one of TID_xxx |
pdata | pointer to data area of bank, NULL if bank not found |
Definition at line 16952 of file midas.cxx.
Initializes an event for Midas banks structure. Before banks can be created in an event, bk_init() has to be called first.
event | pointer to the area of event |
Definition at line 16406 of file midas.cxx.
dox Initializes an event for Midas banks structure for large bank size (> 32KBytes) Before banks can be created in an event, bk_init32() has to be called first.
event | pointer to the area of event |
Definition at line 16469 of file midas.cxx.
Initializes an event for Midas banks structure for large bank size (> 32KBytes) which are aligned on 64-bit boundaries. Before banks can be created in an event, bk_init32a() has to be called first.
event | pointer to the area of event |
Definition at line 16482 of file midas.cxx.
Iterates through banks inside an event. The function can be used to enumerate all banks of an event. The returned pointer to the bank header has following structure:
where type is a TID_xxx value and data_size the size of the bank in bytes.
event | Pointer to data area of event. |
pbk | pointer to the bank header, must be NULL for the first call to this function. |
pdata | Pointer to the bank header, must be NULL for the first call to this function |
Definition at line 17046 of file midas.cxx.
dox
Definition at line 17067 of file midas.cxx.
Definition at line 17103 of file midas.cxx.
Extract the MIDAS bank name listing of an event. The bklist should be dimensioned with STRING_BANKLIST_MAX which corresponds to a max of BANKLIST_MAX banks (midas.h: 32 banks max).
event | pointer to current composed event |
bklist | returned ASCII string, has to be booked with STRING_BANKLIST_MAX. |
Definition at line 16840 of file midas.cxx.
Locates a MIDAS bank of given name inside an event.
event | pointer to current composed event |
name | bank name to look for |
pdata | pointer to data area of bank, NULL if bank not found |
Definition at line 16889 of file midas.cxx.
Returns the size of an event containing banks. The total size of an event is the value returned by bk_size() plus the size of the event header (sizeof(EVENT_HEADER)).
event | pointer to the area of event |
Definition at line 16495 of file midas.cxx.
dox Swaps bytes from little endian to big endian or vice versa for a whole event.
An event contains a flag which is set by bk_init() to identify the endian format of an event. If force is FALSE, this flag is evaluated and the event is only swapped if it is in the "wrong" format for this system. An event can be swapped to the "wrong" format on purpose for example by a front-end which wants to produce events in a "right" format for a back-end analyzer which has different byte ordering.
event | pointer to data area of event |
force | If TRUE, the event is always swapped, if FALSE, the event is only swapped if it is in the wrong format. |
Definition at line 17157 of file midas.cxx.
Definition at line 16499 of file midas.cxx.