File: extern.hh

package info (click to toggle)
gri 2.4.2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,540 kB
  • ctags: 1,966
  • sloc: cpp: 32,542; lisp: 3,243; perl: 806; makefile: 548; sh: 253
file content (152 lines) | stat: -rw-r--r-- 4,287 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#if !defined(_extern_h_)
#define _extern_h_

#include <string>
#include <vector>		// part of STL

#include "private.hh"
#include "gr.hh"
#include "errors.hh"
#include "gr_coll.hh"
#include "GMatrix.hh"
#include "GriState.hh"



#include "macro.hh"
#define AXES_RECTANGULAR	0	// normal axes style (rect)

extern GriState _griState;	// <-> gri.cc

// The following globals have symbolic names associated with them, and
// MUST be updated whenever these names are assigned to.  See the note in
// put_var() in variable.c.  The reason for the parallel C storage is that
// the following are accessed for every data point plotted.  Certain other
// symbolic variables (like  ..publication.. for example) are not accessed
// frequently, and hence have no parallel C storage as the following do. Thus
// they are safe against breakage.

extern bool      _user_gave_bounding_box;
extern rectangle _bounding_box_user;
extern rectangle _bounding_box;
extern bool     _user_set_x_axis;
extern bool     _user_set_y_axis;
extern double   _xleft;		// ..xleft..
extern double   _xright;	// ..xright..
extern double   _ybottom;	// ..ybottom..
extern double   _ytop;		// ..ytop..
// Column data
extern GriColumn _colR;
extern GriColumn _colTHETA;
extern GriColumn _colU;
extern GriColumn _colV;
extern GriColumn _colX;
extern GriColumn _colY;
extern GriColumn _colZ;
extern GriColumn _colWEIGHT;
extern bool     _uscale_exists;
extern bool     _vscale_exists;
extern bool     _columns_exist;
extern string   _xFmt;
extern string   _yFmt;
// Axes
extern double   _clipxleft, _clipxright, _clipybottom, _clipytop;
extern double   _cm_per_u;
extern double   _cm_per_v;
extern gr_axis_properties _xtype;
extern double   _xinc;
extern bool     _xscale_exists;
extern bool     _need_x_axis;
extern bool     _xatbottom;
extern bool     _xincreasing;
extern int      _xsubdiv;
extern gr_axis_properties _ytype;
extern double   _yinc;
extern bool     _yscale_exists;
extern bool     _need_y_axis;
extern bool     _yatleft;
extern bool     _yincreasing;
extern int      _ysubdiv;

// Data/Command file stacks
extern vector<DataFile> _dataFILE;
extern vector<CmdFile>  _cmdFILE;

// Grid data
extern GriMatrix<double> _f_xy;
extern double     _f_min, _f_max, *_xmatrix, *_ymatrix;
extern GriMatrix<bool> _legit_xy;
extern bool     _xgrid_exists;
extern bool     _xgrid_increasing;
extern bool     _ygrid_exists;
extern bool     _ygrid_increasing;
extern bool     _grid_exists;
// Commands
extern char    *_cmd_being_done_IP[];
extern int      _cmd_being_done_code[];
extern int      _cmd_being_done;
extern char    *_cmdLine;
extern char    *_cmdLineCOPY;
extern char    *_word[];
extern char    *_Words2[];
extern char    *_Words3[];
// Misc
extern string   _contourFmt;
extern string   _current_directory;
extern char    *_errorMsg;
extern int      _error_action;
extern string   _lib_directory;
extern string   _margin;
extern string   _prompt;
extern double  *_dstack;
extern double   _gri_eof;
extern double   _top_of_plot;
extern double   _axes_offset;
extern int      _axesStyle;
extern bool     _beep;
extern int      _braceLevel;
extern int      _chatty;
extern int      _clipData;
extern int      _debugFlag;
extern int      _done;
extern bool     _drawingstarted;
extern bool     _error_in_cmd;
extern int      _exit_value;
extern bool     _first;
extern gr_font  _font;
extern bool     _ignore_eof;
extern bool     _ignore_error;

extern int      _arrow_type;
extern bool     _warn_offpage;

extern vector<double> _dash;

// Numbers of things.
extern int      _num_command;
extern unsigned int _num_xmatrix_data;
extern unsigned int _num_ymatrix_data;
extern int      _nword;

// Version number.
extern double   _version; // this version
extern double   _version_expected; // expected version (if any)


// Flags indicating whether things exist yet.
extern bool     _use_default_for_query;


// Command stack
#define	COMMAND_STACK_SIZE	1000
typedef struct {
    char           *syntax;	// The 'name' of command
    char           *help;	// Help, if any
    char           *procedure;	// Commands to do
    char           *filename;	// Where defined
    int             fileline;	// Where defined
}               GRI_COMMAND;
extern GRI_COMMAND _command[COMMAND_STACK_SIZE];


#endif				// _extern_h_