SST  6.1.0
StructuralSimulationToolkit
introspectAction.h
1 // Copyright 2009-2016 Sandia Corporation. Under the terms
2 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2016, Sandia Corporation
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_INTROSPECTACTION_H
13 #define SST_CORE_INTROSPECTACTION_H
14 
15 #include <cinttypes>
16 
17 #include <sst/core/action.h>
18 #include <sst/core/event.h>
19 
20 namespace SST {
21 
22 class IntrospectAction : public Action {
23 public:
25  m_handler( handler )
26  {
27  setPriority(INTROSPECTPRIORITY);
28  }
29  virtual ~IntrospectAction(){}
30 
31  void execute(void);
32 
33 
34 private:
35  IntrospectAction() { } // for serialization only
36  Event::HandlerBase* m_handler;
37 
38 };
39 
40 } //namespace SST
41 
42 #endif // SST_CORE_INTROSPECTACTION_H
An Action is a schedulable Activity which is not an Event.
Definition: action.h:30
Definition: action.cc:17
void setPriority(int priority)
Set the priority of the Activity.
Definition: activity.h:339
Functor classes for Event handling.
Definition: event.h:86
Definition: introspectAction.h:22
void execute(void)
Function which will be called when the time for this Activity comes to pass.
Definition: introspectAction.cc:22