FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fLmd.c File Reference
#include <fcntl.h>
#include <memory.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include "fLmd.h"

Go to the source code of this file.

Macros

#define OFFSET__ENTRIES   250000
 

Functions

int32_t fLmdWriteBuffer (sLmdControl *, char *, uint32_t)
 
uint32_t fLmdCleanup (sLmdControl *)
 
void fLmdOffsetResize (sLmdControl *, uint32_t)
 
uint32_t fLmdOffsetSet (sLmdControl *, uint32_t)
 
uint32_t fLmdOffsetRead (sLmdControl *)
 
uint32_t fLmdOffsetWrite (sLmdControl *)
 
lmdoff_t fLmdOffsetGet (sLmdControl *, uint32_t)
 
void fLmdOffsetElements (sLmdControl *, uint32_t, uint32_t *, uint32_t *)
 
uint32_t fLmdPutOpen (sLmdControl *pLmdControl, char *Filename, sMbsFileHeader *pBuffHead, uint32_t iBytes, uint32_t iOver, uint32_t iUseOffset, uint32_t iLargeFile)
 
uint32_t fLmdPutElement (sLmdControl *pLmdControl, sMbsHeader *pHeader)
 
uint32_t fLmdPutBuffer (sLmdControl *pLmdControl, sMbsHeader *pHeader, uint32_t Items)
 
uint32_t fLmdPutClose (sLmdControl *pLmdControl)
 
uint32_t fLmdConnectMbs (sLmdControl *pLmdControl, char *Nodename, uint32_t iPort, uint32_t *iBufferBytes)
 
uint32_t fLmdInitMbs (sLmdControl *pLmdControl, char *Nodename, uint32_t iMaxBytes, uint32_t iBuffers, uint32_t iStreams, uint32_t iPort, uint32_t iTimeout)
 
uint32_t fLmdCloseMbs (sLmdControl *pLmdControl)
 
uint32_t fLmdGetMbsEvent (sLmdControl *pLmdControl, sMbsHeader **event)
 
uint32_t fLmdGetMbsBuffer (sLmdControl *pLmdControl, sMbsBufferHeader *pBuffer, uint32_t iBytes, uint32_t *iElements, uint32_t *iBytesUsed)
 
uint32_t fLmdGetOpen (sLmdControl *pLmdControl, char *Filename, sMbsFileHeader *pBuffHead, uint32_t iBytes, uint32_t iUseOffset)
 
uint32_t fLmdGetBuffer (sLmdControl *pLmdControl, sMbsHeader *pMbsHeader, uint32_t iBytes, uint32_t *iElements, uint32_t *iBytesUsed)
 
uint32_t fLmdGetElement (sLmdControl *pLmdControl, uint32_t iEvent, sMbsHeader **event)
 
uint32_t fLmdGetClose (sLmdControl *pLmdControl)
 
int32_t fLmdReadBuffer (sLmdControl *pLmdControl, char *buffer, uint32_t bytes)
 
uint64_t fLmdGetBytesWritten (sLmdControl *pLmdControl)
 
uint32_t fLmdGetSwap (sLmdControl *pLmdControl)
 
void fLmdSetWrittenEndian (sLmdControl *pLmdControl, uint32_t iE)
 
uint32_t fLmdGetWrittenEndian (sLmdControl *pLmdControl)
 
sLmdControlfLmdAllocateControl ()
 
void fLmdPrintBufferHeader (uint32_t iVerbose, sMbsBufferHeader *pMbsBufferHeader)
 
void fLmdPrintFileHeader (uint32_t iVerbose, sMbsFileHeader *pMbsFileHeader)
 
void fLmdPrintHeader (uint32_t iVerbose, sMbsHeader *pMbsHeader)
 
void fLmdPrintEvent (uint32_t iVerbose, sMbsEventHeader *pMbsEventHeader)
 
void fLmdPrintControl (uint32_t iVerbose, sLmdControl *pLmdControl)
 
void fLmdSwap4 (uint32_t *array, uint32_t items)
 
void fLmdSwap8 (uint64_t *array, uint32_t items)
 

Macro Definition Documentation

#define OFFSET__ENTRIES   250000

Definition at line 107 of file fLmd.c.

Function Documentation

sLmdControl* fLmdAllocateControl ( )

Definition at line 1017 of file fLmd.c.

uint32_t fLmdCleanup ( sLmdControl pLmdControl)

Definition at line 955 of file fLmd.c.

uint32_t fLmdCloseMbs ( sLmdControl pLmdControl)

Definition at line 442 of file fLmd.c.

uint32_t fLmdConnectMbs ( sLmdControl pLmdControl,
char *  Nodename,
uint32_t  iPort,
uint32_t iBufferBytes 
)

Definition at line 338 of file fLmd.c.

uint32_t fLmdGetBuffer ( sLmdControl pLmdControl,
sMbsHeader pMbsHeader,
uint32_t  iBytes,
uint32_t iElements,
uint32_t iBytesUsed 
)

