Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
vacomponent.cpp File Reference

Implementation of the vacomponent class. More...

#include <QtGui>
#include "vacomponent.h"

Go to the source code of this file.

Functions

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

Detailed Description

Implementation of the vacomponent class.

Definition in file vacomponent.cpp.

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 293 of file vacomponent.cpp.

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 320 of file vacomponent.cpp.

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 330 of file vacomponent.cpp.