Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/vacomponent.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                              vacomponent.h
00003                              -------------
00004     begin                : Thur Feb 21 2014
00005     copyright            : (C) 2014 by Guilherme Brondani Torri
00006     email                : guitorri AT gmail DOT com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef VACOMPONENT_H
00019 #define VACOMPONENT_H
00020 
00021 #include "component.h"
00022 
00023 #include <QScriptValue>
00024 
00025 class QString;
00026 class QScriptValue;
00027 
00033 class vacomponent : public Component
00034 {
00035   public:
00036     using Component::newOne;
00037     vacomponent(QString filename);
00038     ~vacomponent() { };
00039     virtual Component* newOne(QString filename);
00040     static Element* info(QString&, QString &,
00041                          bool getNewOne=false, QString filename="");
00042   protected:
00043     void createSymbol(QString filename);
00044 
00045 };
00046 
00047 //
00048 QString getData(QString filename);
00049 double getDouble(QScriptValue data, QString prop);
00050 QString getString(QScriptValue data, QString prop);
00051 
00052 #endif /* vacomponent_H */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines