SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
tool_connection.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2017 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_INSTRUMENTATION_TOOL_CONNECTION_H
17#define SIMICS_SYSTEMC_INSTRUMENTATION_TOOL_CONNECTION_H
18
19#include <simics/cc-api.h>
23
24#include <map>
25#include <string>
26#include <vector>
27
28namespace simics {
29namespace systemc {
30namespace instrumentation {
31
33class ToolConnection : public ConfObject,
37 public:
38 explicit ToolConnection(ConfObjectRef o);
39 virtual ~ToolConnection();
40 virtual void set_functions(std::vector<std::string> *functions);
41 virtual const std::vector<std::string> &functions() const;
42 virtual bool enabled() const;
43 virtual void set_tool(ConfObjectRef tool);
44 virtual ConfObjectRef tool() const;
45 virtual void set_controller(ConfObjectRef controller);
46 virtual ConfObjectRef controller() const;
47 virtual bool enable();
48 virtual bool disable();
49 static void initialize(const std::string &module_name);
50 static std::string connection_class_name();
51
52 private:
53 ConfObjectRef tool_;
54 ConfObjectRef controller_;
55 std::map<std::string, const interface_t *> interfaces_;
56 std::vector<std::string> functions_;
57 bool enabled_;
58 static std::string connection_class_name_;
59};
60
61} // namespace instrumentation
62} // namespace systemc
63} // namespace simics
64
65#endif
Interface to the SystemC simulation.
Definition: simulation_interface_proxy.h:27
Definition: tool_connection_interface.h:29
Definition: tool_connection.h:36
virtual void set_tool(ConfObjectRef tool)
virtual void set_functions(std::vector< std::string > *functions)
virtual void set_controller(ConfObjectRef controller)
static void initialize(const std::string &module_name)
virtual ConfObjectRef controller() const
virtual const std::vector< std::string > & functions() const
Definition: pci_bus_interface.h:24