My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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: dataset.h 1825 2011-03-11 20:42:14Z ela $
22  *
23  */
24 
25 #ifndef __DATASET_H__
26 #define __DATASET_H__
27 
28 class vector;
29 
30 class dataset : public object
31 {
32  public:
33  dataset ();
34  dataset (char *);
35  dataset (const dataset &);
36  ~dataset ();
37  void addDependency (vector *);
38  void addDependencies (vector *);
39  void appendDependency (vector *);
40  void appendDependencies (vector *);
41  void addVariable (vector *);
42  void addVariables (vector *);
43  void appendVariable (vector *);
44  void appendVariables (vector *);
45  void applyDependencies (vector * v);
46  void delDependency (vector *);
47  void delVariable (vector *);
48 
49  void assignDependency (char *, char *);
50  char * getFile (void);
51  void setFile (const char *);
52  void print (void);
53  void printData (vector *, FILE *);
54  void printDependency (vector *, FILE *);
55  void printVariable (vector *, FILE *);
56  vector * findDependency (const char *);
57  vector * findVariable (const char *);
58  vector * getDependencies (void) { return dependencies; }
59  vector * getVariables (void) { return variables; }
60  int isDependency (vector *);
61  int isVariable (vector *);
62  vector * findOrigin (char *);
63  static dataset * load (const char *);
64  static dataset * load_touchstone (const char *);
65  static dataset * load_csv (const char *);
66  static dataset * load_citi (const char *);
67  static dataset * load_zvr (const char *);
68  static dataset * load_mdl (const char *);
69 
70  int countDependencies (void);
71  int countVariables (void);
72 
73  private:
74  char * file;
75  vector * dependencies;
76  vector * variables;
77 };
78 
79 #endif /* __DATASET_H__ */