SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2016 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_VERSION_H
17#define SIMICS_SYSTEMC_VERSION_H
18
20#include <simics/build-id.h>
21
22#include <map>
23#include <string>
24
25namespace simics {
26namespace systemc {
27
28#define CONCAT_DEFERRED_(a, b) a ## b
29#define CONCAT_(a, b) CONCAT_DEFERRED_(a, b)
30#define SCL_VERSION_STRING CONCAT_(SCL_VERSION_, SIM_VERSION)
31
34};
35static SCL_VERSION_STRING scl_version_string;
36
38 public:
40 const char *kernel_version() const;
41 const char *library_version() const;
42 const char *library_kernel_version() const;
43 const std::map<std::string, std::string> *versions() const;
44 bool operator ==(const iface::ScVersionInterface &rhs) const;
45 bool operator !=(const iface::ScVersionInterface &rhs) const;
46
47 protected:
48 void setVersion(const std::string &key, const std::string &value);
49
50 private:
51 std::map<std::string, std::string> versions_;
52};
53
54} // namespace systemc
55} // namespace simics
56
57#endif // SIMICS_SYSTEMC_VERSION_H
58
Definition: version.h:37
bool operator!=(const iface::ScVersionInterface &rhs) const
void setVersion(const std::string &key, const std::string &value)
const char * kernel_version() const
bool operator==(const iface::ScVersionInterface &rhs) const
const char * library_version() const
const std::map< std::string, std::string > * versions() const
const char * library_kernel_version() const
Definition: sc_version_interface.h:27
Definition: pci_bus_interface.h:24
Definition: version.h:32