LCOV - code coverage report
Current view: top level - src - dataset.h (source / functions) Hit Total Coverage
Test: qucs-core-0.0.19 Code Coverage Lines: 2 2 100.0 %
Date: 2015-01-05 16:01:02 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       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 *);
      42                 :            :   void addDependencies (qucs::vector *);
      43                 :            :   void appendDependency (qucs::vector *);
      44                 :            :   void appendDependencies (qucs::vector *);
      45                 :            :   void addVariable (qucs::vector *);
      46                 :            :   void addVariables (qucs::vector *);
      47                 :            :   void appendVariable (qucs::vector *);
      48                 :            :   void appendVariables (qucs::vector *);
      49                 :            :   void applyDependencies (qucs::vector * v);
      50                 :            :   void delDependency (qucs::vector *);
      51                 :            :   void delVariable (qucs::vector *);
      52                 :            : 
      53                 :            :   void assignDependency (const char *const, const char * const);
      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 *);
      62                 :        206 :   qucs::vector * getDependencies (void) { return dependencies; }
      63                 :        206 :   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;
      79                 :            :   qucs::vector * dependencies;
      80                 :            :   qucs::vector * variables;
      81                 :            : };
      82                 :            : 
      83                 :            : } // namespace qucs
      84                 :            : 
      85                 :            : #endif /* __DATASET_H__ */

Generated by: LCOV version 1.11