/* * dataset.h - dataset class definitions * * Copyright (C) 2003, 2004, 2006 Stefan Jahn * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this package; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, * Boston, MA 02110-1301, USA. * * $Id: dataset.h,v 1.13 2006/08/21 08:10:30 raimi Exp $ * */ #ifndef __DATASET_H__ #define __DATASET_H__ class vector; class dataset : public object { public: dataset (); dataset (char *); dataset (const dataset &); ~dataset (); void addDependency (vector *); void addDependencies (vector *); void appendDependency (vector *); void appendDependencies (vector *); void addVariable (vector *); void addVariables (vector *); void appendVariable (vector *); void appendVariables (vector *); void applyDependencies (vector * v); void delDependency (vector *); void delVariable (vector *); void assignDependency (char *, char *); char * getFile (void); void setFile (const char *); void print (void); void printData (vector *, FILE *); void printDependency (vector *, FILE *); void printVariable (vector *, FILE *); vector * findDependency (char *); vector * findVariable (char *); vector * getDependencies (void) { return dependencies; } vector * getVariables (void) { return variables; } int isDependency (vector *); int isVariable (vector *); vector * findOrigin (char *); static dataset * load (const char *); static dataset * load_touchstone (const char *); static dataset * load_citi (const char *); static dataset * load_zvr (const char *); static dataset * load_mdl (const char *); int countDependencies (void); int countVariables (void); private: char * file; vector * dependencies; vector * variables; }; #endif /* __DATASET_H__ */