FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fLmd.h File Reference
#include "sMbs.h"
#include <stdio.h>
#include "f_stccomm.h"

Go to the source code of this file.

Classes

struct  sLmdControl
 

Macros

#define LMD__SUCCESS   0
 
#define LMD__FAILURE   1
 
#define LMD__CLOSE_ERR   3
 
#define GETLMD__NOFILE   2
 
#define GETLMD__NOLMDFILE   4
 
#define GETLMD__EOFILE   5
 
#define GETLMD__NOMORE   6
 
#define GETLMD__NOBUFFER   7
 
#define GETLMD__TOOBIG   8
 
#define GETLMD__OUTOF_RANGE   9
 
#define GETLMD__SIZE_ERROR   10
 
#define LMD__TIMEOUT   50
 
#define PUTLMD__FILE_EXIST   101
 
#define PUTLMD__TOOBIG   102
 
#define PUTLMD__OPEN_ERR   103
 
#define PUTLMD__EXCEED   104
 
#define PORT__TRANS   6000
 
#define PORT__STREAM   6002
 

Functions

sLmdControlfLmdAllocateControl ()
 
uint32_t fLmdPutOpen (sLmdControl *, char *, sMbsFileHeader *, uint32_t, uint32_t, uint32_t, uint32_t)
 
uint32_t fLmdPutElement (sLmdControl *, sMbsHeader *)
 
uint32_t fLmdPutBuffer (sLmdControl *, sMbsHeader *, uint32_t)
 
uint32_t fLmdPutClose (sLmdControl *)
 
uint32_t fLmdConnectMbs (sLmdControl *, char *, uint32_t, uint32_t *)
 
uint32_t fLmdInitMbs (sLmdControl *, char *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)
 
uint32_t fLmdGetMbsBuffer (sLmdControl *, sMbsBufferHeader *, uint32_t, uint32_t *, uint32_t *)
 
uint32_t fLmdGetMbsEvent (sLmdControl *, sMbsHeader **)
 
uint32_t fLmdCloseMbs (sLmdControl *)
 
uint32_t fLmdGetOpen (sLmdControl *, char *, sMbsFileHeader *, uint32_t, uint32_t)
 
uint32_t fLmdGetBuffer (sLmdControl *, sMbsHeader *, uint32_t, uint32_t *, uint32_t *)
 
int32_t fLmdReadBuffer (sLmdControl *, char *, uint32_t)
 
uint32_t fLmdGetElement (sLmdControl *, uint32_t, sMbsHeader **)
 
uint32_t fLmdGetClose (sLmdControl *)
 
void fLmdPrintBufferHeader (uint32_t, sMbsBufferHeader *)
 
void fLmdPrintFileHeader (uint32_t, sMbsFileHeader *)
 
void fLmdPrintHeader (uint32_t, sMbsHeader *)
 
void fLmdPrintEvent (uint32_t, sMbsEventHeader *)
 
void fLmdPrintControl (uint32_t, sLmdControl *)
 
void fLmdVerbose (sLmdControl *, uint32_t)
 
void fLmdSwap4 (uint32_t *, uint32_t)
 
void fLmdSwap8 (uint64_t *, uint32_t)
 
void fLmdSetWrittenEndian (sLmdControl *, uint32_t)
 
uint32_t fLmdGetWrittenEndian (sLmdControl *)
 
uint32_t fLmdGetSwap (sLmdControl *)
 
uint64_t fLmdGetBytesWritten (sLmdControl *)
 

Macro Definition Documentation

#define GETLMD__EOFILE   5

Definition at line 24 of file fLmd.h.

#define GETLMD__NOBUFFER   7

Definition at line 26 of file fLmd.h.

#define GETLMD__NOFILE   2

Definition at line 22 of file fLmd.h.

#define GETLMD__NOLMDFILE   4

Definition at line 23 of file fLmd.h.

#define GETLMD__NOMORE   6

Definition at line 25 of file fLmd.h.

#define GETLMD__OUTOF_RANGE   9

Definition at line 28 of file fLmd.h.

#define GETLMD__SIZE_ERROR   10

Definition at line 29 of file fLmd.h.

#define GETLMD__TOOBIG   8

Definition at line 27 of file fLmd.h.

#define LMD__CLOSE_ERR   3

Definition at line 21 of file fLmd.h.

#define LMD__FAILURE   1

Definition at line 20 of file fLmd.h.

#define LMD__SUCCESS   0

Definition at line 19 of file fLmd.h.

#define LMD__TIMEOUT   50

