WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
VarList.h
1#ifndef _WINC_VARLIST
2#define _WINC_VARLIST
3
4#include <WXP/GridSpec.h>
5#include <WXP/String.h>
6#include <WXP/VarSpec.h>
7#include <WXP/VarFile.h>
8#include <WXP/VarFileData.h>
9
10namespace WXP {
11 class VarList {
12 struct VarListItem {
13 int layer; // Layer of nesting
14 int dindex; // Data index
15 VarSpec data;
16 };
17
18 VarListItem *list;
19 int num;
20 int max;
21 int ind;
22 int plot;
23 char title[80];
24 String varfilename;
25 char delim;
26 char nest[10];
27 int n;
28
29 bool checkDelim( const char *data, int i );
30 int pushDelim( char d );
31 char popDelim();
32 char getLastDelim();
33 int printDelim();
34 int cleanData( char *data );
35
36 public:
37 VarList();
38 ~VarList();
39 int init();
40 int resize( int rmax );
41 int setFile( const char *file );
42 int searchFile( const char *var, String &data );
43 int decode( const char *str );
44 int decode( VarFileData &data );
45 int rewind();
46 int next();
47 bool done();
48 inline int getNum(){ return num; };
49 int get( int i, VarSpec &vspec );
50 int get( int i, GridSpec &gspec );
51 int setPlot(int i, int rplot);
52 int getType();
53 int getType(int i);
54 int getLayer();
55 int getLayer(int i);
56 int setDataIndex(int i, int val);
57 int getDataIndex();
58 int getDataIndex(int i);
59 int getString( int i, String &str );
60 bool isGroup();
61 bool isGroup(int i);
62 bool isParam();
63 bool isParam(int i);
64 bool isData();
65 bool isData(int i);
66 bool isVect();
67 bool isVect(int i);
68 bool isFunction();
69 bool isFunction(int i);
70 bool isVectFunction();
71 bool isVectFunction(int i);
72 bool isVectFunction(const char *str);
73 bool isPlot();
74 bool isPlot(int i);
75 bool isPanel();
76 bool isPanel(int i);
77 bool isMap();
78 bool isMap(int i);
79 bool isContour();
80 bool isContour(int i);
81 bool isFillContour(int i);
82 bool isVector();
83 bool isVector(int i);
84 inline const char *getTitle(){ return title; };
85 const char *getName();
86 const char *getName(int i);
87 const char *getUnits();
88 const char *getUnits(int i);
89 const char *getFormat();
90 const char *getFormat(int i);
91 int print();
92 int print(int ind);
93
94 static int process( const char *str, VarList &vlist );
95 };
96}
97#endif
This class defines vertical level parameters.
Definition GridSpec.h:7
This is a variable length string class.
Definition String.h:5
This class specifies a list of variables.
Definition VarList.h:11
VarList()
Definition VarList.cc:26
int print()
Definition VarList.cc:765
int init()
Definition VarList.cc:39
This class specifies variable information.
Definition VarSpec.h:13
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct specifies a list of variables.
Definition VarFileData.h:7