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

EGS_SimpleApplication class header file. More...

#include "egs_libconfig.h"
#include "egs_base_geometry.h"

Go to the source code of this file.

Classes

class  EGS_SimpleApplication
 A base class for developing simple EGSnrc applications. More...
 

Macros

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

Detailed Description

EGS_SimpleApplication class header file.

Author
Iwan Kawrakow, NRC

Definition in file egs_simple_application.h.

Macro Definition Documentation

#define APP_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 233 of file egs_simple_application.h.

#define APP_LIB (   app_name)
Value:
extern "C" {\
APP_EXPORT EGS_SimpleApplication* createApplication(int argc, char **argv) {\
return new app_name(argc,argv);\
}\
}
A base class for developing simple EGSnrc applications.

Definition at line 242 of file egs_simple_application.h.