SimCenterCommon
Common functionality used within different SimCenter projects
ExistingSimCenterEvents Class Reference

#include <ExistingSimCenterEvents.h>

Inheritance diagram for ExistingSimCenterEvents:
Collaboration diagram for ExistingSimCenterEvents:

Public Slots

void errorMessage (QString message)
 
void addEvent (void)
 
void removeEvents (void)
 
void clear (void)
 
void loadEventsFromDir (void)
 

Public Member Functions

 ExistingSimCenterEvents (RandomVariablesContainer *theRandomVariableIW, QWidget *parent=0)
 
 ~ExistingSimCenterEvents ()
 
bool inputFromJSON (QJsonObject &rvObject)
 inputFromJSON method to instantiate itself from a JSON object More...
 
bool outputToJSON (QJsonObject &rvObject)
 outputToJSON method to write all objects data neeed to reconstruct object to JsonObject More...
 
bool outputAppDataToJSON (QJsonObject &rvObject)
 outputAppDataToJSON method to write the application data to json object. More...
 
bool inputAppDataFromJSON (QJsonObject &rvObject)
 inputFromJSON method to read applications specific data from a JSON object More...
 
bool copyFiles (QString &dirName)
 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 79 of file ExistingSimCenterEvents.h.

Constructor & Destructor Documentation

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

Definition at line 151 of file ExistingSimCenterEvents.cpp.

ExistingSimCenterEvents::~ExistingSimCenterEvents ( )

Definition at line 214 of file ExistingSimCenterEvents.cpp.

Member Function Documentation

void ExistingSimCenterEvents::addEvent ( void  )
slot

Definition at line 220 of file ExistingSimCenterEvents.cpp.

void ExistingSimCenterEvents::clear ( void  )
slot

Definition at line 316 of file ExistingSimCenterEvents.cpp.

bool ExistingSimCenterEvents::copyFiles ( QString &  destDir)
virtual

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 411 of file ExistingSimCenterEvents.cpp.

void ExistingSimCenterEvents::errorMessage ( QString  message)
slot

Definition at line 423 of file ExistingSimCenterEvents.cpp.

bool ExistingSimCenterEvents::inputAppDataFromJSON ( QJsonObject &  jsonObject)
virtual

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 405 of file ExistingSimCenterEvents.cpp.

bool ExistingSimCenterEvents::inputFromJSON ( QJsonObject &  jsonObject)
virtual

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 351 of file ExistingSimCenterEvents.cpp.

void ExistingSimCenterEvents::loadEventsFromDir ( void  )
slot

Definition at line 229 of file ExistingSimCenterEvents.cpp.

bool ExistingSimCenterEvents::outputAppDataToJSON ( QJsonObject &  jsonObject)
virtual

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 390 of file ExistingSimCenterEvents.cpp.

bool ExistingSimCenterEvents::outputToJSON ( QJsonObject &  jsonObject)
virtual

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 329 of file ExistingSimCenterEvents.cpp.

void ExistingSimCenterEvents::removeEvents ( void  )
slot

Definition at line 298 of file ExistingSimCenterEvents.cpp.


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