parser.h File Reference

#include "std_cpp_includes.hh"
#include "except.hh"
#include "utils.h"
#include "iwave_fopen.h"

Go to the source code of this file.

Namespaces

namespace  RVL

Classes

struct  s_WORD
struct  s_KEYVAL
struct  s_PSLINK
struct  s_PARARRAY

Typedefs

typedef s_WORD WORD
typedef s_KEYVAL KEYVAL
typedef s_PSLINK PSLINK
typedef s_PARARRAY PARARRAY

Functions

WORDword_new ()
void word_delete (WORD **w)
void word_reset (WORD *w)
int word_assign (WORD *w, const char *str, int len)
int word_whitechar (char c)
int word_copy (WORD *tgt, WORD src)
int word_read (WORD *w, char **src)
KEYVALkv_new ()
void kv_delete (KEYVAL **pair)
void kv_reset (KEYVAL *pair)
int kv_check (KEYVAL src)
int kv_copy (KEYVAL *tgt, KEYVAL src)
int kv_read (KEYVAL *kv, char **src)
void kv_print (KEYVAL kv)
void kv_fprint (KEYVAL kv, FILE *f)
PSLINKpslink_new ()
void pslink_delete (PSLINK **p)
void pslink_setnull (PSLINK **p)
int pslink_front (PSLINK **p)
int pslink_back (PSLINK **p)
int pslink_read (PSLINK **p, char **str)
int pslink_findfirst (PSLINK *par, WORD skey, WORD *sval)
int pslink_findlast (PSLINK *par, WORD skey, WORD *sval)
int pslink_setfirst (PSLINK **par, WORD skey, WORD sval)
int pslink_setlast (PSLINK **par, WORD skey, WORD sval)
PARARRAYps_new ()
 Default - no keyval pairs, only one link.
void ps_delete (PARARRAY **p)
 Destroys all links, frees all memory associated with object, returns *p = NULL.
int ps_setnull (PARARRAY *parr)
 Deletes, reinitializes list - provided for backward compatibility.
int ps_printall (PARARRAY parr, FILE *stream)
 Write contents of PARARRAY to stream.
int ps_printall (PARARRAY parr, ostream &stream)
int ps_createfp (PARARRAY *parr, FILE *fp)
 Creates parameter array (STORAGE ALLOCATION) from by reading from file pointer.
int ps_createfile_fproto (PARARRAY *parr, FILE **stream, const char *proto, const char *filename)
 Creates parameter array (STORAGE ALLOCATION) from file.
int ps_createfile (PARARRAY *parr, const char *filename)
 Creates parameter array (STORAGE ALLOCATION) from file.
int ps_createargs (PARARRAY *parr, int argc, char **argv)
 Creates parameter array (STORAGE ALLOCATION) from command-line argument list NOTE: if "par" is amongst keys, create additional parameters (key=value pairs) from file whose name is value for "par".
int ps_copy (PARARRAY **tgt, PARARRAY src)
 Full copy function: lhs = rhs (STORAGE (RE)ALLOCATED).
