/usr/include/ptlib/wince/istream.h is in libpt-1.10.10-dev 1.10.10-3.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | //
// (c) 2000 Yuriy Govitovskiy,
// for Openh323, www.Openh323.org
//
// Windows CE Port
//
// istream.h - definitions/declarations for the istream class
//
// [Microsoft]
// [AT&T C++]
//
// [Public]
#ifdef __cplusplus
#ifndef _INC_ISTREAM
#define _INC_ISTREAM
#include <ios.h>
#include <tchar.h>
typedef long streamoff, streampos;
class istream : virtual public ios
{
public:
istream(streambuf*);
virtual ~istream();
int ipfx(int =0);
void isfx() { unlockbuf(); unlock(); }
istream& operator>>(istream& (__cdecl* _f)(istream&));
istream& operator>>(ios& (__cdecl* _f)(ios&));
istream& operator>>(streambuf *);
istream& operator>>(char *);
inline istream& operator>>(unsigned char *);
inline istream& operator>>(signed char *);
istream& operator>>(char &);
inline istream& operator>>(unsigned char &);
inline istream& operator>>(signed char &);
istream& operator>>(short &);
istream& operator>>(unsigned short &);
istream& operator>>(int &);
istream& operator>>(unsigned int &);
istream& operator>>(long &);
istream& operator>>(unsigned long &);
istream& operator>>(float &);
istream& operator>>(double &);
istream& operator>>(long double &);
int get();
inline istream& get( char *,int,char ='\n');
inline istream& get(unsigned char *,int,char ='\n');
inline istream& get( signed char *,int,char ='\n');
istream& get(char &);
inline istream& get(unsigned char &);
inline istream& get( signed char &);
istream& get(streambuf&,char ='\n');
inline istream& getline( char *,int,char ='\n');
inline istream& getline(unsigned char *,int,char ='\n');
inline istream& getline( signed char *,int,char ='\n');
inline istream& ignore(int =1,int =EOF);
istream& read(char *,int);
inline istream& read(unsigned char *,int);
inline istream& read(signed char *,int);
int gcount() const { return x_gcount; }
int peek();
istream& putback(char);
int sync();
istream& seekg(streampos);
istream& seekg(streamoff,ios::seek_dir);
streampos tellg();
void eatwhite();
protected:
istream();
istream(const istream&); // treat as private
istream& operator=(streambuf* _isb); // treat as private
istream& operator=(const istream& _is) { return operator=(_is.rdbuf()); }
istream& get(char *, int, int);
int do_ipfx(int);
private:
istream(ios&);
int getint(char *);
int getdouble(char*, int);
int _fGline;
int x_gcount;
};
inline istream& istream::operator>>(istream& (__cdecl* _f)(istream&)) { (*_f)(*this); return *this; }
inline istream& istream::operator>>(ios& (__cdecl* _f)(ios&)) { (*_f)(*this); return *this; }
inline istream& istream::operator>>(unsigned char * _s) { return operator>>((char *)_s); }
inline istream& istream::operator>>( signed char * _s) { return operator>>((char *)_s); }
inline istream& istream::operator>>(unsigned char & _c) { return operator>>((char &) _c); }
inline istream& istream::operator>>( signed char & _c) { return operator>>((char &) _c); }
inline istream& istream::get( char * _b, int _lim, char _delim) { return get( _b, _lim, (int)(unsigned char)_delim); }
inline istream& istream::get(unsigned char * _b, int _lim, char _delim) { return get((char *)_b, _lim, (int)(unsigned char)_delim); }
inline istream& istream::get(signed char * _b, int _lim, char _delim) { return get((char *)_b, _lim, (int)(unsigned char)_delim); }
inline istream& istream::get(unsigned char & _c) { return get((char &)_c); }
inline istream& istream::get( signed char & _c) { return get((char &)_c); }
inline istream& istream::getline( char * _b,int _lim,char _delim) { lock(); _fGline++; get( _b, _lim, (int)(unsigned char)_delim); unlock(); return *this; }
inline istream& istream::getline(unsigned char * _b,int _lim,char _delim) { lock(); _fGline++; get((char *)_b, _lim, (int)(unsigned char)_delim); unlock(); return *this; }
inline istream& istream::getline( signed char * _b,int _lim,char _delim) { lock(); _fGline++; get((char *)_b, _lim, (int)(unsigned char)_delim); unlock(); return *this; }
inline istream& istream::ignore(int _n,int _delim) { lock(); _fGline++; get((char *)0, _n+1, _delim); unlock(); return *this; }
inline istream& istream::read(unsigned char * _ptr, int _n) { return read((char *) _ptr, _n); }
inline istream& istream::read( signed char * _ptr, int _n) { return read((char *) _ptr, _n); }
class istream_withassign : public istream
{
public:
istream_withassign();
istream_withassign(streambuf*);
~istream_withassign();
istream& operator=(const istream& _is) { return istream::operator=(_is); }
istream& operator=(streambuf* _isb) { return istream::operator=(_isb); }
};
extern istream_withassign cin;
inline istream& ws(istream& _ins) { _ins.eatwhite(); return _ins; }
ios& dec(ios&);
ios& hex(ios&);
ios& oct(ios&);
#endif // _INC_ISTREAM
#endif /* __cplusplus */
|