Qucs-core
0.0.18
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
qucs-core
src
check_mdl.h
Go to the documentation of this file.
1
/*
2
* check_mdl.h - checker definitions for an IC-CAP MDL 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_MDL_H__
26
#define __CHECK_MDL_H__
27
28
namespace
qucs
{
29
class
dataset;
30
}
31
32
/* Externalize variables used by the scanner and parser. */
33
extern
int
mdl_lineno
;
34
extern
FILE *
mdl_in
;
35
void
mdl_restart
(FILE *);
36
37
__BEGIN_DECLS
38
39
/* Available functions of the checker. */
40
int
mdl_check
(
void
);
41
int
mdl_parse
(
void
);
42
int
mdl_error
(
const
char
*);
43
int
mdl_lex
(
void
);
44
int
mdl_lex_destroy
(
void
);
45
void
mdl_destroy
(
void
);
46
void
mdl_init
(
void
);
47
48
__END_DECLS
49
50
/* Declaration of MDL data structures. */
51
extern
qucs::dataset
*
mdl_result
;
52
extern
struct
mdl_link_t
*
mdl_root
;
53
extern
struct
mdl_sync_t
*
mdl_sync_root
;
54
55
struct
mdl_point_t
{
56
int
n
;
57
int
x
;
58
int
y
;
59
double
r
;
60
double
i
;
61
struct
mdl_point_t
*
next
;
62
};
63
64
struct
mdl_datasize_t
{
65
char
*
type
;
66
int
size
;
67
int
x
;
68
int
y
;
69
};
70
71
struct
mdl_element_t
{
72
int
number
;
73
char
*
name
;
74
char
*
value
;
75
char
*
attr
;
76
struct
mdl_element_t
*
next
;
77
};
78
79
struct
mdl_hyptable_t
{
80
char
*
name
;
81
struct
mdl_element_t
*
data
;
82
};
83
84
struct
mdl_table_t
{
85
char
*
name
;
86
struct
mdl_element_t
*
data
;
87
};
88
89
struct
mdl_dataset_t
{
90
char
*
type1
;
91
struct
mdl_point_t
*
data1
;
92
char
*
type2
;
93
struct
mdl_point_t
*
data2
;
94
struct
mdl_datasize_t
*
dsize
;
95
};
96
97
struct
mdl_link_t
{
98
struct
mdl_link_t
*
parent
;
99
char
*
name
;
100
char
*
type
;
101
struct
mdl_lcontent_t
*
content
;
102
struct
mdl_link_t
*
next
;
103
};
104
105
struct
mdl_lcontent_t
{
106
int
type
;
107
union
{
108
struct
mdl_link_t
*
link
;
109
struct
mdl_data_t
*
data
;
110
struct
mdl_table_t
*
table
;
111
};
112
struct
mdl_lcontent_t
*
next
;
113
};
114
115
struct
mdl_data_t
{
116
struct
mdl_dcontent_t
*
content
;
117
};
118
119
struct
mdl_dcontent_t
{
120
int
type
;
121
union
{
122
struct
mdl_dataset_t
*
data
;
123
struct
mdl_hyptable_t
*
hyptable
;
124
};
125
struct
mdl_dcontent_t
*
next
;
126
};
127
128
struct
mdl_sync_t
{
129
char
*
master
;
130
char
*
name
;
131
double
ratio
;
132
double
offset
;
133
struct
mdl_sync_t
*
next
;
134
};
135
136
#endif
/* __CHECK_MDL_H__ */
mdl_sync_t::next
struct mdl_sync_t * next
Definition:
check_mdl.h:133
mdl_sync_t::ratio
double ratio
Definition:
check_mdl.h:131
mdl_point_t
Definition:
check_mdl.h:55
mdl_dcontent_t::type
int type
Definition:
check_mdl.h:120
mdl_in
FILE * mdl_in
mdl_element_t::attr
char * attr
Definition:
check_mdl.h:75
mdl_data_t
Definition:
check_mdl.h:115
mdl_point_t::r
double r
Definition:
check_mdl.h:59
mdl_parse
int mdl_parse(void)
mdl_element_t::next
struct mdl_element_t * next
Definition:
check_mdl.h:76
mdl_dcontent_t::next
struct mdl_dcontent_t * next
Definition:
check_mdl.h:125
qucs::dataset
Definition:
dataset.h:34
mdl_lcontent_t::data
struct mdl_data_t * data
Definition:
check_mdl.h:109
mdl_element_t
Definition:
check_mdl.h:71
mdl_data_t::content
struct mdl_dcontent_t * content
Definition:
check_mdl.h:116
mdl_link_t::type
char * type
Definition:
check_mdl.h:100
mdl_lcontent_t::link
struct mdl_link_t * link
Definition:
check_mdl.h:108
mdl_lex_destroy
int mdl_lex_destroy(void)
mdl_init
void mdl_init(void)
Definition:
check_mdl.cpp:695
mdl_hyptable_t::data
struct mdl_element_t * data
Definition:
check_mdl.h:81
mdl_datasize_t::y
int y
Definition:
check_mdl.h:68
mdl_dataset_t::data2
struct mdl_point_t * data2
Definition:
check_mdl.h:93
mdl_link_t::parent
struct mdl_link_t * parent
Definition:
check_mdl.h:98
mdl_point_t::next
struct mdl_point_t * next
Definition:
check_mdl.h:61
mdl_dcontent_t::data
struct mdl_dataset_t * data
Definition:
check_mdl.h:122
mdl_link_t
Definition:
check_mdl.h:97
mdl_root
struct mdl_link_t * mdl_root
Definition:
check_mdl.cpp:53
qucs
Definition:
applications.h:30
mdl_lineno
int mdl_lineno
mdl_datasize_t::x
int x
Definition:
check_mdl.h:67
mdl_element_t::number
int number
Definition:
check_mdl.h:72
mdl_dataset_t::data1
struct mdl_point_t * data1
Definition:
check_mdl.h:91
mdl_sync_t
Definition:
check_mdl.h:128
mdl_dcontent_t::hyptable
struct mdl_hyptable_t * hyptable
Definition:
check_mdl.h:123
mdl_restart
void mdl_restart(FILE *)
mdl_point_t::y
int y
Definition:
check_mdl.h:58
mdl_lcontent_t::type
int type
Definition:
check_mdl.h:106
mdl_link_t::name
char * name
Definition:
check_mdl.h:99
mdl_result
__END_DECLS qucs::dataset * mdl_result
Definition:
check_mdl.cpp:52
mdl_destroy
void mdl_destroy(void)
Definition:
check_mdl.cpp:672
mdl_check
__BEGIN_DECLS int mdl_check(void)
Definition:
check_mdl.cpp:658
mdl_sync_t::offset
double offset
Definition:
check_mdl.h:132
mdl_hyptable_t
Definition:
check_mdl.h:79
mdl_link_t::next
struct mdl_link_t * next
Definition:
check_mdl.h:102
mdl_dataset_t
Definition:
check_mdl.h:89
mdl_point_t::i
double i
Definition:
check_mdl.h:60
mdl_point_t::x
int x
Definition:
check_mdl.h:57
mdl_dataset_t::type2
char * type2
Definition:
check_mdl.h:92
mdl_error
int mdl_error(const char *)
Definition:
parse_mdl.y:620
mdl_datasize_t::type
char * type
Definition:
check_mdl.h:65
mdl_lcontent_t::table
struct mdl_table_t * table
Definition:
check_mdl.h:110
mdl_sync_t::master
char * master
Definition:
check_mdl.h:129
mdl_lcontent_t
Definition:
check_mdl.h:105
mdl_table_t::data
struct mdl_element_t * data
Definition:
check_mdl.h:86
mdl_sync_t::name
char * name
Definition:
check_mdl.h:130
mdl_lcontent_t::next
struct mdl_lcontent_t * next
Definition:
check_mdl.h:112
mdl_lex
int mdl_lex(void)
mdl_datasize_t::size
int size
Definition:
check_mdl.h:66
mdl_hyptable_t::name
char * name
Definition:
check_mdl.h:80
mdl_element_t::value
char * value
Definition:
check_mdl.h:74
mdl_dataset_t::type1
char * type1
Definition:
check_mdl.h:90
mdl_link_t::content
struct mdl_lcontent_t * content
Definition:
check_mdl.h:101
mdl_dcontent_t
Definition:
check_mdl.h:119
mdl_dataset_t::dsize
struct mdl_datasize_t * dsize
Definition:
check_mdl.h:94
mdl_sync_root
struct mdl_sync_t * mdl_sync_root
Definition:
check_mdl.cpp:54
mdl_table_t::name
char * name
Definition:
check_mdl.h:85
mdl_element_t::name
char * name
Definition:
check_mdl.h:73
mdl_point_t::n
int n
Definition:
check_mdl.h:56
mdl_table_t
Definition:
check_mdl.h:84
mdl_datasize_t
Definition:
check_mdl.h:64
Generated on Mon Sep 1 2014 20:08:24 for Qucs-core by
1.8.6