12#ifndef SST_CORE_STOPACTION_H 
   13#define SST_CORE_STOPACTION_H 
   15#include "sst/core/action.h" 
   16#include "sst/core/output.h" 
   26class StopAction : 
public Action
 
   36        print_message = 
false;
 
   50        if ( print_message ) {
 
   51            Output::getDefaultObject().output(
"%s\n", message.c_str());
 
 
   57    void print(
const std::string& header, 
Output& out)
 const override 
   64        Action::serialize_order(ser);
 
   66        SST_SER(print_message);
 
   68    ImplementSerializable(SST::StopAction)
 
 
void endSimulation()
Called to signal to the Simulation object to end the simulation.
Definition action.cc:21
void setPriority(uint64_t priority)
Set the priority of the Activity.
Definition activity.h:198
SimTime_t getDeliveryTime() const
Return the time at which this Activity will be delivered.
Definition activity.h:148
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:45
Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file.
Definition output.h:54
void output(uint32_t line, const char *file, const char *func, const char *format,...) const
Output the message with formatting as specified by the format parameter.
Definition output.h:185
void execute() override
Function which will be called when the time for this Activity comes to pass.
Definition stopAction.h:48
StopAction(const std::string &msg)
Create a new StopAction which includes a message to be printed when it fires.
Definition stopAction.h:41