Qucs-GUI  0.0.19
Data Structures | Functions
/home/travis/build/Qucs/qucs/qucs/qucs/components/vacomponent.h File Reference

Definition of the vacomponent class. More...

#include "component.h"
#include <QScriptValue>
Include dependency graph for vacomponent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  vacomponent

Functions

QString getData (QString filename)
 getData Reads the JSON file
double getDouble (QScriptValue data, QString prop)
 getDouble Helper to get a property out of a JSON script
QString getString (QScriptValue data, QString prop)
 getString Helper to get a property out of a JSON script

Detailed Description

Definition of the vacomponent class.

Definition in file vacomponent.h.


Function Documentation

QString getData ( QString  filename)

getData Reads the JSON file

Parameters:
filenameFile (JSON) containing the symbol paintings and properties.
Returns:
the JSON file as a QString

Definition at line 301 of file vacomponent.cpp.

Here is the caller graph for this function:

double getDouble ( QScriptValue  data,
QString  prop 
)

getDouble Helper to get a property out of a JSON script

Parameters:
dataJSON data as a QScritValue
propJSON property key
Returns:
a double corresponding to the JSON value

Definition at line 328 of file vacomponent.cpp.

Here is the caller graph for this function:

QString getString ( QScriptValue  data,
QString  prop 
)

getString Helper to get a property out of a JSON script

Parameters:
dataJSON data as a QScritValue
propJSON property key
Returns:
a QString corresponding to the JSON value

Definition at line 338 of file vacomponent.cpp.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines