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 void set_functions(std::vector<std::string> *functions) override;
41 const std::vector<std::string> &functions() const override;
42 bool enabled() const override;
43 void set_tool(ConfObjectRef tool) override;
44 ConfObjectRef tool() const override;
45 void set_controller(ConfObjectRef controller) override;
46 ConfObjectRef controller() const override;
47 bool enable() override;
48 bool disable() override;
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
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:81