37 #ifndef EGS_AUSGAB_OBJECT_
38 #define EGS_AUSGAB_OBJECT_
65 static shared_ptr<EGS_BlockInput> ausBlockInput = make_shared<EGS_BlockInput>(
"ausgab object");
66 inline void setBaseAusgabObjectInputs() {
67 ausBlockInput->addSingleInput(
"library",
true,
"The type of ausgab object, loaded by shared library in egs++/dso.");
68 ausBlockInput->addSingleInput(
"name",
true,
"The user-declared unique name of this ausgab object. This is the name you may refer to elsewhere in the input file.");
130 return description.c_str();
213 static void createAusgabObjects(
EGS_Input *);
242 static void addKnownTypeId(
const char *name);
245 static int nObjects();
Base class for advanced EGSnrc C++ applications.
AusgabCall
Possible calls to the user scoring function ausgab().
virtual void resetCounter()
Reset the ausgab object state.
const char * getObjectDescription() const
Get a short description of this ausgab object.
virtual void setApplication(EGS_Application *App)
Set the application this object belongs to.
virtual int processEvent(EGS_Application::AusgabCall iarg)=0
Process an ausgab call for event iarg.
virtual bool setState(istream &data_in)
Set the ausgab object state based on data from the stream data_in.
virtual void reportResults()
Report results.
string description
A short ausgab object description.
EGS_AusgabObject(EGS_Input *input, EGS_ObjectFactory *f=0)
Construct an ausgab object from the input pointed to by inp.
virtual bool storeState(ostream &data_out) const
Store the source state into the stream data_out.
virtual void setCurrentCase(EGS_I64 ncase)
Set the current event.
virtual bool addState(istream &data_in)
Add data from the stream data_in to the ausgab object state.
EGS_AusgabObject(const string &Name="", EGS_ObjectFactory *f=0)
Construct an ausgab object named Name.
EGS_Application * app
The application this object belongs to.
virtual bool needsCall(EGS_Application::AusgabCall iarg) const
Is the ausgab call iarg relevant for this object?
EGS_Application class header file.
#define EGS_EXPORT
Export symbols from the egspp library.
EGS_Object and EGS_ObjectFactory class header file.