SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
module_loaded.h
Go to the documentation of this file.
1/* -*- C++ -*-
2
3 © 2017 Intel Corporation
4
5 This software and the related documents are Intel copyrighted materials, and
6 your use of them is governed by the express license under which they were
7 provided to you ("License"). Unless the License provides otherwise, you may
8 not use, modify, copy, publish, distribute, disclose or transmit this software
9 or the related documents without Intel's prior written permission.
10
11 This software and the related documents are provided as is, with no express or
12 implied warranties, other than those that are expressly stated in the License.
13*/
14
15#ifndef SIMICS_SYSTEMC_MODULE_LOADED_H
16#define SIMICS_SYSTEMC_MODULE_LOADED_H
17
18#include <simics/simulator-api.h>
19
20namespace simics {
21namespace systemc {
22
24 public:
26 virtual ~ModuleLoaded();
27 virtual void loaded(const char *module_name) = 0;
28 static void set_module_name(const char *module_name);
29 static const char *module_name();
30
31 protected:
33 static void callback(lang_void *arg, conf_object_t * /* obj */,
34 const char *name);
35
36 private:
37 static const char *module_name_;
38 hap_handle_t hap_;
39};
40
41} // namespace systemc
42} // namespace simics
43
44#endif // SIMICS_SYSTEMC_MODULE_LOADED_H
Definition: module_loaded.h:23
static void callback(lang_void *arg, conf_object_t *, const char *name)
static void set_module_name(const char *module_name)
virtual void loaded(const char *module_name)=0
static const char * module_name()
Definition: pci_bus_interface.h:24