/* * * This file and its contents are the property of The MathWorks, Inc. * * This file contains confidential proprietary information. * The reproduction, distribution, utilization or the communication * of this file or any part thereof is strictly prohibited. * Offenders will be held liable for the payment of damages. * * Copyright 1999-2012 The MathWorks, Inc. * */ #ifndef PST_STL_IOSFWD #define PST_STL_IOSFWD // for streamoff and streamsize #include <__polyspace__typedefs.h> // for the fpos_t type. #include <__polyspace__stdio.h> // for the char_traits class. #include <__polyspace__char_traits.h> // determine whether to use the allocator class. #include <__polyspace__allocator.h> namespace std { #ifdef PST_VISUAL #pragma pack(push, 8) /* push default value */ #endif template class fpos { public: fpos() {} fpos(int) {} #ifdef PST_VISUAL fpos(stateT, fpos_t) {} #endif //__ps_bool stateT state() const { stateT * volatile ret; return *ret;} void state(stateT s) {} #ifdef PST_VISUAL #if _MSC_VER <= 1200 fpos_t get_fpos_t() const { volatile fpos_t random = 0; return random; } #endif fpos_t seekpos() const { volatile fpos_t random = 0; return random; } #endif operator int() {volatile int ret = 0; return ret;} fpos &operator += (const fpos &r){return *this;} fpos &operator -= (const fpos &r){return *this;} }; class ios_base; template > class basic_ios; template > class basic_streambuf; template > class basic_istream; template > class basic_ostream; template > class basic_iostream; PST_TEMPLATE_DECL_DEF_FOR_BASIC_STRING_CLASSES(charT, traits, char_traits) class basic_stringbuf; PST_TEMPLATE_DECL_DEF_FOR_BASIC_STRING_CLASSES(charT, traits, char_traits) class basic_istringstream; PST_TEMPLATE_DECL_DEF_FOR_BASIC_STRING_CLASSES(charT, traits, char_traits) class basic_ostringstream; PST_TEMPLATE_DECL_DEF_FOR_BASIC_STRING_CLASSES(charT, traits, char_traits) class basic_stringstream; template > class basic_filebuf; template > class basic_ifstream; template > class basic_ofstream; template > class basic_fstream; // even if we does not define it, we MUST put this declartation in iosfwd template > class istreambuf_iterator ; template > class ostreambuf_iterator ; struct __pst_smanip_typ ; // PST specific : return type for functions typedef basic_ios ios; typedef basic_ios wios; typedef basic_streambuf streambuf; typedef basic_istream istream; typedef basic_ostream ostream; typedef basic_iostream iostream; typedef basic_stringbuf stringbuf; typedef basic_istringstream istringstream; typedef basic_ostringstream ostringstream; typedef basic_stringstream stringstream; typedef basic_filebuf filebuf; typedef basic_ifstream ifstream; typedef basic_ofstream ofstream; typedef basic_fstream fstream; typedef basic_streambuf wstreambuf; typedef basic_istream wistream; typedef basic_ostream wostream; typedef basic_iostream wiostream; typedef basic_stringbuf wstringbuf; typedef basic_istringstream wistringstream; typedef basic_ostringstream wostringstream; typedef basic_stringstream wstringstream; typedef basic_filebuf wfilebuf; typedef basic_ifstream wifstream; typedef basic_ofstream wofstream; typedef basic_fstream wfstream; #ifdef PST_VISUAL #pragma pack(pop) /* pop back to previous value */ #endif } #ifdef __PST_IMPLICIT_USING_STD /* Implicitly include a using directive for the STD namespace when this preprocessing flag is TRUE. */ using namespace std; #endif /* ifdef __PST_IMPLICIT_USING_STD */ #endif /* PST_STL_IOSFWD */