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/*
2 © 2017 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_INSTRUMENTATION_TOOL_CONNECTION_H
15#define SIMICS_SYSTEMC_INSTRUMENTATION_TOOL_CONNECTION_H
16
17#include <simics/cc-api.h>
21
22#include <map>
23#include <string>
24#include <vector>
25
26namespace simics {
27namespace systemc {
28namespace instrumentation {
29
31class ToolConnection : public ConfObject,
35 public:
36 explicit ToolConnection(ConfObjectRef o);
37 virtual ~ToolConnection();
38 void set_functions(std::vector<std::string> *functions) override;
39 const std::vector<std::string> &functions() const override;
40 bool enabled() const override;
41 void set_tool(ConfObjectRef tool) override;
42 ConfObjectRef tool() const override;
43 void set_controller(ConfObjectRef controller) override;
44 ConfObjectRef controller() const override;
45 bool enable() override;
46 bool disable() override;
47 static void initialize(const std::string &module_name);
48 static std::string connection_class_name();
49
50 private:
51 ConfObjectRef tool_;
52 ConfObjectRef controller_;
53 std::map<std::string, const interface_t *> interfaces_;
54 std::vector<std::string> functions_;
55 bool enabled_;
56 static std::string connection_class_name_;
57};
58
59} // namespace instrumentation
60} // namespace systemc
61} // namespace simics
62
63#endif
Interface to the SystemC simulation.
Definition: simulation_interface_proxy.h:25
Definition: tool_connection_interface.h:27
Definition: tool_connection.h:34
void set_controller(ConfObjectRef controller) override
const std::vector< std::string > & functions() const override
void set_functions(std::vector< std::string > *functions) override
void set_tool(ConfObjectRef tool) override
static void initialize(const std::string &module_name)
ConfObjectRef controller() const override
Definition: adapter.h:79