Collaboration diagram for C++ IOStream Fixups And Utilities:
|
Classes | |
| class | CNcbiOstrstreamToString |
| class | CUpcaseStringConverter |
| class | CUpcaseCharPtrConverter |
| class | CLocaseStringConverter |
| class | CLocaseCharPtrConverter |
| class | CPrintableStringConverter |
| class | CPrintableCharPtrConverter |
| class | IReader |
| A very basic data-read interface. More... | |
| class | IWriter |
| A very basic data-write interface. More... | |
| class | IReaderWriter |
| A very basic data-read/write interface. More... | |
| class | CRStream |
| Reader-based stream;. More... | |
| class | CWStream |
| Writer-based stream;. More... | |
| class | CRWStream |
| Reader-writer based stream;. More... | |
| class | CStreamReader |
| istream based IReader More... | |
| struct | CStreamUtils |
| class | CStringReader |
Defines | |
| #define | NcbiCin IO_PREFIX::cin |
| #define | NcbiCout IO_PREFIX::cout |
| #define | NcbiCerr IO_PREFIX::cerr |
| #define | NcbiClog IO_PREFIX::clog |
| #define | NcbiEndl IO_PREFIX::endl |
| #define | NcbiEnds IO_PREFIX::ends |
| #define | NcbiFlush IO_PREFIX::flush |
| #define | NcbiDec IO_PREFIX::dec |
| #define | NcbiHex IO_PREFIX::hex |
| #define | NcbiOct IO_PREFIX::oct |
| #define | NcbiWs IO_PREFIX::ws |
| #define | NcbiSetbase IO_PREFIX::setbase |
| #define | NcbiResetiosflags IO_PREFIX::resetiosflags |
| #define | NcbiSetiosflags IO_PREFIX::setiosflags |
| #define | NcbiSetfill IO_PREFIX::setfill |
| #define | NcbiSetprecision IO_PREFIX::setprecision |
| #define | NcbiSetw IO_PREFIX::setw |
| #define | NcbiGoodbit IOS_PREFIX::goodbit |
| #define | NcbiEofbit IOS_PREFIX::eofbit |
| #define | NcbiFailbit IOS_PREFIX::failbit |
| #define | NcbiBadbit IOS_PREFIX::badbit |
| #define | NcbiHardfail IOS_PREFIX::hardfail |
| #define | CT_INT_TYPE NCBI_NS_STD::char_traits<char>::int_type |
| #define | CT_CHAR_TYPE NCBI_NS_STD::char_traits<char>::char_type |
| #define | CT_POS_TYPE NCBI_NS_STD::char_traits<char>::pos_type |
| #define | CT_OFF_TYPE NCBI_NS_STD::char_traits<char>::off_type |
| #define | CT_EOF NCBI_NS_STD::char_traits<char>::eof() |
| #define | CT_NOT_EOF NCBI_NS_STD::char_traits<char>::not_eof |
| #define | CT_TO_INT_TYPE NCBI_NS_STD::char_traits<char>::to_int_type |
| #define | CT_TO_CHAR_TYPE NCBI_NS_STD::char_traits<char>::to_char_type |
| #define | CT_EQ_INT_TYPE NCBI_NS_STD::char_traits<char>::eq_int_type |
Typedefs | |
| typedef IO_PREFIX::streampos | CNcbiStreampos |
| Portable alias for streampos. | |
| typedef IO_PREFIX::streamoff | CNcbiStreamoff |
| Portable alias for streamoff. | |
| typedef IO_PREFIX::ios | CNcbiIos |
| Portable alias for ios. | |
| typedef IO_PREFIX::streambuf | CNcbiStreambuf |
| Portable alias for streambuf. | |
| typedef IO_PREFIX::istream | CNcbiIstream |
| Portable alias for istream. | |
| typedef IO_PREFIX::ostream | CNcbiOstream |
| Portable alias for ostream. | |
| typedef IO_PREFIX::iostream | CNcbiIostream |
| Portable alias for iostream. | |
| typedef IO_PREFIX::strstreambuf | CNcbiStrstreambuf |
| Portable alias for strstreambuf. | |
| typedef IO_PREFIX::istrstream | CNcbiIstrstream |
| Portable alias for istrstream. | |
| typedef IO_PREFIX::ostrstream | CNcbiOstrstream |
| Portable alias for ostrstream. | |
| typedef IO_PREFIX::strstream | CNcbiStrstream |
| Portable alias for strstream. | |
| typedef IO_PREFIX::filebuf | CNcbiFilebuf |
| Portable alias for filebuf. | |
| typedef IO_PREFIX::ifstream | CNcbiIfstream |
| Portable alias for ifstream. | |
| typedef IO_PREFIX::ofstream | CNcbiOfstream |
| Portable alias for ofstream. | |
| typedef IO_PREFIX::fstream | CNcbiFstream |
| Portable alias for fstream. | |
Enumerations | |
| enum | ERW_Result { eRW_NotImplemented = -1, eRW_Success = 0, eRW_Timeout, eRW_Error, eRW_Eof } |
| Result codes for I/O operations. More... | |
Functions | |
| const char * | Endl (void) |
| Platform-specific EndOfLine. | |
| CNcbiIstream & | NcbiGetline (CNcbiIstream &is, string &str, char delim) |
| Read from "is" to "str" up to the delimiter symbol "delim" (or EOF). | |
| CNcbiIstream & | NcbiGetline (CNcbiIstream &is, string &str, const string &delims) |
| Read from "is" to "str" up to any symbol contained within "delims" (or EOF). | |
| CNcbiIstream & | NcbiGetlineEOL (CNcbiIstream &is, string &str) |
| Read from "is" to "str" the next line (taking into account platform specifics of End-of-Line). | |
| bool | NcbiStreamCopy (CNcbiOstream &os, CNcbiIstream &is) |
| Copy entire contents of stream "is" into "os". | |
| Int8 | NcbiStreamposToInt8 (NCBI_NS_STD::char_traits< char >::pos_type stream_pos) |
| Convert stream position to 64-bit int. | |
| NCBI_NS_STD::char_traits< char >::pos_type | NcbiInt8ToStreampos (Int8 pos) |
| Convert plain numeric stream position (offset) into stream position usable with STL stream library. | |
| void | ExtractReaderContents (IReader &reader, string &s) |
| Appends to the given string. | |
|
|
|
|
|
Definition at line 378 of file ncbistre.hpp. Referenced by CCgiEntryReaderContext::CCgiEntryReaderContext(), NcbiGetline(), CRotatingLogStreamBuf::overflow(), CDiagLexParser::Parse(), s_ReadFasta_OLD(), CCgiObuffer::sync(), CStreamLineReader::x_AdvanceEOLUnknown(), and CCgiEntryReaderContext::x_DelimitedRead(). |
|
|
Definition at line 383 of file ncbistre.hpp. Referenced by CCompressionStreambuf::overflow(), CIndentingStreambuf::overflow(), CPushback_Streambuf::overflow(), CRWStreambuf::overflow(), CConn_Streambuf::overflow(), and CCgiObuffer::overflow(). |
|
|
|
|
Definition at line 385 of file ncbistre.hpp. Referenced by CIndentingStreambuf::overflow(), CByteStreamBuf::overflow(), CPushback_Streambuf::overflow(), CRWStreambuf::overflow(), CConn_Streambuf::overflow(), CCgiObuffer::overflow(), CDiagLexParser::Parse(), ReadSingleLine(), and s_ReadFasta_OLD(). |
|
|
|
Definition at line 315 of file ncbistre.hpp. |
|
|
|
|
Definition at line 293 of file ncbistre.hpp. |
|
|
|
Definition at line 299 of file ncbistre.hpp. |
|
|
|
Definition at line 297 of file ncbistre.hpp. |
|
|
Definition at line 313 of file ncbistre.hpp. |
|
|
Definition at line 314 of file ncbistre.hpp. Referenced by NcbiGetlineEOL(), NcbiStreamCopy(), and s_DoReadsome(). |
|
|
Definition at line 298 of file ncbistre.hpp. Referenced by CCgiResponse::EndLastPart(), CCgiResponse::EndPart(), CCgiResponse::Flush(), and CStreamDiagHandler::Post(). |
|
|
Definition at line 312 of file ncbistre.hpp. |
|
|
Definition at line 316 of file ncbistre.hpp. |
|
|
Definition at line 300 of file ncbistre.hpp. |
|
|
Definition at line 301 of file ncbistre.hpp. |
|
|
Definition at line 305 of file ncbistre.hpp. |
|
|
Definition at line 304 of file ncbistre.hpp. |
|
|
Definition at line 307 of file ncbistre.hpp. |
|
|
Definition at line 306 of file ncbistre.hpp. |
|
|
Definition at line 308 of file ncbistre.hpp. |
|
|
Definition at line 309 of file ncbistre.hpp. |
|
|
Definition at line 302 of file ncbistre.hpp. |
|
|
Portable alias for filebuf.
Definition at line 165 of file ncbistre.hpp. |
|
|
Portable alias for fstream.
Definition at line 286 of file ncbistre.hpp. |
|
|
Portable alias for ifstream.
Definition at line 204 of file ncbistre.hpp. |
|
|
Portable alias for ios.
Definition at line 138 of file ncbistre.hpp. |
|
|
Portable alias for iostream.
Definition at line 150 of file ncbistre.hpp. |
|
|
Portable alias for istream.
Definition at line 144 of file ncbistre.hpp. |
|
|
Portable alias for istrstream.
Definition at line 156 of file ncbistre.hpp. |
|
|
Portable alias for ofstream.
Definition at line 244 of file ncbistre.hpp. |
|
|
Portable alias for ostream.
Definition at line 147 of file ncbistre.hpp. |
|
|
Portable alias for ostrstream.
Definition at line 159 of file ncbistre.hpp. |
|
|
Portable alias for streambuf.
Definition at line 141 of file ncbistre.hpp. |
|
|
Portable alias for streamoff.
Definition at line 135 of file ncbistre.hpp. |
|
|
Portable alias for streampos.
Definition at line 132 of file ncbistre.hpp. |
|
|
Portable alias for strstream.
Definition at line 162 of file ncbistre.hpp. |
|
|
Portable alias for strstreambuf.
Definition at line 153 of file ncbistre.hpp. |
|
|
Result codes for I/O operations.
Definition at line 57 of file reader_writer.hpp. |
|
|
Platform-specific EndOfLine.
Definition at line 151 of file ncbistre.cpp. Referenced by CDB_MultiEx::ReportErrorStack(), CDB_MultiEx::ReportExtra(), s_WriteComment(), and IRegistry::Write(). |
|
||||||||||||
|
Appends to the given string.
Definition at line 536 of file stream_utils.cpp. References eRW_Success, and pos. Referenced by CCgiEntry::x_ForceComplete(). |
|
||||||||||||||||
|
Read from "is" to "str" up to any symbol contained within "delims" (or EOF).
Definition at line 46 of file ncbistre.cpp. |
|
||||||||||||||||
|
Read from "is" to "str" up to the delimiter symbol "delim" (or EOF).
Definition at line 120 of file ncbistre.cpp. Referenced by MyGetline(), NcbiGetline(), NcbiGetlineEOL(), CStreamLineReader::operator++(), CSplitCacheApp::Process(), ProcessStream(), CAgpReader::ReadStream(), COMSSAMerge::Run(), s_ReadLine(), CFormatGuess::TestFormatTextAsn(), CStreamLineReader::x_AdvanceEOLCRLF(), CStreamLineReader::x_AdvanceEOLSimple(), CStreamLineReader::x_AdvanceEOLUnknown(), CCgiEntryReaderContext::x_DelimitedRead(), CAgpValidateApplication::x_LoadLenFa(), and CAgpValidateApplication::x_ValidateFile(). |
|
||||||||||||
|
Read from "is" to "str" the next line (taking into account platform specifics of End-of-Line).
Definition at line 163 of file ncbistre.cpp. References NcbiFailbit, and NcbiGetline(). Referenced by AgpRead(), CBlastDBAliasApp::ConvertGiFile(), CDumpSysInfo::DumpSystemInfo(), CFormatGuess::EnsureStats(), CWinMaskConfig::FillIdList(), CTextUtil::GetWordFrequencies(), CProjectsLstFileFilter::InitFromFile(), CIdMapperConfig::Initialize(), CSimpleMakeFileContents::LoadFrom(), CProjBulderApp::LoadProjectTags(), CTrInputStream::NextElement(), CPkl2hdf5Application::parse_pkl(), CSimpleDictionary::Read(), CRmOutReader::Read(), CDistanceMatrix::Read(), CDiagErrCodeInfo::Read(), ReadTextFile(), CMytestApplication::Run(), s_CheckSorted(), s_ReadFasta_OLD(), CTaxIdSet::SetMappingFromFile(), and IRWRegistry::x_Read(). |
|
|
Convert plain numeric stream position (offset) into stream position usable with STL stream library.
Definition at line 433 of file ncbistre.hpp. References CT_OFF_TYPE, and CT_POS_TYPE. Referenced by CMemoryLineReader::GetPosition(), and CBDB_ExtBlobStore< TBV >::ReadBlob(). |
|
||||||||||||
|
Copy entire contents of stream "is" into "os". Return "true" if the operation was successful, "is" was read entirely, and all its contents reached "os"; "false" if either extraction from "is" or insertion into "os" failed. Note that upon successful completion, is.eof() is always true. The call may throw exceptions only if they are enabled on respective stream(s). Note that the call is an extension to the standard istream::operator<<(streambuf*), which severely lacks error checking (esp. for partial write failures). Definition at line 181 of file ncbistre.cpp. References CT_EOF, CT_EQ_INT_TYPE, and NcbiFailbit. Referenced by CTmpStreamGuard::Close(), CCgiApplication::GetResultFromCache(), CIdMapperConfig::Initialize(), CGBProjectHandle::Load(), and CCgiApplication::SaveResultToCache(). |
|
|
Convert stream position to 64-bit int. On most systems stream position is a structure, this function converts it to plain numeric value.
Definition at line 422 of file ncbistre.hpp. References CT_OFF_TYPE, and CT_POS_TYPE. Referenced by CBDB_ExtBlobStore< TBV >::Flush(), CObjectOStream::GetPosition(), CObjectIStream::GetPosition(), CProcessor_St_SE_SNPT::ProcessStream(), s_FindAttribute(), CLDS_Object::SaveObject(), CFastaReader::StreamPosition(), and CCgiApplication::x_OnEvent(). |
1.4.6
Modified on Mon Nov 09 15:48:47 2009 by modify_doxy.py rev. 173732