SST  15.1.0
StructuralSimulationToolkit
TestEvent.h
1 // Copyright 2009-2025 NTESS. Under the terms
2 // of Contract DE-NA0003525 with NTESS, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2025, NTESS
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 
12 #ifndef SST_CORE_INTERFACES_TEST_EVENT_H
13 #define SST_CORE_INTERFACES_TEST_EVENT_H
14 
15 #include "sst/core/event.h"
16 
17 namespace SST::Interfaces {
18 
19 /** Test Event
20  * Useful for early-testing of components.
21  */
22 class TestEvent : public SST::Event
23 {
24 public:
25  TestEvent();
26  ~TestEvent();
27  /** Unused */
28  int count;
29  /** Prints a message to stdout when the message is deleted. */
31 
32 public:
33  void serialize_order(SST::Core::Serialization::serializer& ser) override
34  {
35  Event::serialize_order(ser);
36  SST_SER(count);
37  }
38 
39  ImplementSerializable(SST::Interfaces::TestEvent);
40 };
41 
42 } // namespace SST::Interfaces
43 
44 #endif // SST_CORE_INTERFACES_TEST_EVENT_H
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:42
Definition: simpleNetwork.cc:18
Test Event Useful for early-testing of components.
Definition: TestEvent.h:22
bool print_on_delete
Prints a message to stdout when the message is deleted.
Definition: TestEvent.h:30
int count
Unused.
Definition: TestEvent.h:28
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:40