SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
proxy_factory_export.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2015 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_AWARENESS_PROXY_FACTORY_EXPORT_H
17#define SIMICS_SYSTEMC_AWARENESS_PROXY_FACTORY_EXPORT_H
18
23
24#include <string>
25
26namespace simics {
27namespace systemc {
28namespace awareness {
29
30class ProxyFactoryExport : public ProxyFactory<ProxyExport> {
31 public:
32 virtual bool canManufacture(sc_core::sc_object *object) const {
33 return dynamic_cast<sc_core::sc_export_base *>(object);
34 }
35
36 void registerInterfaces(sc_core::sc_object *object,
37 conf_class_t *cls) const {
39 registerInterface<iface::ScExportSimicsAdapter<ProxyExport> >(cls);
40 }
41};
42
43} // namespace awareness
44} // namespace systemc
45} // namespace simics
46
47#endif
Definition: proxy_factory_export.h:30
virtual bool canManufacture(sc_core::sc_object *object) const
Definition: proxy_factory_export.h:32
void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory_export.h:36
Definition: proxy_factory.h:44
virtual void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory.h:117
Definition: pci_bus_interface.h:24