EGSnrc C++ class library  Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
Classes | Macros
egs_application.h File Reference

EGS_Application class header file. More...

#include "egs_base_geometry.h"
#include "egs_base_source.h"
#include "egs_simple_container.h"
#include "egs_interpolator.h"
#include <string>
#include <iostream>

Go to the source code of this file.

Classes

struct  EGS_Particle
 A structure holding the information of one particle. More...
 
class  EGS_Application
 Base class for advanced EGSnrc C++ applications. More...
 

Macros

#define APP_MAIN(app_name)
 
#define APP_SIMPLE_MAIN(app_name)
 
#define APP_LIB(app_name)
 

Detailed Description

EGS_Application class header file.

Author
Iwan Kawrakow, NRC

Definition in file egs_application.h.

Macro Definition Documentation

#define APP_MAIN (   app_name)
Value:
int main(int argc, char **argv) { \
app_name app(argc,argv); \
int err = app.initSimulation(); \
if( err ) return err; \
err = app.runSimulation(); \
if( err < 0 ) return err; \
return app.finishSimulation(); \
}
int main(int argc, char **argv)
A main program for egspp applications.
Definition: egspp.cpp:58

Definition at line 1195 of file egs_application.h.

#define APP_SIMPLE_MAIN (   app_name)
Value:
int main(int argc, char **argv) { \
app_name app(argc,argv); \
app.run(); \
app.reportResults(); \
app.finish(); \
return 0; \
}
int main(int argc, char **argv)
A main program for egspp applications.
Definition: egspp.cpp:58

Definition at line 1205 of file egs_application.h.

#define APP_LIB (   app_name)
Value:
extern "C" {\
APP_EXPORT EGS_Application* createApplication(int argc, char **argv) {\
return new app_name(argc,argv);\
}\
}
Base class for advanced EGSnrc C++ applications.

Definition at line 1214 of file egs_application.h.