SST  11.1.0
StructuralSimulationToolkit
TestEvent.h
1 // Copyright 2009-2021 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-2021, 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 {
18 namespace Interfaces {
19 
20 /** Test Event
21  * Useful for early-testing of components.
22  */
24 {
25 public:
26  TestEvent();
27  ~TestEvent();
28  /** Unused */
29  int count;
30  /** Prints a message to stdout when the message is deleted. */
32 
33 public:
34  void serialize_order(SST::Core::Serialization::serializer& ser) override
35  {
36  Event::serialize_order(ser);
37  ser& count;
38  }
39 
40  ImplementSerializable(SST::Interfaces::TestEvent);
41 };
42 
43 } // namespace Interfaces
44 } // namespace SST
45 
46 #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:34
Test Event Useful for early-testing of components.
Definition: TestEvent.h:23
bool print_on_delete
Prints a message to stdout when the message is deleted.
Definition: TestEvent.h:31
int count
Unused.
Definition: TestEvent.h:29
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:31
Definition: serializable.h:138