ObjFW
OFStdIOStream.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
3  * Jonathan Schleifer <js@webkeks.org>
4  *
5  * All rights reserved.
6  *
7  * This file is part of ObjFW. It may be distributed under the terms of the
8  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
9  * the packaging of this file.
10  *
11  * Alternatively, it may be distributed under the terms of the GNU General
12  * Public License, either version 2 or 3, which can be found in the file
13  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
14  * file.
15  */
16 
17 #import "OFStream.h"
18 
19 OF_ASSUME_NONNULL_BEGIN
20 
29 OF_SUBCLASSING_RESTRICTED
31 {
32  int _fd;
33  bool _atEndOfStream;
34 }
35 @end
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
45 extern OFStdIOStream *OF_NULLABLE of_stdin;
46 
50 extern OFStdIOStream *OF_NULLABLE of_stdout;
51 
55 extern OFStdIOStream *OF_NULLABLE of_stderr;
56 
57 extern void of_log(OFConstantString*, ...);
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 OF_ASSUME_NONNULL_END
OFStdIOStream *OF_NULLABLE of_stderr
The standard error as an OFStream.
Definition: OFStdIOStream.m:38
OFStdIOStream *OF_NULLABLE of_stdin
The standard input as an OFStream.
Definition: OFStdIOStream.m:36
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:37
A base class for different types of streams.
Definition: OFStream.h:86
OFStdIOStream *OF_NULLABLE of_stdout
The standard output as an OFStream.
Definition: OFStdIOStream.m:37
A class for providing standard input, output and error as OFStream.
Definition: OFStdIOStream.h:30