SST  9.0.0
StructuralSimulationToolkit
TestEvent.h
1 // Copyright 2009-2019 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-2019, 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 
13 #ifndef INTERFACES_TEST_EVENT_H
14 #define INTERFACES_TEST_EVENT_H
15 
16 #include <sst/core/event.h>
17 
18 namespace SST{
19 namespace Interfaces {
20 
21 /** Test Event
22  * Useful for early-testing of components.
23  */
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  Event::serialize_order(ser);
36  ser & count;
37  }
38 
39  ImplementSerializable(SST::Interfaces::TestEvent);
40 };
41 
42 } //namespace Interfaces
43 } //namespace SST
44 
45 #endif
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:35
Test Event Useful for early-testing of components.
Definition: TestEvent.h:24
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:133