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/*
2 © 2015 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_ARGUMENT_REGISTRY_H
15#define SIMICS_SYSTEMC_ARGUMENT_REGISTRY_H
16
17#include <systemc>
18
19#include <map>
20#include <string>
21#include <utility>
22#include <vector>
23
24namespace sc_core {
25
26int sc_argc();
27const char *const *sc_argv();
28int sc_elab_and_sim(int argc, char *argv[]);
29
30}
31
32namespace simics {
33namespace systemc {
34
37 public:
38 void set_argv(const std::vector<std::string> &argv);
39 const char *const *argv();
40 int argc();
42 private:
43 std::map<sc_core::sc_simcontext*,
44 std::pair<std::vector<char *>,
45 std::vector<std::string> > > arguments_;
46};
47
48} // namespace systemc
49} // namespace simics
50
51#endif
Definition: argument_registry.h:36
static ArgumentRegistry * Instance()
const char *const * argv()
void set_argv(const std::vector< std::string > &argv)
Definition: argument_registry.h:24
int sc_argc()
const char *const * sc_argv()
int sc_elab_and_sim(int argc, char *argv[])
Definition: adapter.h:79