Definition at line 30 of file fLmd.h.

#define PORT__STREAM   6002

Definition at line 36 of file fLmd.h.

#define PORT__TRANS   6000

Definition at line 35 of file fLmd.h.

#define PUTLMD__EXCEED   104

Definition at line 34 of file fLmd.h.

#define PUTLMD__FILE_EXIST   101

Definition at line 31 of file fLmd.h.

#define PUTLMD__OPEN_ERR   103

Definition at line 33 of file fLmd.h.

#define PUTLMD__TOOBIG   102

Definition at line 32 of file fLmd.h.

Function Documentation

sLmdControl* fLmdAllocateControl ( )

Definition at line 1017 of file fLmd.c.

uint32_t fLmdCloseMbs ( sLmdControl )

Definition at line 442 of file fLmd.c.

uint32_t fLmdConnectMbs ( sLmdControl ,
char *  ,
uint32_t  ,
uint32_t  
)

Definition at line 338 of file fLmd.c.

uint32_t fLmdGetBuffer ( sLmdControl ,
sMbsHeader ,
uint32_t  ,
uint32_t ,
uint32_t  
)

Definition at line 665 of file fLmd.c.

uint64_t fLmdGetBytesWritten ( sLmdControl )

Definition at line 940 of file fLmd.c.

uint32_t fLmdGetClose ( sLmdControl )

Definition at line 912 of file fLmd.c.

uint32_t fLmdGetElement ( sLmdControl ,
uint32_t  ,
sMbsHeader **   
)

Definition at line 792 of file fLmd.c.

uint32_t fLmdGetMbsBuffer ( sLmdControl ,
sMbsBufferHeader ,
uint32_t  ,
uint32_t ,
uint32_t  
)

Definition at line 484 of file fLmd.c.

uint32_t fLmdGetMbsEvent ( sLmdControl ,
sMbsHeader **   
)

Definition at line 463 of file fLmd.c.

uint32_t fLmdGetOpen ( sLmdControl ,
char *  ,
sMbsFileHeader ,
uint32_t  ,
uint32_t   
)

Definition at line 566 of file fLmd.c.

uint32_t fLmdGetSwap ( sLmdControl )

Definition at line 987 of file fLmd.c.

uint32_t fLmdGetWrittenEndian ( sLmdControl )

Definition at line 1007 of file fLmd.c.

uint32_t fLmdInitMbs ( sLmdControl ,
char *  ,
uint32_t  ,
uint32_t  ,
uint32_t  ,
uint32_t  ,
uint32_t   
)

Definition at line 405 of file fLmd.c.

void fLmdPrintBufferHeader ( uint32_t  ,
sMbsBufferHeader  
)

Definition at line 1228 of file fLmd.c.

void fLmdPrintControl ( uint32_t  ,
sLmdControl  
)

Definition at line 1284 of file fLmd.c.

void fLmdPrintEvent ( uint32_t  ,
sMbsEventHeader  
)

Definition at line 1271 of file fLmd.c.

void fLmdPrintFileHeader ( uint32_t  ,
sMbsFileHeader  
)

Definition at line 1244 of file fLmd.c.

void fLmdPrintHeader ( uint32_t  ,
sMbsHeader  
)

Definition at line 1262 of file fLmd.c.

uint32_t fLmdPutBuffer ( sLmdControl ,
sMbsHeader ,
uint32_t   
)

Definition at line 257 of file fLmd.c.

uint32_t fLmdPutClose ( sLmdControl )

Definition at line 307 of file fLmd.c.

uint32_t fLmdPutElement ( sLmdControl ,
sMbsHeader  
)

Definition at line 190 of file fLmd.c.

uint32_t fLmdPutOpen ( sLmdControl ,
char *  ,
sMbsFileHeader ,
uint32_t  ,
uint32_t  ,
uint32_t  ,
uint32_t   
)

Definition at line 110 of file fLmd.c.

int32_t fLmdReadBuffer ( sLmdControl ,
char *  ,
uint32_t   
)

Definition at line 923 of file fLmd.c.

void fLmdSetWrittenEndian ( sLmdControl ,
uint32_t   
)

Definition at line 997 of file fLmd.c.

void fLmdSwap4 ( uint32_t ,
uint32_t   
)

Definition at line 1298 of file fLmd.c.

void fLmdSwap8 ( uint64_t *  ,
uint32_t   
)

Definition at line 1310 of file fLmd.c.

void fLmdVerbose ( sLmdControl ,
uint32_t   
)