My Project
0.0.16
QUCS Mapping
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DownLoad
QUCS-src
qucs-0.0.16
qucs-transcalc
transline.h
Go to the documentation of this file.
1
/*
2
* transline.h - base for a transmission line class definition
3
*
4
* Copyright (C) 2005 Stefan Jahn <stefan@lkcc.org>
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
*
11
* This program 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
*/
22
23
#ifndef __TRANSLINE_H
24
#define __TRANSLINE_H
25
26
class
QucsTranscalc
;
27
28
class
transline
{
29
public
:
30
transline
();
31
virtual
~transline
();
32
33
void
setApplication
(
QucsTranscalc
*);
34
void
setProperty
(
const
char
*,
double
);
35
void
setProperty
(
const
char
*,
double
,
int
,
int
);
36
double
getProperty
(
const
char
*);
37
double
getProperty
(
const
char
*,
int
,
int
);
38
double
convertProperty
(
const
char
*,
double
,
int
,
int
);
39
void
setResult
(
int
,
double
,
const
char
*);
40
void
setResult
(
int
,
const
char
*);
41
int
translateUnit
(
char
*);
42
char
*
getUnit
(
const
char
*);
43
bool
isSelected
(
const
char
*);
44
45
virtual
void
synthesize
() { };
46
virtual
void
analyze
() { };
47
48
protected
:
49
double
f
;
/* Frequency of operation */
50
double
sigma
;
/* Conductivity of the metal */
51
double
mur
;
/* mag. permeability */
52
double
skindepth
;
/* Skin depth */
53
double
skin_depth
();
54
55
private
:
56
QucsTranscalc
* app;
57
};
58
59
#endif
/* __TRANSLINE_H */
Generated on Tue Dec 25 2012 14:30:37 for My Project by
1.8.2