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