GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CLI / V0-1-2 > cli / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

CLI_dump.c File Reference

The implicit command verb "syntax". More...

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CLI/CLI_pubdefs.h>
#include <MDB/MDB_pubdefs.h>
#include <CLI_prvdefs.h>

Defines

#define CLI_L_OPTS   4
#define CLI_L_TYPE   6

Functions

static void dumpSyntax (CLI_Syntax *sntx)
 Dump a complete syntax definition.
static void dumpOptions (unsigned short opts)
 Dump a list of options.
static void dumpTypes (unsigned short type, CLI_KeyList *list)
 Dump a list of types.
unsigned int CLI_dumpSyntax (CLI_Control *ctl, void *user)
 Dump out the syntax definitions.
void CLI_dumpKeyList (CLI_KeyList *list)
 Dump a list of keywords.
void CLI_dumpParse (CLI_Control *ctl)
 Dump the results of a parse.


Detailed Description

The implicit command verb "syntax".

CVS $Id: CLI_dump.c,v 1.6 2011/03/25 00:51:25 apw Exp $
Author:
A.P.Waite

Function Documentation

void CLI_dumpKeyList ( CLI_KeyList list  ) 

Dump a list of keywords.

Parameters:
list (Opaque) pointer to keyword list

References _CLI_KeyList::id, _CLI_KeyList::key, _CLI_KeyList::name, _CLI_KeyDef::next, and _CLI_KeyDef::text.

void CLI_dumpParse ( CLI_Control ctl  ) 

unsigned int CLI_dumpSyntax ( CLI_Control ctl,
void *  user 
)

Dump out the syntax definitions.

Dump a command syntax (either a named syntax, or all known syntaxes).

References dumpSyntax(), and _CLI_Control::syntax.

Referenced by CLI_createSyntax().

static void dumpOptions ( unsigned short  opts  )  [static]

Dump a list of options.

Parameters:
opts Options word (a mask of options)

Referenced by dumpSyntax().

static void dumpSyntax ( CLI_Syntax sntx  )  [static]

static void dumpTypes ( unsigned short  type,
CLI_KeyList list 
) [static]

Dump a list of types.

Parameters:
type Type word (a mask of types)
list A keyword list (if available)

References _CLI_KeyList::key, _CLI_KeyDef::next, and _CLI_KeyDef::text.

Referenced by dumpSyntax().


Generated on Tue Nov 29 16:30:28 2011 by  doxygen 1.5.8