Main Page   Interface   Data Structures   File List   Data Fields   Globals  

CLI_parseValue.c File Reference

Parses a value (a parameter or the value of a qualifier). More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "CLI/CLI_pubdefs.h"
#include "CLI_prvdefs.h"

Functions

unsigned int CLI_saveValue (char *, char *, unsigned short, CLI_KeyList *, CLI_Valu **)
 Save a parsed value. More...

unsigned int CLI_validateKey (char *, char *, CLI_KeyList *, CLI_KeyDef **)
 Find a keyword in a list of keywords. More...

void CLI_clearValueList (CLI_Valu *)
 Clear out a value list. More...

unsigned int CLI_parseValue (char *tbeg, char *tend, unsigned short type, CLI_KeyList *keys, CLI_Valu **list)
 Parse a command line value. More...


Detailed Description

Parses a value (a parameter or the value of a qualifier).

CLI_parseValue.c parses the input line for a value. This might be a parameter of the value of a qualifier.


Function Documentation

void CLI_clearValueList CLI_Valu   head [static]
 

Clear out a value list.

Parameters:
head  Head of list of values

unsigned int CLI_parseValue char *    tbeg,
char *    tend,
unsigned short    type,
CLI_KeyList   keys,
CLI_Valu **    list
 

Parse a command line value.

Parameters:
tbeg  First character
tend  (One past) the last character
type  Type constraints on value(s)
keys  Keyword list (if needed)
list  Location where the value list should be saved
Returns:
Status code

unsigned int CLI_saveValue char *    tbeg,
char *    tend,
unsigned    short,
CLI_KeyList   keys,
CLI_Valu **    last
[static]
 

Save a parsed value.

Parameters:
tbeg  Start of value to save (token begin)
tend  End of value to save plus one (token end)
type  Type constraints on value
keys  Keyword list
last  Last value structure in value list
Returns:
Status code

unsigned int CLI_validateKey char *    tbeg,
char *    tend,
CLI_KeyList   list,
CLI_KeyDef **    key
[static]
 

Find a keyword in a list of keywords.

Parameters:
list  Head of the list of keywords
tbeg  Start of value to save (token begin)
tend  End of value to save plus one (token end)
key  Valid key definition (returned)
Returns:
Status code


Generated on Tue Nov 5 12:16:22 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002