112027Sjungma@eit.uni-kl.de/*****************************************************************************
212027Sjungma@eit.uni-kl.de
312027Sjungma@eit.uni-kl.de  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
412027Sjungma@eit.uni-kl.de  more contributor license agreements.  See the NOTICE file distributed
512027Sjungma@eit.uni-kl.de  with this work for additional information regarding copyright ownership.
612027Sjungma@eit.uni-kl.de  Accellera licenses this file to you under the Apache License, Version 2.0
712027Sjungma@eit.uni-kl.de  (the "License"); you may not use this file except in compliance with the
812027Sjungma@eit.uni-kl.de  License.  You may obtain a copy of the License at
912027Sjungma@eit.uni-kl.de
1012027Sjungma@eit.uni-kl.de    http://www.apache.org/licenses/LICENSE-2.0
1112027Sjungma@eit.uni-kl.de
1212027Sjungma@eit.uni-kl.de  Unless required by applicable law or agreed to in writing, software
1312027Sjungma@eit.uni-kl.de  distributed under the License is distributed on an "AS IS" BASIS,
1412027Sjungma@eit.uni-kl.de  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1512027Sjungma@eit.uni-kl.de  implied.  See the License for the specific language governing
1612027Sjungma@eit.uni-kl.de  permissions and limitations under the License.
1712027Sjungma@eit.uni-kl.de
1812027Sjungma@eit.uni-kl.de *****************************************************************************/
1912027Sjungma@eit.uni-kl.de
2012027Sjungma@eit.uni-kl.de/*****************************************************************************
2112027Sjungma@eit.uni-kl.de
2212027Sjungma@eit.uni-kl.de  sc_iostream.h - Portable iostream header file wrapper.
2312027Sjungma@eit.uni-kl.de
2412027Sjungma@eit.uni-kl.de  Original Author: Martin Janssen, Synopsys, Inc.
2512027Sjungma@eit.uni-kl.de
2612027Sjungma@eit.uni-kl.de  Note: Deprecated in the meantime, since all supported
2712027Sjungma@eit.uni-kl.de        compilers are supposed to have a working C++
2812027Sjungma@eit.uni-kl.de        standard library.
2912027Sjungma@eit.uni-kl.de
3012027Sjungma@eit.uni-kl.de  CHANGE LOG AT END OF FILE
3112027Sjungma@eit.uni-kl.de *****************************************************************************/
3212027Sjungma@eit.uni-kl.de
3312027Sjungma@eit.uni-kl.de#ifndef SC_IOSTREAM_H
3412027Sjungma@eit.uni-kl.de#define SC_IOSTREAM_H
3512027Sjungma@eit.uni-kl.de
3612027Sjungma@eit.uni-kl.de#include <ios>
3712027Sjungma@eit.uni-kl.de#include <iostream>
3812027Sjungma@eit.uni-kl.de#include <sstream>
3912027Sjungma@eit.uni-kl.de#include <fstream>
4012027Sjungma@eit.uni-kl.de#include <cstddef>
4112027Sjungma@eit.uni-kl.de#include <cstring>
4212027Sjungma@eit.uni-kl.de
4312027Sjungma@eit.uni-kl.de// We use typedefs for istream and ostream here to get around some finickiness
4412027Sjungma@eit.uni-kl.de// from aCC:
4512027Sjungma@eit.uni-kl.de
4612027Sjungma@eit.uni-kl.denamespace sc_dt {
4712027Sjungma@eit.uni-kl.de
4812027Sjungma@eit.uni-kl.detypedef ::std::istream systemc_istream;
4912027Sjungma@eit.uni-kl.detypedef ::std::ostream systemc_ostream;
5012027Sjungma@eit.uni-kl.de
5112027Sjungma@eit.uni-kl.de} // namespace sc_dt
5212027Sjungma@eit.uni-kl.de
5312027Sjungma@eit.uni-kl.de// shortcuts that save some typing
5412027Sjungma@eit.uni-kl.de
5512027Sjungma@eit.uni-kl.de#ifdef CCAST
5612027Sjungma@eit.uni-kl.de#    undef CCAST
5712027Sjungma@eit.uni-kl.de#endif
5812027Sjungma@eit.uni-kl.de#define CCAST       const_cast
5912027Sjungma@eit.uni-kl.de
6012027Sjungma@eit.uni-kl.de#ifdef DCAST
6112027Sjungma@eit.uni-kl.de#    undef DCAST
6212027Sjungma@eit.uni-kl.de#endif
6312027Sjungma@eit.uni-kl.de#define DCAST     dynamic_cast
6412027Sjungma@eit.uni-kl.de
6512027Sjungma@eit.uni-kl.de#ifdef RCAST
6612027Sjungma@eit.uni-kl.de#    undef RCAST
6712027Sjungma@eit.uni-kl.de#endif
6812027Sjungma@eit.uni-kl.de#define RCAST reinterpret_cast
6912027Sjungma@eit.uni-kl.de
7012027Sjungma@eit.uni-kl.de#ifdef SCAST
7112027Sjungma@eit.uni-kl.de#    undef SCAST
7212027Sjungma@eit.uni-kl.de#endif
7312027Sjungma@eit.uni-kl.de#define SCAST      static_cast
7412027Sjungma@eit.uni-kl.de
7512027Sjungma@eit.uni-kl.de// $Log: sc_iostream.h,v $
7612027Sjungma@eit.uni-kl.de// Revision 1.3  2011/08/26 20:46:18  acg
7712027Sjungma@eit.uni-kl.de//  Andy Goodrich: moved the modification log to the end of the file to
7812027Sjungma@eit.uni-kl.de//  eliminate source line number skew when check-ins are done.
7912027Sjungma@eit.uni-kl.de//
8012027Sjungma@eit.uni-kl.de// Revision 1.2  2011/02/18 20:38:43  acg
8112027Sjungma@eit.uni-kl.de//  Andy Goodrich: Updated Copyright notice.
8212027Sjungma@eit.uni-kl.de//
8312027Sjungma@eit.uni-kl.de// Revision 1.1.1.1  2006/12/15 20:20:06  acg
8412027Sjungma@eit.uni-kl.de// SystemC 2.3
8512027Sjungma@eit.uni-kl.de//
8612027Sjungma@eit.uni-kl.de// Revision 1.3  2006/01/13 18:53:10  acg
8712027Sjungma@eit.uni-kl.de// Andy Goodrich: Added $Log command so that CVS comments are reproduced in
8812027Sjungma@eit.uni-kl.de// the source.
8912027Sjungma@eit.uni-kl.de//
9012027Sjungma@eit.uni-kl.de
9112027Sjungma@eit.uni-kl.de#endif // !defined(SC_IOSTREAM_H)
92