Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataset.h
Go to the documentation of this file.
1 /*
2  * dataset.h - dataset class definitions
3  *
4  * Copyright (C) 2003, 2004, 2006, 2007 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 __DATASET_H__
26 #define __DATASET_H__
27 
28 #include "object.h"
29 
30 namespace qucs {
31 
32 class vector;
33 
34 class dataset : public object
35 {
36  public:
37  dataset ();
38  dataset (char *);
39  dataset (const dataset &);
40  ~dataset ();
41  void addDependency (qucs::vector *);
45  void addVariable (qucs::vector *);
46  void addVariables (qucs::vector *);
50  void delDependency (qucs::vector *);
51  void delVariable (qucs::vector *);
52 
53  void assignDependency (char *, char *);
54  char * getFile (void);
55  void setFile (const char *);
56  void print (void);
57  void printData (qucs::vector *, FILE *);
58  void printDependency (qucs::vector *, FILE *);
59  void printVariable (qucs::vector *, FILE *);
60  qucs::vector * findDependency (const char *);
61  qucs::vector * findVariable (const char *);
63  qucs::vector * getVariables (void) { return variables; }
64  int isDependency (qucs::vector *);
65  int isVariable (qucs::vector *);
66  qucs::vector * findOrigin (char *);
67  static dataset * load (const char *);
68  static dataset * load_touchstone (const char *);
69  static dataset * load_csv (const char *);
70  static dataset * load_citi (const char *);
71  static dataset * load_zvr (const char *);
72  static dataset * load_mdl (const char *);
73 
74  int countDependencies (void);
75  int countVariables (void);
76 
77  private:
78  char * file;
81 };
82 
83 } // namespace qucs
84 
85 #endif /* __DATASET_H__ */
static dataset * load_zvr(const char *)
Definition: dataset.cpp:515
void addDependency(qucs::vector *)
Definition: dataset.cpp:95
qucs::vector * getVariables(void)
Definition: dataset.h:63
char * getFile(void)
Definition: dataset.cpp:317
void applyDependencies(qucs::vector *v)
Definition: dataset.cpp:212
void printVariable(qucs::vector *, FILE *)
Definition: dataset.cpp:377
void printDependency(qucs::vector *, FILE *)
Definition: dataset.cpp:366
void printData(qucs::vector *, FILE *)
Definition: dataset.cpp:396
int countVariables(void)
Definition: dataset.cpp:301
static dataset * load_csv(const char *)
Definition: dataset.cpp:465
static dataset * load_mdl(const char *)
Definition: dataset.cpp:540
void appendVariable(qucs::vector *)
Definition: dataset.cpp:186
void addVariables(qucs::vector *)
Definition: dataset.cpp:177
void print(void)
Definition: dataset.cpp:331
void delDependency(qucs::vector *)
Definition: dataset.cpp:103
void addDependencies(qucs::vector *)
Definition: dataset.cpp:119
qucs::vector * variables
Definition: dataset.h:80
void delVariable(qucs::vector *)
Definition: dataset.cpp:161
static dataset * load_citi(const char *)
Definition: dataset.cpp:490
qucs::vector * findOrigin(char *)
Definition: dataset.cpp:228
int isVariable(qucs::vector *)
Definition: dataset.cpp:272
generic object class.
Definition: object.h:52
void addVariable(qucs::vector *)
Definition: dataset.cpp:153
static dataset * load(const char *)
Definition: dataset.cpp:412
static dataset * load_touchstone(const char *)
Definition: dataset.cpp:440
v
Definition: parse_zvr.y:141
void appendDependency(qucs::vector *)
Definition: dataset.cpp:128
qucs::vector * dependencies
Definition: dataset.h:79
void appendDependencies(qucs::vector *)
Definition: dataset.cpp:144
void assignDependency(char *, char *)
Definition: dataset.cpp:245
qucs::vector * findDependency(const char *)
Definition: dataset.cpp:281
void appendVariables(qucs::vector *)
Definition: dataset.cpp:202
qucs::vector * getDependencies(void)
Definition: dataset.h:62
qucs::vector * findVariable(const char *)
Definition: dataset.cpp:292
int isDependency(qucs::vector *)
Definition: dataset.cpp:265
int countDependencies(void)
Definition: dataset.cpp:309
char * file
Definition: dataset.h:78
void setFile(const char *)
Definition: dataset.cpp:323