Definition at line 665 of file fLmd.c.

uint64_t fLmdGetBytesWritten ( sLmdControl pLmdControl)

Definition at line 940 of file fLmd.c.

uint32_t fLmdGetClose ( sLmdControl pLmdControl)

Definition at line 912 of file fLmd.c.

uint32_t fLmdGetElement ( sLmdControl pLmdControl,
uint32_t  iEvent,
sMbsHeader **  event 
)

Definition at line 792 of file fLmd.c.

uint32_t fLmdGetMbsBuffer ( sLmdControl pLmdControl,
sMbsBufferHeader pBuffer,
uint32_t  iBytes,
uint32_t iElements,
uint32_t iBytesUsed 
)

Definition at line 484 of file fLmd.c.

uint32_t fLmdGetMbsEvent ( sLmdControl pLmdControl,
sMbsHeader **  event 
)

Definition at line 463 of file fLmd.c.

uint32_t fLmdGetOpen ( sLmdControl pLmdControl,
char *  Filename,
sMbsFileHeader pBuffHead,
uint32_t  iBytes,
uint32_t  iUseOffset 
)

Definition at line 566 of file fLmd.c.

uint32_t fLmdGetSwap ( sLmdControl pLmdControl)

Definition at line 987 of file fLmd.c.

uint32_t fLmdGetWrittenEndian ( sLmdControl pLmdControl)

Definition at line 1007 of file fLmd.c.

uint32_t fLmdInitMbs ( sLmdControl pLmdControl,
char *  Nodename,
uint32_t  iMaxBytes,
uint32_t  iBuffers,
uint32_t  iStreams,
uint32_t  iPort,
uint32_t  iTimeout 
)

Definition at line 405 of file fLmd.c.

void fLmdOffsetElements ( sLmdControl pLmdControl,
uint32_t  bytes,
uint32_t elements,
uint32_t used 
)

Definition at line 1025 of file fLmd.c.

lmdoff_t fLmdOffsetGet ( sLmdControl pLmdControl,
uint32_t  index 
)

Definition at line 1173 of file fLmd.c.

uint32_t fLmdOffsetRead ( sLmdControl pLmdControl)

Definition at line 1059 of file fLmd.c.

void fLmdOffsetResize ( sLmdControl pLmdControl,
uint32_t  firstValue 
)

Definition at line 1184 of file fLmd.c.

uint32_t fLmdOffsetSet ( sLmdControl pLmdControl,
uint32_t  lwords 
)

Definition at line 1156 of file fLmd.c.

uint32_t fLmdOffsetWrite ( sLmdControl pLmdControl)

Definition at line 1116 of file fLmd.c.

void fLmdPrintBufferHeader ( uint32_t  iVerbose,
sMbsBufferHeader pMbsBufferHeader 
)

Definition at line 1228 of file fLmd.c.

void fLmdPrintControl ( uint32_t  iVerbose,
sLmdControl pLmdControl 
)

Definition at line 1284 of file fLmd.c.

void fLmdPrintEvent ( uint32_t  iVerbose,
sMbsEventHeader pMbsEventHeader 
)

Definition at line 1271 of file fLmd.c.

void fLmdPrintFileHeader ( uint32_t  iVerbose,
sMbsFileHeader pMbsFileHeader 
)

Definition at line 1244 of file fLmd.c.

void fLmdPrintHeader ( uint32_t  iVerbose,
sMbsHeader pMbsHeader 
)

Definition at line 1262 of file fLmd.c.

uint32_t fLmdPutBuffer ( sLmdControl pLmdControl,
sMbsHeader pHeader,
uint32_t  Items 
)

Definition at line 257 of file fLmd.c.

uint32_t fLmdPutClose ( sLmdControl pLmdControl)

Definition at line 307 of file fLmd.c.

uint32_t fLmdPutElement ( sLmdControl pLmdControl,
sMbsHeader pHeader 
)

Definition at line 190 of file fLmd.c.

uint32_t fLmdPutOpen ( sLmdControl pLmdControl,
char *  Filename,
sMbsFileHeader pBuffHead,
uint32_t  iBytes,
uint32_t  iOver,
uint32_t  iUseOffset,
uint32_t  iLargeFile 
)

Definition at line 110 of file fLmd.c.

int32_t fLmdReadBuffer ( sLmdControl pLmdControl,
char *  buffer,
uint32_t  bytes 
)

Definition at line 923 of file fLmd.c.

void fLmdSetWrittenEndian ( sLmdControl pLmdControl,
uint32_t  iE 
)

Definition at line 997 of file fLmd.c.

void fLmdSwap4 ( uint32_t array,
uint32_t  items 
)

Definition at line 1298 of file fLmd.c.

void fLmdSwap8 ( uint64_t *  array,
uint32_t  items 
)

Definition at line 1310 of file fLmd.c.

int32_t fLmdWriteBuffer ( sLmdControl pLmdControl,
char *  buffer,
uint32_t  bytes 
)

Definition at line 931 of file fLmd.c.