GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions
fLmd.h File Reference
#include <stdio.h>
#include "sMbs.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 30 of file fLmd.h.

Referenced by f_evt_get_event(), fLmdGetBuffer(), and fLmdGetElement().

#define GETLMD__NOBUFFER   7

Definition at line 32 of file fLmd.h.

Referenced by f_evt_get_event(), and fLmdGetElement().

#define GETLMD__NOFILE   2

Definition at line 28 of file fLmd.h.

Referenced by fLmdGetOpen().

#define GETLMD__NOLMDFILE   4

Definition at line 29 of file fLmd.h.

Referenced by fLmdGetBuffer(), fLmdGetOpen(), and fLmdOffsetRead().

#define GETLMD__NOMORE   6

Definition at line 31 of file fLmd.h.

Referenced by f_evt_get_event(), and fLmdGetElement().

#define GETLMD__OUTOF_RANGE   9

Definition at line 34 of file fLmd.h.

Referenced by fLmdGetElement().

#define GETLMD__SIZE_ERROR   10

Definition at line 35 of file fLmd.h.

Referenced by fLmdGetElement().

#define GETLMD__TOOBIG   8

Definition at line 33 of file fLmd.h.

Referenced by fLmdGetElement().

#define LMD__CLOSE_ERR   3

Definition at line 27 of file fLmd.h.

Referenced by fLmdGetClose().

#define LMD__FAILURE   1
#define LMD__SUCCESS   0
#define LMD__TIMEOUT   50

Definition at line 36 of file fLmd.h.

Referenced by f_evt_get_event(), and fLmdGetMbsBuffer().

#define PORT__STREAM   6002

Definition at line 42 of file fLmd.h.

Referenced by fLmdCloseMbs(), fLmdConnectMbs(), and fLmdGetMbsBuffer().

#define PORT__TRANS   6000

Definition at line 41 of file fLmd.h.

Referenced by fLmdConnectMbs().

#define PUTLMD__EXCEED   104

Definition at line 40 of file fLmd.h.

Referenced by fLmdPutBuffer(), and fLmdPutElement().

#define PUTLMD__FILE_EXIST   101

Definition at line 37 of file fLmd.h.

Referenced by fLmdPutOpen().

#define PUTLMD__OPEN_ERR   103

Definition at line 39 of file fLmd.h.

Referenced by fLmdPutOpen().

#define PUTLMD__TOOBIG   102

Definition at line 38 of file fLmd.h.

Referenced by fLmdPutElement().

Function Documentation

sLmdControl* fLmdAllocateControl ( )

Definition at line 872 of file fLmd.c.

Referenced by f_evt_get_open(), and f_evt_put_open().

uint32_t fLmdCloseMbs ( sLmdControl )
uint32_t fLmdConnectMbs ( sLmdControl ,
char *  ,
uint32_t  ,
uint32_t *   
)
uint32_t fLmdGetBuffer ( sLmdControl ,
sMbsHeader ,
uint32_t  ,
uint32_t *  ,
uint32_t *   
)
uint64_t fLmdGetBytesWritten ( sLmdControl )
uint32_t fLmdGetClose ( sLmdControl )

Definition at line 789 of file fLmd.c.

References sLmdControl::fFile, fLmdCleanup(), LMD__CLOSE_ERR, and LMD__SUCCESS.

Referenced by f_evt_get_close(), fLmdGetOpen(), and fLmdPutClose().

uint32_t fLmdGetElement ( sLmdControl ,
uint32_t  ,
sMbsHeader **   
)
uint32_t fLmdGetMbsBuffer ( sLmdControl ,
sMbsBufferHeader ,
uint32_t  ,
uint32_t *  ,
uint32_t *   
)
uint32_t fLmdGetMbsEvent ( sLmdControl ,
sMbsHeader **   
)
uint32_t fLmdGetOpen ( sLmdControl ,
char *  ,
sMbsFileHeader ,
uint32_t  ,
uint32_t   
)
uint32_t fLmdGetSwap ( sLmdControl )

Definition at line 851 of file fLmd.c.

References sLmdControl::iSwap.

uint32_t fLmdGetWrittenEndian ( sLmdControl )
uint32_t fLmdInitMbs ( sLmdControl ,
char *  ,
uint32_t  ,
uint32_t  ,
uint32_t  ,
uint32_t  ,
uint32_t   
)
void fLmdPrintBufferHeader ( uint32_t  ,
sMbsBufferHeader  
)
void fLmdPrintControl ( uint32_t  ,
sLmdControl  
)
void fLmdPrintEvent ( uint32_t  ,
sMbsEventHeader  
)
void fLmdPrintFileHeader ( uint32_t  ,
sMbsFileHeader  
)
void fLmdPrintHeader ( uint32_t  ,
sMbsHeader  
)

Definition at line 1084 of file fLmd.c.

References sMbsHeader::iType, and sMbsHeader::iWords.

uint32_t fLmdPutBuffer ( sLmdControl ,
sMbsHeader ,
uint32_t   
)
uint32_t fLmdPutClose ( sLmdControl )
uint32_t fLmdPutElement ( sLmdControl ,
sMbsHeader  
)
uint32_t fLmdPutOpen ( sLmdControl ,
char *  ,
sMbsFileHeader ,
uint32_t  ,
uint32_t  ,
uint32_t  ,
uint32_t   
)
int32_t fLmdReadBuffer ( sLmdControl ,
char *  ,
uint32_t   
)

Definition at line 800 of file fLmd.c.

References sLmdControl::fFile.

Referenced by fLmdGetBuffer(), fLmdGetElement(), fLmdGetOpen(), and fLmdOffsetRead().

void fLmdSetWrittenEndian ( sLmdControl ,
uint32_t   
)

Definition at line 858 of file fLmd.c.

References sMbsFileHeader::iWrittenEndian, and sLmdControl::pMbsFileHeader.

void fLmdSwap4 ( uint32_t *  ,
uint32_t   
)
void fLmdSwap8 ( uint64_t *  ,
uint32_t   
)

Definition at line 1132 of file fLmd.c.

Referenced by fLmdGetOpen(), and fLmdOffsetRead().

void fLmdVerbose ( sLmdControl ,
uint32_t   
)