int ps_ffcstring (PARARRAY parr, const char *key, char **p)
int ps_ffchar (PARARRAY parr, const char *key, char *p)
int ps_ffshort (PARARRAY parr, const char *key, short *p)
int ps_ffint (PARARRAY parr, const char *key, int *p)
int ps_fflong (PARARRAY parr, const char *key, long *p)
int ps_ffushort (PARARRAY parr, const char *key, unsigned short *p)
int ps_ffuint (PARARRAY parr, const char *key, unsigned int *p)
int ps_ffulong (PARARRAY parr, const char *key, unsigned long *p)
int ps_fffloat (PARARRAY parr, const char *key, float *p)
int ps_ffdouble (PARARRAY parr, const char *key, double *p)
int ps_ffreal (PARARRAY parr, const char *key, ireal *p)
int ps_flcstring (PARARRAY parr, const char *key, char **p)
int ps_flchar (PARARRAY parr, const char *key, char *p)
int ps_flshort (PARARRAY parr, const char *key, short *p)
int ps_flint (PARARRAY parr, const char *key, int *p)
int ps_fllong (PARARRAY parr, const char *key, long *p)
int ps_flushort (PARARRAY parr, const char *key, unsigned short *p)
int ps_fluint (PARARRAY parr, const char *key, unsigned int *p)
int ps_flulong (PARARRAY parr, const char *key, unsigned long *p)
int ps_flfloat (PARARRAY parr, const char *key, float *p)
int ps_fldouble (PARARRAY parr, const char *key, double *p)
int ps_flreal (PARARRAY parr, const char *key, ireal *p)
int ps_sfcstring (PARARRAY parr, const char *key, const char *val)
int ps_sfchar (PARARRAY parr, const char *key, char p)
int ps_sfshort (PARARRAY parr, const char *key, short p)
int ps_sfint (PARARRAY parr, const char *key, int p)
int ps_sflong (PARARRAY parr, const char *key, long p)
int ps_sfushort (PARARRAY parr, const char *key, unsigned short p)
int ps_sfuint (PARARRAY parr, const char *key, unsigned int p)
int ps_sfulong (PARARRAY parr, const char *key, unsigned long p)
int ps_sffloat (PARARRAY parr, const char *key, float p)
int ps_sfdouble (PARARRAY parr, const char *key, double p)
int ps_sfreal (PARARRAY parr, const char *key, ireal p)
int ps_slcstring (PARARRAY parr, const char *key, const char *val)
int ps_slchar (PARARRAY parr, const char *key, char p)
int ps_slshort (PARARRAY parr, const char *key, short p)
int ps_slint (PARARRAY parr, const char *key, int p)
int ps_sllong (PARARRAY parr, const char *key, long p)
int ps_slushort (PARARRAY parr, const char *key, unsigned short p)
int ps_sluint (PARARRAY parr, const char *key, unsigned int p)
int ps_slulong (PARARRAY parr, const char *key, unsigned long p)
int ps_slfloat (PARARRAY parr, const char *key, float p)
int ps_sldouble (PARARRAY parr, const char *key, double p)
int ps_slreal (PARARRAY parr, const char *key, ireal p)
bool RVL::parse (PARARRAY const &par, std::string name, string &val)
bool RVL::parse (PARARRAY const &par, std::string name, char &val)
bool RVL::parse (PARARRAY const &par, std::string name, short &val)
bool RVL::parse (PARARRAY const &par, std::string name, int &val)
bool RVL::parse (PARARRAY const &par, std::string name, long &val)
bool RVL::parse (PARARRAY const &par, std::string name, unsigned short &val)
bool RVL::parse (PARARRAY const &par, std::string name, unsigned int &val)
bool RVL::parse (PARARRAY const &par, std::string name, unsigned long &val)
bool RVL::parse (PARARRAY const &par, std::string name, float &val)
bool RVL::parse (PARARRAY const &par, std::string name, double &val)
bool RVL::parse (PARARRAY const &par, std::string name, bool &val)
template<typename T>
RVL::valparse (PARARRAY const &par, std::string name, T def)
 assigns default if returns false
template<typename T>
RVL::valparse (PARARRAY const &par, std::string name)
 throws exception if returns false


Typedef Documentation

typedef struct s_WORD WORD

typedef struct s_KEYVAL KEYVAL

typedef struct s_PSLINK PSLINK

typedef struct s_PARARRAY PARARRAY


Function Documentation

WORD* word_new (  ) 

void word_delete ( WORD **  w  ) 

void word_reset ( WORD w  ) 

int word_assign ( WORD w,
const char *  str,
int  len 
)

int word_whitechar ( char  c  ) 

int word_copy ( WORD tgt,
WORD  src 
)

int word_read ( WORD w,
char **  src 
)

KEYVAL* kv_new (  ) 

void kv_delete ( KEYVAL **  pair  ) 

void kv_reset ( KEYVAL pair  ) 

int kv_check ( KEYVAL  src  ) 

int kv_copy ( KEYVAL tgt,
KEYVAL  src 
)

int kv_read ( KEYVAL kv,
char **  src 
)

void kv_print ( KEYVAL  kv  ) 

void kv_fprint ( KEYVAL  kv,
FILE *  f 
)

PSLINK* pslink_new (  ) 

void pslink_delete ( PSLINK **  p  ) 

void pslink_setnull ( PSLINK **  p  ) 

int pslink_front ( PSLINK **  p  ) 

int pslink_back ( PSLINK **  p  ) 

int pslink_read ( PSLINK **  p,
char **  str 
)

int pslink_findfirst ( PSLINK par,
WORD  skey,
WORD sval 
)

int pslink_findlast ( PSLINK par,
WORD  skey,
WORD sval 
)

int pslink_setfirst ( PSLINK **  par,
WORD  skey,
WORD  sval 
)

int pslink_setlast ( PSLINK **  par,
WORD  skey,
WORD  sval 
)


Generated on 5 Jan 2017 for IWAVEBASE by  doxygen 1.4.7