SystemC
Recoding Infrastructure for SystemC v0.6.3 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Main Page
Namespaces
Classes
Files
File List
File Members
sysc
utils
sc_iostream.h
Go to the documentation of this file.
1
/*****************************************************************************
2
3
The following code is derived, directly or indirectly, from the SystemC
4
source code Copyright (c) 1996-2014 by all Contributors.
5
All Rights reserved.
6
7
The contents of this file are subject to the restrictions and limitations
8
set forth in the SystemC Open Source License (the "License");
9
You may not use this file except in compliance with such restrictions and
10
limitations. You may obtain instructions on how to receive a copy of the
11
License at http://www.accellera.org/. Software distributed by Contributors
12
under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13
ANY KIND, either express or implied. See the License for the specific
14
language governing rights and limitations under the License.
15
16
*****************************************************************************/
17
18
/*****************************************************************************
19
20
sc_iostream.h - Portable iostream header file wrapper.
21
22
Original Author: Martin Janssen, Synopsys, Inc.
23
24
Note: Deprecated in the meantime, since all supported
25
compilers are supposed to have a working C++
26
standard library.
27
28
CHANGE LOG AT END OF FILE
29
*****************************************************************************/
30
31
#ifndef SC_IOSTREAM_H
32
#define SC_IOSTREAM_H
33
34
#include <ios>
35
#include <iostream>
36
#include <sstream>
37
#include <fstream>
38
#include <cstddef>
39
#include <cstring>
40
41
// We use typedefs for istream and ostream here to get around some finickiness
42
// from aCC:
43
44
namespace
sc_dt {
45
46
typedef ::std::istream
systemc_istream
;
47
typedef ::std::ostream
systemc_ostream
;
48
49
}
// namespace sc_dt
50
51
// shortcuts that save some typing
52
53
#ifdef CCAST
54
# undef CCAST
55
#endif
56
#define CCAST const_cast
57
58
#ifdef DCAST
59
# undef DCAST
60
#endif
61
#define DCAST dynamic_cast
62
63
#ifdef RCAST
64
# undef RCAST
65
#endif
66
#define RCAST reinterpret_cast
67
68
#ifdef SCAST
69
# undef SCAST
70
#endif
71
#define SCAST static_cast
72
73
// $Log: sc_iostream.h,v $
74
// Revision 1.3 2011/08/26 20:46:18 acg
75
// Andy Goodrich: moved the modification log to the end of the file to
76
// eliminate source line number skew when check-ins are done.
77
//
78
// Revision 1.2 2011/02/18 20:38:43 acg
79
// Andy Goodrich: Updated Copyright notice.
80
//
81
// Revision 1.1.1.1 2006/12/15 20:20:06 acg
82
// SystemC 2.3
83
//
84
// Revision 1.3 2006/01/13 18:53:10 acg
85
// Andy Goodrich: Added $Log command so that CVS comments are reproduced in
86
// the source.
87
//
88
89
#endif // !defined(SC_IOSTREAM_H)
sc_dt::systemc_istream
::std::istream systemc_istream
Definition:
sc_iostream.h:46
sc_dt::systemc_ostream
::std::ostream systemc_ostream
Definition:
sc_iostream.h:47
Generated on Wed Aug 18 2021 19:46:50 for SystemC by
1.8.5