SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
sc_event_object.h
Go to the documentation of this file.
1/*
2 © 2015 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_AWARENESS_SC_EVENT_OBJECT_H
15#define SIMICS_SYSTEMC_AWARENESS_SC_EVENT_OBJECT_H
16
17#include <systemc>
18#include <string>
19
20namespace simics {
21namespace systemc {
22namespace awareness {
23
25class ScEventObject : public sc_core::sc_object {
26 public:
27 explicit ScEventObject(sc_core::sc_event *event)
28 : sc_object(sc_core::sc_gen_unique_name(event->basename())),
29 event_name_(event->name()) {}
30 const char *kind() const override {
31 return "ScEventObject";
32 }
33 sc_core::sc_event *get_event() {
34 return sc_core::sc_find_event(event_name_.c_str());
35 }
36
37 protected:
38 std::string event_name_;
39};
40
41} // namespace awareness
42} // namespace systemc
43} // namespace simics
44
45#endif
Definition: sc_event_object.h:25
const char * kind() const override
Definition: sc_event_object.h:30
std::string event_name_
Definition: sc_event_object.h:38
sc_core::sc_event * get_event()
Definition: sc_event_object.h:33
ScEventObject(sc_core::sc_event *event)
Definition: sc_event_object.h:27
Definition: argument_registry.h:24
Definition: adapter.h:79