SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2014 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_EVENT_H
17#define SIMICS_SYSTEMC_EVENT_H
18
19
20#include <systemc>
21
22#include <string>
23#include <vector>
24
25namespace simics {
26namespace systemc {
27
29class Event {
30 public:
31 enum Type {
41 };
42
43 Event(const sc_core::sc_time &when, const std::string &obj_name,
44 const Type &type, const std::string &kind = "");
45 Event(const sc_core::sc_time &when, const std::string &obj_name,
46 int type, const std::string &kind = "");
47
48 sc_core::sc_time when() const;
49 std::string what() const;
50 std::string kind() const;
51 std::string name() const;
52 Type type() const;
53
54 private:
55 sc_core::sc_time when_;
56 std::string obj_name_;
57 std::string kind_;
58 Type type_;
59};
60
61typedef std::vector<Event> EventVector;
62
63} // namespace systemc
64} // namespace simics
65
66#endif
Definition: event.h:29
std::string kind() const
Event(const sc_core::sc_time &when, const std::string &obj_name, const Type &type, const std::string &kind="")
Type
Definition: event.h:31
@ AND_LIST
Definition: event.h:36
@ OR_LIST
Definition: event.h:35
@ SIMICS_EVENT
Definition: event.h:34
@ TIMEOUT
Definition: event.h:37
@ OR_LIST_TIMEOUT
Definition: event.h:39
@ EVENT
Definition: event.h:33
@ AND_LIST_TIMEOUT
Definition: event.h:40
@ STATIC
Definition: event.h:32
@ EVENT_TIMEOUT
Definition: event.h:38
sc_core::sc_time when() const
Event(const sc_core::sc_time &when, const std::string &obj_name, int type, const std::string &kind="")
std::string what() const
std::string name() const
std::vector< Event > EventVector
Definition: event.h:61
Definition: pci_bus_interface.h:24