SimCenterCommon
Common functionality used within different SimCenter projects
UserDefinedApplication Class Reference

#include <UserDefinedApplication.h>

Inheritance diagram for UserDefinedApplication:
Collaboration diagram for UserDefinedApplication:

Public Slots

void clear (void)
 
void chooseFileName (void)
 

Public Member Functions

 UserDefinedApplication (RandomVariablesContainer *theRandomVariableIW, QWidget *parent=0)
 
 ~UserDefinedApplication ()
 
bool outputToJSON (QJsonObject &jsonObject) override
 outputToJSON method to write all objects data neeed to reconstruct object to JsonObject More...
 
bool inputFromJSON (QJsonObject &jsonObject) override
 inputFromJSON method to instantiate itself from a JSON object More...
 
bool outputAppDataToJSON (QJsonObject &jsonObject) override
 outputAppDataToJSON method to write the application data to json object. More...
 
bool inputAppDataFromJSON (QJsonObject &jsonObject) override
 inputFromJSON method to read applications specific data from a JSON object More...
 
bool copyFiles (QString &dirName) override
 copyFiles method invoked to copy all files aapplication will need to run directory More...
 
- Public Member Functions inherited from SimCenterAppWidget
 SimCenterAppWidget (QWidget *parent=0)
 
virtual ~SimCenterAppWidget ()
 
virtual bool supportsLocalRun ()
 returns a boolean indicating whether or not this app can run locally More...
 
- Public Member Functions inherited from SimCenterWidget
 SimCenterWidget (QWidget *parent=0)
 
virtual ~SimCenterWidget ()
 

Additional Inherited Members

- Signals inherited from SimCenterWidget
void sendFatalMessage (QString message)
 sendFatalMessage signal to be emitted when object needs to shut program down More...
 
void sendErrorMessage (QString message)
 sendErrorMessage signal to be emitted when object needs to communicate error with user More...
 
void sendStatusMessage (QString message)
 sendStatusMessage signal to be emitted when object needs to communicate status with user More...
 
- Static Public Member Functions inherited from SimCenterAppWidget
static bool copyPath (QString sourceDir, QString destinationDir, bool overWriteDirectory)
 
static bool copyFile (QString filename, QString destinationDir)
 

Detailed Description

Definition at line 47 of file UserDefinedApplication.h.

Constructor & Destructor Documentation

UserDefinedApplication::UserDefinedApplication ( RandomVariablesContainer theRandomVariableIW,
QWidget *  parent = 0 
)
explicit

Definition at line 59 of file UserDefinedApplication.cpp.

UserDefinedApplication::~UserDefinedApplication ( )

Definition at line 91 of file UserDefinedApplication.cpp.

Member Function Documentation

void UserDefinedApplication::chooseFileName ( void  )
slot

Definition at line 202 of file UserDefinedApplication.cpp.

void UserDefinedApplication::clear ( void  )
slot

Definition at line 97 of file UserDefinedApplication.cpp.

bool UserDefinedApplication::copyFiles ( QString &  destDir)
overridevirtual

copyFiles method invoked to copy all files aapplication will need to run directory

Parameters
destDirthe directory to put files in
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterAppWidget.

Definition at line 209 of file UserDefinedApplication.cpp.

bool UserDefinedApplication::inputAppDataFromJSON ( QJsonObject &  jsonObject)
overridevirtual

inputFromJSON method to read applications specific data from a JSON object

Parameters
rvObjectthe JSON object contaiing data to instantiate the object
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterAppWidget.

Definition at line 146 of file UserDefinedApplication.cpp.

bool UserDefinedApplication::inputFromJSON ( QJsonObject &  jsonObject)
overridevirtual

inputFromJSON method to instantiate itself from a JSON object

Parameters
jsonObjectthe JSON object contaiing data to instantiate the object
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterWidget.

Definition at line 115 of file UserDefinedApplication.cpp.

bool UserDefinedApplication::outputAppDataToJSON ( QJsonObject &  jsonObject)
overridevirtual

outputAppDataToJSON method to write the application data to json object.

Parameters
rvObjectthe JSON object to be written to
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterAppWidget.

Definition at line 124 of file UserDefinedApplication.cpp.

bool UserDefinedApplication::outputToJSON ( QJsonObject &  jsonObject)
overridevirtual

outputToJSON method to write all objects data neeed to reconstruct object to JsonObject

Parameters
rvObjectthe JSON object to be written to
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterWidget.

Definition at line 105 of file UserDefinedApplication.cpp.


The documentation for this class was generated from the following files: