Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
iostream.cpp File Reference
#include <rw/_defs.h>
#include <unistd.h>
#include <iosfwd>
#include <istream>
#include <ostream>
#include <fstream>
#include <memory>
#include <new>
#include <rw/_error.h>
#include "iosdata.h"
#include "podarray.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for iostream.cpp:

Go to the source code of this file.

Macros

#define _RWSTD_LIB_SRC
 
#define _RWSTD_DEFINE_STREAM_OBJECT(buftype, stream, name, ign1, ign2)
 
#define _OBJECT(ignore, name)   name
 
#define _INIT(buftype, stream, name, buf, f)
 

Functions

 _RWSTD_DEFINE_STREAM_OBJECT (filebuf, istream, cin, cin, STDIN_FILENO)
 
 _RWSTD_DEFINE_STREAM_OBJECT (filebuf, ostream, cout, cout, STDOUT_FILENO)
 
 _RWSTD_DEFINE_STREAM_OBJECT (filebuf, ostream, cerr, cerr, STDERR_FILENO)
 
 _RWSTD_DEFINE_STREAM_OBJECT (filebuf, ostream, clog, cerr, STDERR_FILENO)
 
 _RWSTD_DEFINE_STREAM_OBJECT (wfilebuf, wistream, wcin, wcin, STDIN_FILENO)
 
 _RWSTD_DEFINE_STREAM_OBJECT (wfilebuf, wostream, wcout, wcout, STDOUT_FILENO)
 
 _RWSTD_DEFINE_STREAM_OBJECT (wfilebuf, wostream, wcerr, wcerr, STDERR_FILENO)
 
 _RWSTD_DEFINE_STREAM_OBJECT (wfilebuf, wostream, wclog, wcerr, STDERR_FILENO)
 
 _RWSTD_NAMESPACE (__rw)
 
 _RWSTD_NAMESPACE (std)
 

Macro Definition Documentation

◆ _INIT

#define _INIT (   buftype,
  stream,
  name,
  buf,
  f 
)
Value:
/* construct basic_[i|o]stream object backed by a filebuf object */ \
/* backed by a static characater array */ \
new (&_RW::__rw_indestructible_##name) stream \
(new (&_RW::__rw_##name##_buffer) buftype \
(f, _RW::__rw_##name##_databuf, \
sizeof _RW::__rw_##name##_databuf / sizeof *_RW::__rw_##name##_databuf)) \
#define stream
Definition 17.names.cpp:548
#define f
Definition 17.names.cpp:119
const char * name
Definition codecvt1.cpp:72

Definition at line 153 of file iostream.cpp.

◆ _OBJECT

#define _OBJECT (   ignore,
  name 
)    name

Definition at line 119 of file iostream.cpp.

◆ _RWSTD_DEFINE_STREAM_OBJECT

#define _RWSTD_DEFINE_STREAM_OBJECT (   buftype,
  stream,
  name,
  ign1,
  ign2 
)
Value:
/* static character buffer to prevent dynamic allocation */ \
static _STD::stream::char_type __rw_##name##_databuf [512]; \
/* static indestructible `basic_filebuf<>' object */ \
static __rw_aligned_buffer<_STD::buftype> __rw_##name##_buffer; \
/* static indestructible `basic_[i|o]stream<>' object */ \
static __rw_aligned_buffer<_STD::stream> __rw_indestructible_##name; \
} /* namespace __rw */ \
_RWSTD_NAMESPACE (std) { \
/* reference (not object) to a basic_[i|o]stream<> object */ \
= _RWSTD_REINTERPRET_CAST (stream&, _RW::__rw_indestructible_##name); \
} /* namespace std */ \
typedef void __rw_unused_typedef
#define _RWSTD_EXPORT
Definition _defs.h:485
#define _RWSTD_REINTERPRET_CAST(T, x)
Definition _defs.h:535
#define _RWSTD_NAMESPACE(name)
Definition _defs.h:567
Definition json.h:5363

Definition at line 103 of file iostream.cpp.

◆ _RWSTD_LIB_SRC

#define _RWSTD_LIB_SRC

iostream.cpp - source for the Standard Library iostream objects

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2006 Rogue Wave Software.

Definition at line 29 of file iostream.cpp.

Function Documentation

◆ _RWSTD_DEFINE_STREAM_OBJECT() [1/8]

_RWSTD_DEFINE_STREAM_OBJECT ( filebuf  ,
istream  ,
cin  ,
cin  ,
STDIN_FILENO   
)

◆ _RWSTD_DEFINE_STREAM_OBJECT() [2/8]

_RWSTD_DEFINE_STREAM_OBJECT ( filebuf  ,
ostream  ,
cerr  ,
cerr  ,
STDERR_FILENO   
)

◆ _RWSTD_DEFINE_STREAM_OBJECT() [3/8]

_RWSTD_DEFINE_STREAM_OBJECT ( filebuf  ,
ostream  ,
clog  ,
cerr  ,
STDERR_FILENO   
)

◆ _RWSTD_DEFINE_STREAM_OBJECT() [4/8]

_RWSTD_DEFINE_STREAM_OBJECT ( filebuf  ,
ostream  ,
cout  ,
cout  ,
STDOUT_FILENO   
)

◆ _RWSTD_DEFINE_STREAM_OBJECT() [5/8]

_RWSTD_DEFINE_STREAM_OBJECT ( wfilebuf  ,
wistream  ,
wcin  ,
wcin  ,
STDIN_FILENO   
)

◆ _RWSTD_DEFINE_STREAM_OBJECT() [6/8]

_RWSTD_DEFINE_STREAM_OBJECT ( wfilebuf  ,
wostream  ,
wcerr  ,
wcerr  ,
STDERR_FILENO   
)

◆ _RWSTD_DEFINE_STREAM_OBJECT() [7/8]

_RWSTD_DEFINE_STREAM_OBJECT ( wfilebuf  ,
wostream  ,
wclog  ,
wcerr  ,
STDERR_FILENO   
)

◆ _RWSTD_DEFINE_STREAM_OBJECT() [8/8]

_RWSTD_DEFINE_STREAM_OBJECT ( wfilebuf  ,
wostream  ,
wcout  ,
wcout  ,
STDOUT_FILENO   
)

◆ _RWSTD_NAMESPACE() [1/2]

_RWSTD_NAMESPACE ( __rw  )

Definition at line 208 of file iostream.cpp.

◆ _RWSTD_NAMESPACE() [2/2]

_RWSTD_NAMESPACE ( std  )

Definition at line 230 of file iostream.cpp.