GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FMX / V4-0-15 > fmxx / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

Defines | Typedefs | Functions | Variables
FMX_print.c File Reference

Assorted print routines. More...

#include <stdio.h>
#include <string.h>
#include <FMX/FMX_msgs.h>
#include <FMX/FMX_pubdefs.h>
#include <MDB/MDB_pubdefs.h>
#include <FMX_prvdefs.h>
#include <FMX_prtdefs.h>

Defines

#define FMX_COL_DEVICE_TABLE   (4)
#define FMX_COL_FILETYPE_TABLE   (5)
#define FMX_COL_HOST_TABLE_FULL   (5)
#define FMX_COL_HOST_TABLE_DEFAULT   (3)
#define FMX_COL_INSTRUMENT_TABLE   (6)
#define FMX_COL_NODE_TABLE   (3)
#define FMX_COL_TAG_TABLE   (3)
#define FMX_MAX_COLUMN   (256)

Typedefs

typedef unsigned int FMX_cb_PrintEnum (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)

Functions

static unsigned int printDeviceTable (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)
 Print out the device enumeration table.
static unsigned int printFiletypeTable (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)
 Print out the filetype enumeration table.
static unsigned int printHostTable (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)
 Print out the host enumeration table.
static unsigned int printInstrumentTable (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)
 Print out the instrument enumeration table.
static unsigned int printNodeTable (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)
 Print out the node enumeration table.
static unsigned int printTagTable (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)
 Print out the tag enumeration table.
static void FMX_printTitles (unsigned int ncol, const char *titles[], unsigned int widths[])
 Print out column titles.
unsigned int FMX_printConnect (FMX_Connection *ucb)
 Print out connection details.
unsigned int FMX_printEnumTable (FMX_Connection *ucb, FMX_EnumTableList tbl, unsigned int opt)
 Print out one of the enumerated tables.

Variables

FMX_cb_PrintEnum * printEnum [FMX_L_ENUM_TABLES]
static const char * s__unknown_ = "<unknown>"
 The string "<unknown>".
static const char * s_Address = "Address"
 The string "Address".
static const char * s_Board = "Board"
 The string "Board".
static const char * s_Comment = "Comment"
 The string "Comment".
static const char * s_compound = "compound"
 The string "compound".
static const char * s_cpu = "cpu"
 The string "cpu".
static const char * s_development = "development"
 The string "development".
static const char * s_Dir = "Dir"
 The string "Dir".
static const char * s_Group = "Group"
 The string "Group".
static const char * s_HostID = "HostID"
 The string "HostID".
static const char * s_Idx = "Idx"
 The string "Idx".
static const char * s_Location = "Location"
 The string "Location".
static const char * s_Master = "Master"
 The string "Master".
static const char * s_module = "module"
 The string "module".
static const char * s_N = "N"
 The string "N".
static const char * s_Name = "Name"
 The string "Name".
static const char * s_NULL = "NULL"
 The string "NULL".
static const char * s_persistent = "persistent"
 The string "persistent".
static const char * s_Port = "Port"
 The string "Port".
static const char * s_production = "production"
 The string "production".
static const char * s_Proxy = "Proxy"
 The string "Proxy".
static const char * s_sib = "sib"
 The string "sib".
static const char * s_simple = "simple"
 The string "simple".
static const char * s_Towers = "Towers"
 The string "Towers".
static const char * s_Type = "Type"
 The string "Type".
static const char * s_volatile = "volatile"
 The string "volatile".
static const char * s_VxWorks = "VxWorks"
 The string "VxWorks".
static const char * s_Y = "Y"
 The string "Y".

Detailed Description

Assorted print routines.

CVS $Id: FMX_print.c,v 1.2 2011/03/25 20:42:51 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int FMX_printConnect ( FMX_Connection ucb)
unsigned int FMX_printEnumTable ( FMX_Connection ucb,
FMX_EnumTableList  tbl,
unsigned int  opt 
)

Print out one of the enumerated tables.

Parameters:
ucb(in) Connection handle
tbl(in) Table to print
opt(in) Print options
Return values:
FMX_SUCCESSSuccess
FMX_UCBNOTInvalid user connection block

Referenced by FMX_showDevice(), FMX_showFiletype(), FMX_showHost(), FMX_showInstrument(), FMX_showNode(), and FMX_showTag().

static void FMX_printTitles ( unsigned int  ncol,
const char *  titles[],
unsigned int  widths[] 
) [static]

Print out column titles.

Parameters:
ncol(in) Number of columns
titles(in) Title strings
widths(in) Column widths

Referenced by printDeviceTable(), printFiletypeTable(), printHostTable(), printInstrumentTable(), printNodeTable(), and printTagTable().

static unsigned int printDeviceTable ( FMX_Connection ucb,
FMX_EnumTableList  tbl,
unsigned int  opt 
) [static]
static unsigned int printFiletypeTable ( FMX_Connection ucb,
FMX_EnumTableList  tbl,
unsigned int  opt 
) [static]
static unsigned int printHostTable ( FMX_Connection ucb,
FMX_EnumTableList  tbl,
unsigned int  opt 
) [static]
static unsigned int printInstrumentTable ( FMX_Connection ucb,
FMX_EnumTableList  tbl,
unsigned int  opt 
) [static]
static unsigned int printNodeTable ( FMX_Connection ucb,
FMX_EnumTableList  tbl,
unsigned int  opt 
) [static]

Print out the node enumeration table.

Parameters:
ucb(in) Connection handle
tbl(in) Table to print
opt(in) Print options

References _FMX_Node::address, _FMX_EnumTableControl::cnt, FMX_OPT_TITLE, FMX_printTitles(), FMX_TBL_UNINITIALIZED, _FMX_Node::index, _FMX_Node::name, _FMX_EnumTable::node, s_Idx, s_Name, _FMX_EnumTableControl::state, _FMX_Connection::table, and _FMX_EnumTableControl::top.

static unsigned int printTagTable ( FMX_Connection ucb,
FMX_EnumTableList  tbl,
unsigned int  opt 
) [static]

Variable Documentation

FMX_cb_PrintEnum* printEnum[FMX_L_ENUM_TABLES]