Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
check_zvr.h
Go to the documentation of this file.
1 /*
2  * check_zvr.h - checker definitions for a zvr file
3  *
4  * Copyright (C) 2006 Stefan Jahn <stefan@lkcc.org>
5  *
6  * This is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this package; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * $Id$
22  *
23  */
24 
25 #ifndef __CHECK_ZVR_H__
26 #define __CHECK_ZVR_H__
27 
28 // forward declarations
29 namespace qucs {
30  class dataset;
31  class vector;
32 }
33 
34 /* Externalize variables used by the scanner and parser. */
35 extern int zvr_lineno;
36 extern FILE * zvr_in;
37 void zvr_restart (FILE *);
38 
39 __BEGIN_DECLS
40 
41 /* Available functions of the checker. */
42 int zvr_check (void);
43 int zvr_parse (void);
44 int zvr_error (const char *);
45 int zvr_lex (void);
46 int zvr_lex_destroy (void);
47 void zvr_destroy (void);
48 void zvr_init (void);
49 
50 __END_DECLS
51 
52 /* Declaration of ZVR data structures. */
53 extern qucs::dataset * zvr_result;
54 extern struct zvr_data_t * zvr_root;
55 
56 struct zvr_header_t {
57  double zref;
58  double start;
59  double stop;
60  char * funit;
61  int points;
62  char * d_TYP;
63  char * d_UNT;
64  char * d_FMT;
65 };
66 
67 struct zvr_vector_t {
68  char * n1;
69  char * n2;
70  char * nf;
73 };
74 
75 struct zvr_line_t {
76  double d;
77  double r, i;
78  struct zvr_line_t * next;
79 };
80 
81 struct zvr_data_t {
82  struct zvr_header_t * h;
83  struct zvr_vector_t * v;
84  struct zvr_line_t * d;
85  struct zvr_data_t * next;
86 };
87 
88 
89 #endif /* __CHECK_ZVR_H__ */
FILE * zvr_in
int zvr_lex(void)
int zvr_lineno
double d
Definition: check_zvr.h:76
struct zvr_line_t * d
Definition: check_zvr.h:84
char * nf
Definition: check_zvr.h:70
__END_DECLS qucs::dataset * zvr_result
Definition: check_zvr.cpp:48
int zvr_parse(void)
struct zvr_line_t * next
Definition: check_zvr.h:78
char * d_UNT
Definition: check_zvr.h:63
struct zvr_header_t * h
Definition: check_zvr.h:82
void zvr_restart(FILE *)
struct zvr_data_t * next
Definition: check_zvr.h:85
char * n2
Definition: check_zvr.h:69
int zvr_lex_destroy(void)
double i
Definition: check_zvr.h:77
qucs::vector * vi
Definition: check_zvr.h:71
double r
Definition: check_zvr.h:77
struct zvr_vector_t * v
Definition: check_zvr.h:83
char * n1
Definition: check_zvr.h:68
double stop
Definition: check_zvr.h:59
char * d_FMT
Definition: check_zvr.h:64
double zref
Definition: check_zvr.h:57
char * funit
Definition: check_zvr.h:60
void zvr_destroy(void)
Definition: check_zvr.cpp:255
int zvr_error(const char *)
Definition: parse_zvr.y:195
qucs::vector * vd
Definition: check_zvr.h:72
void zvr_init(void)
Definition: check_zvr.cpp:268
char * d_TYP
Definition: check_zvr.h:62
__BEGIN_DECLS int zvr_check(void)
Definition: check_zvr.cpp:220
struct zvr_data_t * zvr_root
Definition: check_zvr.cpp:49
double start
Definition: check_zvr.h:58