Doxygen Documentation

Main Index

Package Index

Package:

CLI

Version:

V0-0-5

Marked:

(not marked)

Constituent:

cli

Tag:

linux-gcc


Interface   Compound List   File List   Compound Members   File Members  

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.

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

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

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


Detailed Description

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

CVS $Id: CLI_parseValue.c,v 1.3 2003/12/12 06:13:49 apw Exp $
Author:
A.P.Waite - apw@slac.stanford.edu
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  type,
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 Thu Dec 11 22:17:31 2003 by doxygen 1.3.3