GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > TRD / V0-0-0

Constituent: trd     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

TRD_row.c File Reference

Facilities to manipulate TRD (turbo-reset database) database entries. More...

#include <ctype.h>
#include <string.h>
#include "MDB/MDB_pubdefs.h"
#include "PBS/FFS.ih"
#include "TRD/TRD_msgs.h"
#include "TRD_prvdefs.h"

Include dependency graph for TRD_row.c:


Functions

static unsigned int validRoutineName (const char *rtn, const char *fnc)
 Validate a routine name.
static int validRowHandle (TRD_Control *tcb, TRD_Row *row, const char *fnc)
 Validate a row handle.
unsigned int TRD_rowCreate (TRD_Row **hnd, const char *rtn, unsigned short fmt, unsigned short len, const void *dat)
 Create a row in the database.
unsigned int TRD_rowDelete (TRD_Row *row)
 Delete a row in the database.
unsigned int TRD_rowModifyData (TRD_Row *row, unsigned short fmt, unsigned short len, const void *dat)
 Modify a row in the database.

Detailed Description

Facilities to manipulate TRD (turbo-reset database) database entries.

CVS $Id: TRD_row.c,v 1.1.1.1 2008/10/03 01:04:33 apw Exp $
Author:
A.P.Waite
TRD_row.c provides facilities to manipulate TRD (turbo-reset database) database entries.

Function Documentation

unsigned int TRD_rowCreate TRD_Row **  hnd,
const char *  rtn,
unsigned short  fmt,
unsigned short  len,
const void *  dat
 

Create a row in the database.

Parameters:
hnd (in/out) Row handle
rtn (in) Name of a callback routine
fmt (in) Format of data to follow
len (in) Length (bytes) of data to follow
dat (in) Data
TRD_rowCreate() creates a new row in the database.

unsigned int TRD_rowDelete TRD_Row row  ) 
 

Delete a row in the database.

Parameters:
row (in) Row (handle) to delete
TRD_rowDelete() deletes an existing row in the database.

unsigned int TRD_rowModifyData TRD_Row row,
unsigned short  fmt,
unsigned short  len,
const void *  dat
 

Modify a row in the database.

Parameters:
row (in) Row handle
fmt (in) Format of data to follow
len (in) Length (bytes) of data to follow
dat (in) Data
TRD_rowModifyData() modifies (replaces) the data stored with a database row.

static unsigned int validRoutineName const char *  rtn,
const char *  fnc
[static]
 

Validate a routine name.

Parameters:
rtn (in) Routine name
fnc (in) Name of calling routine
Return values:
TRD_SUCCESS Success
x Otherwise
validRoutineName() validates a routine name

static int validRowHandle TRD_Control tcb,
TRD_Row row,
const char *  fnc
[static]
 

Validate a row handle.

Parameters:
tcb (in) TRD control block
row (in) TRD database row handle
fnc (in) Name of calling routine
Return values:
-1 Row handle is invalid
x Index of database entry
validRowHandle() validates a TRD database row handle


Generated on Fri Oct 3 01:18:30 2008 by  doxygen 1.4.4