SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
argument_registry.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_ARGUMENT_REGISTRY_H
17#define SIMICS_SYSTEMC_ARGUMENT_REGISTRY_H
18
19#include <systemc>
20
21#include <map>
22#include <string>
23#include <utility>
24#include <vector>
25
26namespace sc_core {
27
28int sc_argc();
29const char *const *sc_argv();
30int sc_elab_and_sim(int argc, char *argv[]);
31
32}
33
34namespace simics {
35namespace systemc {
36
39 public:
40 void set_argv(const std::vector<std::string> &argv);
41 const char *const *argv();
42 int argc();
44 private:
45 std::map<sc_core::sc_simcontext*,
46 std::pair<std::vector<char *>,
47 std::vector<std::string> > > arguments_;
48};
49
50} // namespace systemc
51} // namespace simics
52
53#endif
Definition: argument_registry.h:38
static ArgumentRegistry * Instance()
const char *const * argv()
void set_argv(const std::vector< std::string > &argv)
Definition: argument_registry.h:26
int sc_argc()
const char *const * sc_argv()
int sc_elab_and_sim(int argc, char *argv[])
Definition: pci_bus_interface.h:24