GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FMX / V4-0-15 > fmxx / sun-gcc
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". |
Assorted print routines.
CVS $Id: FMX_print.c,v 1.2 2011/03/25 20:42:51 apw Exp $
unsigned int FMX_printConnect | ( | FMX_Connection * | ucb | ) |
Print out connection details.
ucb | (in) Connection handle |
References _FMX_Connection::access, _FMX_EnumTableControl::cnt, FMX_ENUM_TABLE_HOST, FMX_TBL_UNINITIALIZED, _FMX_EnumTable::host, _FMX_Connection::host, _FMX_Host::master, _FMX_Connection::mysql, _FMX_Host::name, _FMX_Connection::next, _FMX_Connection::role, s__unknown_, _FMX_Connection::self, _FMX_EnumTableControl::state, _FMX_Connection::table, _FMX_EnumTableControl::top, and _FMX_Connection::user.
Referenced by FMX_showConnect().
unsigned int FMX_printEnumTable | ( | FMX_Connection * | ucb, |
FMX_EnumTableList | tbl, | ||
unsigned int | opt | ||
) |
Print out one of the enumerated tables.
ucb | (in) Connection handle |
tbl | (in) Table to print |
opt | (in) Print options |
FMX_SUCCESS | Success |
FMX_UCBNOT | Invalid 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.
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] |
Print out the device enumeration table.
ucb | (in) Connection handle |
tbl | (in) Table to print |
opt | (in) Print options |
References _FMX_Device::board, _FMX_EnumTableControl::cnt, _FMX_EnumTable::device, FMX_DVC_BRD_CPU, FMX_DVC_BRD_SIB, FMX_DVC_TYP_PERSISTENT, FMX_DVC_TYP_VOLATILE, FMX_OPT_TITLE, FMX_printTitles(), FMX_TBL_UNINITIALIZED, _FMX_Device::index, _FMX_Device::name, s__unknown_, s_cpu, s_Idx, s_Name, s_persistent, s_sib, s_Type, s_volatile, _FMX_EnumTableControl::state, _FMX_Connection::table, _FMX_EnumTableControl::top, and _FMX_Device::type.
static unsigned int printFiletypeTable | ( | FMX_Connection * | ucb, |
FMX_EnumTableList | tbl, | ||
unsigned int | opt | ||
) | [static] |
Print out the filetype enumeration table.
ucb | (in) Connection handle |
tbl | (in) Table to print |
opt | (in) Print options |
References _FMX_EnumTableControl::cnt, _FMX_Filetype::comment, _FMX_Filetype::dir, _FMX_EnumTable::filetype, FMX_GRP_COMPOUND, FMX_GRP_MODULE, FMX_GRP_SIMPLE, FMX_OPT_TITLE, FMX_printTitles(), FMX_TBL_UNINITIALIZED, _FMX_Filetype::group, _FMX_Filetype::index, _FMX_Filetype::name, s__unknown_, s_compound, s_Dir, s_Group, s_Idx, s_module, s_Name, s_simple, _FMX_EnumTableControl::state, _FMX_Connection::table, and _FMX_EnumTableControl::top.
static unsigned int printHostTable | ( | FMX_Connection * | ucb, |
FMX_EnumTableList | tbl, | ||
unsigned int | opt | ||
) | [static] |
Print out the host enumeration table.
ucb | (in) Connection handle |
tbl | (in) Table to print |
opt | (in) Print options |
References _FMX_EnumTableControl::cnt, FMX_OPT_FULL, FMX_OPT_TITLE, FMX_printTitles(), FMX_TBL_INITIALIZED, _FMX_EnumTable::host, _FMX_Host::index, _FMX_Host::master, _FMX_Host::name, _FMX_Host::port, _FMX_Host::proxy, s_Idx, s_Master, s_Name, s_Proxy, _FMX_EnumTableControl::state, _FMX_Connection::table, and _FMX_EnumTableControl::top.
static unsigned int printInstrumentTable | ( | FMX_Connection * | ucb, |
FMX_EnumTableList | tbl, | ||
unsigned int | opt | ||
) | [static] |
Print out the instrument enumeration table.
ucb | (in) Connection handle |
tbl | (in) Table to print |
opt | (in) Print options |
References _FMX_EnumTableControl::cnt, _FMX_Instrument::comment, FMX_OPT_TITLE, FMX_printTitles(), FMX_TBL_UNINITIALIZED, _FMX_Instrument::hdx, _FMX_Instrument::index, _FMX_EnumTable::instrument, _FMX_Instrument::location, _FMX_Instrument::name, s_HostID, s_Idx, s_Location, s_Name, s_Towers, _FMX_EnumTableControl::state, _FMX_Connection::table, _FMX_EnumTableControl::top, and _FMX_Instrument::towers.
static unsigned int printNodeTable | ( | FMX_Connection * | ucb, |
FMX_EnumTableList | tbl, | ||
unsigned int | opt | ||
) | [static] |
Print out the node enumeration table.
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] |
Print out the tag enumeration table.
ucb | (in) Connection handle |
tbl | (in) Table to print |
opt | (in) Print options |
References _FMX_EnumTableControl::cnt, FMX_OPT_TITLE, FMX_printTitles(), FMX_TAG_EMBEDDED, FMX_TAG_HOST, FMX_TBL_UNINITIALIZED, _FMX_Tag::index, _FMX_Tag::name, s__unknown_, s_Idx, s_N, s_Name, s_Y, _FMX_EnumTableControl::state, _FMX_Connection::table, _FMX_EnumTable::tag, _FMX_EnumTableControl::top, and _FMX_Tag::vxworks.
FMX_cb_PrintEnum* printEnum[FMX_L_ENUM_TABLES] |