C++ IOStream Fixups And Utilities
[CORELIB]

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.
CNcbiIstreamNcbiGetline (CNcbiIstream &is, string &str, char delim)
 Read from "is" to "str" up to the delimiter symbol "delim" (or EOF).
CNcbiIstreamNcbiGetline (CNcbiIstream &is, string &str, const string &delims)
 Read from "is" to "str" up to any symbol contained within "delims" (or EOF).
CNcbiIstreamNcbiGetlineEOL (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.


Define Documentation

#define CT_CHAR_TYPE   NCBI_NS_STD::char_traits<char>::char_type
 

Definition at line 379 of file ncbistre.hpp.

Referenced by CByteStreamBuf::CByteStreamBuf(), CCgiObuffer::CCgiObuffer(), CCompressionStreambuf::CCompressionStreambuf(), CConn_Streambuf::CConn_Streambuf(), CCompressionStreambuf::Flush(), CRWStreambuf::overflow(), CConn_Streambuf::overflow(), CCgiObuffer::overflow(), CDiagLexParser::Parse(), CStreamByteSourceReader::Pushback(), ReadSingleLine(), CRWStreambuf::setbuf(), CCgiObuffer::sync(), CPushback_Streambuf::underflow(), CRWStreambuf::underflow(), CConn_Streambuf::underflow(), CPushback_Streambuf::x_FillBuffer(), CCgiIbuffer::x_Setg(), CRWStreambuf::xsgetn(), CConn_Streambuf::xsgetn(), and CPushback_Streambuf::~CPushback_Streambuf().

#define CT_EOF   NCBI_NS_STD::char_traits<char>::eof()
 

Definition at line 382 of file ncbistre.hpp.

Referenced by CStreamLineReader::AtEOF(), CCgiEntryReaderContext::CCgiEntryReaderContext(), NcbiGetline(), NcbiStreamCopy(), CRotatingLogStreamBuf::overflow(), CCompressionStreambuf::overflow(), CIndentingStreambuf::overflow(), CByteStreamBuf::overflow(), CPushback_Streambuf::overflow(), CRWStreambuf::overflow(), CConn_Streambuf::overflow(), CCgiObuffer::overflow(), CDiagLexParser::Parse(), CIndentingStreambuf::pbackfail(), CPushback_Streambuf::pbackfail(), ReadSingleLine(), CByteStreamBuf::sync(), CRWStreambuf::sync(), CConn_Streambuf::sync(), CCgiObuffer::sync(), CCompressionStreambuf::underflow(), CByteStreamBuf::underflow(), CPushback_Streambuf::underflow(), CRWStreambuf::underflow(), CConn_Streambuf::underflow(), CCgiIbuffer::underflow(), CCgiEntryReaderContext::x_DelimitedRead(), and CCompressionStreambuf::xsputn().

#define CT_EQ_INT_TYPE   NCBI_NS_STD::char_traits<char>::eq_int_type
 

Definition at line 386 of file ncbistre.hpp.

Referenced by CStreamLineReader::AtEOF(), CCgiEntryReaderContext::CCgiEntryReaderContext(), NcbiGetline(), NcbiStreamCopy(), CRotatingLogStreamBuf::overflow(), CCompressionStreambuf::overflow(), CIndentingStreambuf::overflow(), CByteStreamBuf::overflow(), CPushback_Streambuf::overflow(), CRWStreambuf::overflow(), CConn_Streambuf::overflow(), CCgiObuffer::overflow(), CDiagLexParser::Parse(), CIndentingStreambuf::pbackfail(), ReadSingleLine(), CRWStreambuf::sync(), CConn_Streambuf::sync(), CCgiObuffer::sync(), CStreamLineReader::x_AdvanceEOLUnknown(), and CCgiEntryReaderContext::x_DelimitedRead().

#define CT_INT_TYPE   NCBI_NS_STD::char_traits<char>::int_type
 

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().

#define CT_NOT_EOF   NCBI_NS_STD::char_traits<char>::not_eof
 

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().

#define CT_OFF_TYPE   NCBI_NS_STD::char_traits<char>::off_type
 

Definition at line 381 of file ncbistre.hpp.

Referenced by COStreamBuffer::FlushBuffer(), CBufferedLineReader::GetPosition(), CWigBufferedLineReader::GetPosition(), NcbiInt8ToStreampos(), NcbiStreamposToInt8(), CRWStreambuf::overflow(), CConn_Streambuf::overflow(), CPushback_Streambuf::seekoff(), CRWStreambuf::seekoff(), CConn_Streambuf::seekoff(), CRWStreambuf::underflow(), CConn_Streambuf::underflow(), CTar::x_Backspace(), CRWStreambuf::x_GetGPos(), CRWStreambuf::x_GetPPos(), CBufferedLineReader::x_ReadBuffer(), CWigBufferedLineReader::x_ReadBuffer(), CDBAPI_CacheIWriter::x_SaveBlob(), CTar::x_Skip(), CRWStreambuf::xsgetn(), and CConn_Streambuf::xsgetn().

#define CT_POS_TYPE   NCBI_NS_STD::char_traits<char>::pos_type
 

Definition at line 380 of file ncbistre.hpp.

Referenced by CheckStreamState(), CPdf::EndDocument(), NcbiInt8ToStreampos(), NcbiStreamposToInt8(), CViewAsn::OnProjectChanged(), PluginInfoFromRegistry(), CAbstractProjectItem::PreWrite(), CPhrapReader::Read(), CDistanceMatrix::Read(), CPhrap_Read::ReadDS(), CPhrap_Contig::ReadReadLocation(), CPhrap_Sequence::ReadTag(), CPhrap_Contig::ReadTag(), CPhrap_Read::ReadTag(), s_Compress(), s_GuessMol(), s_ReadFasta_OLD(), CPushback_Streambuf::seekoff(), CRWStreambuf::seekoff(), CConn_Streambuf::seekoff(), CFastaTextDisplay::Update(), CPdfObjectWriter::WriteXRef(), CPhrapReader::x_AddContig(), CPhrapReader::x_AddRead(), CTar::x_Backspace(), CDataPlugin_FileImport::x_GetFormat(), CPhrapReader::x_GetNewTag(), CPhrapReader::x_GetOldTag(), CPhrapReader::x_ReadContig(), CPhrapReader::x_ReadTag(), CPhrapReader::x_ReadWA(), CDBAPI_CacheIWriter::x_SaveBlob(), CPdfObjectWriter::x_SaveObjectOffset(), and CTar::x_Skip().

#define CT_TO_CHAR_TYPE   NCBI_NS_STD::char_traits<char>::to_char_type
 

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().

#define CT_TO_INT_TYPE   NCBI_NS_STD::char_traits<char>::to_int_type
 

Definition at line 384 of file ncbistre.hpp.

Referenced by NcbiGetline(), ReadSingleLine(), CCompressionStreambuf::underflow(), CByteStreamBuf::underflow(), CPushback_Streambuf::underflow(), CRWStreambuf::underflow(), CConn_Streambuf::underflow(), CStreamLineReader::x_AdvanceEOLUnknown(), and CCgiEntryReaderContext::x_DelimitedRead().

#define NcbiBadbit   IOS_PREFIX::badbit
 

Definition at line 315 of file ncbistre.hpp.

#define NcbiCerr   IO_PREFIX::cerr
 

Definition at line 292 of file ncbistre.hpp.

Referenced by CReadBlastApp::addLocation(), CReadBlastApp::AnalyzeSeqs(), CReadBlastApp::AnalyzeSeqsViaBioseqs(), CReadBlastApp::append_misc_feature(), CAV_DisplayMultiple(), CResultSet::CheckIdx(), CReadBlastApp::CheckMissingRibosomalRNA(), CReadBlastApp::CollectFrameshiftedSeqs(), CReadBlastApp::CollectRNAFeatures(), CReadBlastApp::CopyInfoFromGenesToProteins(), CreateDefaultDiagHandler(), CSeqMaskerIstatOBinary::CSeqMaskerIstatOBinary(), CProcess::Daemonize(), CSeqMaskerOstatOpt::doFinalize(), CBDB_FileDumperApp::Dump(), CReadBlastApp::erase_problems(), CReadBlastApp::find_overlap(), CReadBlastApp::fit_blast(), CReadBlastApp::FixStrands(), Get3type(), get_my_feat_type(), CReadBlastApp::get_neighboring_sequences(), get_parent_seqset(), CReadBlastApp::getGenomicInterval(), CReadBlastApp::getGenomicLocation(), CReadBlastApp::GetRNAfeats(), CReadBlastApp::giMatch(), CReadBlastApp::has_blast_hits(), CReadBlastApp::hasGenomicInterval(), CReadBlastApp::hasGenomicLocation(), CReadBlastApp::hasProblems(), let1_2_let3(), LoadDemoDB(), main(), CReadBlastApp::match_na(), CStderrDiagFactory::New(), CReadBlastApp::overlaps_na(), CReadBlastApp::overlaps_prot_na(), CReadBlastApp::PrintDetails(), CBlastFormatterApp::PrintFormattedOutput(), CReadBlastApp::processAnnot(), CReadBlastApp::ProcessCDD(), CAsnvalApp::ProcessReleaseFile(), Ctbl_feat::Read(), CReadBlastApp::ReadBlast(), CReadBlastApp::ReadParents(), CReadBlastApp::ReadRRNA2(), CReadBlastApp::ReadTRNA(), CReadBlastApp::ReadTRNA2(), CReadBlastApp::RemoveInterim(), CReadBlastApp::RemoveProblems(), tracker::report_match(), CReadBlastApp::reportProblems(), CSampleObjectsApplication::Run(), CBDB_FileDumperApp::Run(), CBDB_CacheVerifyApp::Run(), CReadBlastApp::Run(), CGuideTreeApplication::Run(), CMultiApplication::Run(), CAsn2Asn::RunAsn2Asn(), s_Demo(), CAlnMrgApp::SetOptions(), CReadBlastApp::simple_overlaps(), CReadBlastApp::skip_to_valid_seq_cand(), CReadBlastApp::skip_toprot(), CReadBlastApp::SortSeqs(), CReadBlastApp::StoreBlast(), CReadBlastApp::ugly_simple_overlaps_call(), CWriteSeqEntryHook::WriteObject(), CFlatGatherer::x_GatherBioseq(), CCompareSeqRegions::x_GetPutativeMatches(), CResultSet::xGetBlobOStream(), and CEmailDiagHandler::~CEmailDiagHandler().

#define NcbiCin   IO_PREFIX::cin
 

Definition at line 290 of file ncbistre.hpp.

Referenced by CObjectIStream::GetSource(), CCodeGenerator::LoadConfig(), CTest::Run(), CMkIndexApplication::Run(), SourceFile::SourceFile(), CCleanupApp::x_OpenIStream(), CAsn2FlatApp::x_OpenIStream(), CAsn2FastaApp::x_OpenIStream(), CCgiRequest::x_ProcessInputStream(), and CWinMaskConfig::CIstreamProxy::~CIstreamProxy().

#define NcbiClog   IO_PREFIX::clog
 

Definition at line 293 of file ncbistre.hpp.

#define NcbiCout   IO_PREFIX::cout
 

Definition at line 291 of file ncbistre.hpp.

Referenced by CAV_DisplayMultiple(), CCgiResponse::CCgiResponse(), CBlobSplitterImpl::CollectPieces(), CWinMaskCountsConverter::CWinMaskCountsConverter(), CProcess::Daemonize(), DestinationFile::DestinationFile(), DisplayDiagnostic(), DumpParams(), CLDS_Manager::DumpTable(), CRemoteBlast::GetResultSet(), CSplitCacheApp::Info(), LoadDemoDB(), LogTime(), main(), CObjectOStream::Open(), CWinMaskCountsConverter::operator()(), PrintDemoDB(), CRemoteAppClientSampleApp::PrintJobInfo(), CAsnvalApp::PrintValidError(), CFormatReadHook::ReadObject(), CSampleObjmgrApplication::Run(), CEditBioseqSampleApp::Run(), CRemoteAppClientSampleApp::Run(), CSampleNetScheduleNode::Run(), CSampleNetScheduleClient::Run(), CGridClientSampleApp::Run(), CSampleNetCacheClient::Run(), CSampleLdsApplication::Run(), CDbapiTest::Run(), CAce2AsnApp::Run(), CAutoDefDemo::Run(), CAlnVwrApp::Run(), CDBAPI_CacheAdmin::Run(), CMytestApplication::Run(), CDemoApp::Run(), CSaveToNetCacheApp::Run(), CNetScheduleControl::Run(), CNSRemoveJobControlApp::Run(), CSRSearchApplication::Run(), CRemoteAppClientSampleApp::ShowBlob(), CReadInSkipClassMemberHook< Member >::SkipClassMember(), CReadInSkipObjectHook< Object >::SkipObject(), CBlobSplitterImpl::SplitPieces(), CSplitCacheApp::TestSplitBlob(), CAlnVwrApp::View10(), CAlnVwrApp::View7(), CAlnVwrApp::View8(), CAlnVwrApp::View9(), CAlnMrgApp::ViewMergedAln(), CNcbiApplication::~CNcbiApplication(), CWinMaskConfig::COstreamProxy::~COstreamProxy(), CPackStringChoiceHook::~CPackStringChoiceHook(), CPackStringClassHook::~CPackStringClassHook(), and CSeqMaskerOstatAscii::~CSeqMaskerOstatAscii().

#define NcbiDec   IO_PREFIX::dec
 

Definition at line 299 of file ncbistre.hpp.

#define NcbiEndl   IO_PREFIX::endl
 

Definition at line 296 of file ncbistre.hpp.

Referenced by CReadBlastApp::AnalyzeSeqs(), CReadBlastApp::CheckMissingRibosomalRNA(), CBlobSplitterImpl::CollectPieces(), CReadBlastApp::CopyInfoFromGenesToProteins(), CXmlTagWriter::CXmlTagWriter(), CBDB_FileDumperApp::Dump(), DumpParams(), CLDS_Manager::DumpTable(), CLog::End(), CReadBlastApp::erase_problems(), ExportTableToCSV(), CReadBlastApp::find_overlap(), CReadBlastApp::fit_blast(), Get3type(), get_my_feat_type(), CReadBlastApp::getGenomicInterval(), CReadBlastApp::getGenomicLocation(), CReadBlastApp::giMatch(), CReadBlastApp::hasGenomicInterval(), CReadBlastApp::hasGenomicLocation(), LogTime(), CId1FetchApp::LookUpGI(), CReadBlastApp::match_na(), CReadBlastApp::overlaps_na(), CReadBlastApp::overlaps_prot_na(), PrintDemoDB(), CReadBlastApp::printGeneralInfo(), CBDB_Env::PrintLockStat(), CBDB_Env::PrintMemStat(), CBDB_Env::PrintMutexStat(), CGuideTree::PrintNewickTree(), CGuideTree::PrintNexusTree(), CReadBlastApp::printOverlapReport(), CReadBlastApp::printPerfectHit(), CBDB_RawFile::PrintStat(), Ctbl_feat::Read(), CReadBlastApp::ReadBlast(), CFormatReadHook::ReadObject(), CReadBlastApp::ReadParents(), CReadBlastApp::ReadRRNA2(), CReadBlastApp::ReadTRNA(), CReadBlastApp::reportProblems(), CSampleObjmgrApplication::Run(), CEditBioseqSampleApp::Run(), CRemoteAppClientSampleApp::Run(), CSampleNetScheduleNode::Run(), CSampleNetScheduleClient::Run(), CGridClientSampleApp::Run(), CSampleNetCacheClient::Run(), CSampleLdsApplication::Run(), CAce2AsnApp::Run(), CAutoDefDemo::Run(), CAlnVwrApp::Run(), CDBAPI_CacheAdmin::Run(), CReadBlastApp::Run(), CGuideTreeApplication::Run(), CBlastDBCmdApp::Run(), CMultiApplication::Run(), CAsn2Asn::RunAsn2Asn(), s_Demo(), CAlnMapPrinter::Segments(), CReadInSkipClassMemberHook< Member >::SkipClassMember(), CReadInSkipObjectHook< Object >::SkipObject(), CBlobSplitterImpl::SplitPieces(), CReadBlastApp::StoreBlast(), CSplitCacheApp::TestSplitBlob(), CAlnVwrApp::View7(), CAlnVwrApp::View9(), CAlnMrgApp::ViewMergedAln(), SDiagMessage::Write(), CPhyloTreeNodeGroupper::x_OnStep(), CPhyloTreeNodeGroupper::x_OnStepDown(), CPhyloTreeNodeGroupper::x_OnStepRight(), CMultiAlnPrinter::x_PrintFastaPlusGaps(), CMultiAlnPrinter::x_PrintPhylipInterleaved(), CMultiAlnPrinter::x_PrintPhylipSequential(), CXmlTagWriter::x_WriteCloseTag(), CXmlTagWriter::x_WriteStream(), CTextTagWriter::x_WriteStream(), CXmlTagWriter::x_WriteTag(), CXmlTagWriter::x_WriteText(), CTextTagWriter::x_WriteText(), CPackStringChoiceHook::~CPackStringChoiceHook(), and CPackStringClassHook::~CPackStringClassHook().

#define NcbiEnds   IO_PREFIX::ends
 

Definition at line 297 of file ncbistre.hpp.

#define NcbiEofbit   IOS_PREFIX::eofbit
 

Definition at line 313 of file ncbistre.hpp.

#define NcbiFailbit   IOS_PREFIX::failbit
 

Definition at line 314 of file ncbistre.hpp.

Referenced by NcbiGetlineEOL(), NcbiStreamCopy(), and s_DoReadsome().

#define NcbiFlush   IO_PREFIX::flush
 

Definition at line 298 of file ncbistre.hpp.

Referenced by CCgiResponse::EndLastPart(), CCgiResponse::EndPart(), CCgiResponse::Flush(), and CStreamDiagHandler::Post().

#define NcbiGoodbit   IOS_PREFIX::goodbit
 

Definition at line 312 of file ncbistre.hpp.

#define NcbiHardfail   IOS_PREFIX::hardfail
 

Definition at line 316 of file ncbistre.hpp.

#define NcbiHex   IO_PREFIX::hex
 

Definition at line 300 of file ncbistre.hpp.

#define NcbiOct   IO_PREFIX::oct
 

Definition at line 301 of file ncbistre.hpp.

#define NcbiResetiosflags   IO_PREFIX::resetiosflags
 

Definition at line 305 of file ncbistre.hpp.

#define NcbiSetbase   IO_PREFIX::setbase
 

Definition at line 304 of file ncbistre.hpp.

#define NcbiSetfill   IO_PREFIX::setfill
 

Definition at line 307 of file ncbistre.hpp.

#define NcbiSetiosflags   IO_PREFIX::setiosflags
 

Definition at line 306 of file ncbistre.hpp.

#define NcbiSetprecision   IO_PREFIX::setprecision
 

Definition at line 308 of file ncbistre.hpp.

#define NcbiSetw   IO_PREFIX::setw
 

Definition at line 309 of file ncbistre.hpp.

#define NcbiWs   IO_PREFIX::ws
 

Definition at line 302 of file ncbistre.hpp.


Typedef Documentation

typedef IO_PREFIX::filebuf CNcbiFilebuf
 

Portable alias for filebuf.

Definition at line 165 of file ncbistre.hpp.

typedef IO_PREFIX::fstream CNcbiFstream
 

Portable alias for fstream.

Definition at line 286 of file ncbistre.hpp.

typedef IO_PREFIX::ifstream CNcbiIfstream
 

Portable alias for ifstream.

Definition at line 204 of file ncbistre.hpp.

typedef IO_PREFIX::ios CNcbiIos
 

Portable alias for ios.

Definition at line 138 of file ncbistre.hpp.

typedef IO_PREFIX::iostream CNcbiIostream
 

Portable alias for iostream.

Definition at line 150 of file ncbistre.hpp.

typedef IO_PREFIX::istream CNcbiIstream
 

Portable alias for istream.

Definition at line 144 of file ncbistre.hpp.

typedef IO_PREFIX::istrstream CNcbiIstrstream
 

Portable alias for istrstream.

Definition at line 156 of file ncbistre.hpp.

typedef IO_PREFIX::ofstream CNcbiOfstream
 

Portable alias for ofstream.

Definition at line 244 of file ncbistre.hpp.

typedef IO_PREFIX::ostream CNcbiOstream
 

Portable alias for ostream.

Definition at line 147 of file ncbistre.hpp.

typedef IO_PREFIX::ostrstream CNcbiOstrstream
 

Portable alias for ostrstream.

Definition at line 159 of file ncbistre.hpp.

typedef IO_PREFIX::streambuf CNcbiStreambuf
 

Portable alias for streambuf.

Definition at line 141 of file ncbistre.hpp.

typedef IO_PREFIX::streamoff CNcbiStreamoff
 

Portable alias for streamoff.

Definition at line 135 of file ncbistre.hpp.

typedef IO_PREFIX::streampos CNcbiStreampos
 

Portable alias for streampos.

Definition at line 132 of file ncbistre.hpp.

typedef IO_PREFIX::strstream CNcbiStrstream
 

Portable alias for strstream.

Definition at line 162 of file ncbistre.hpp.

typedef IO_PREFIX::strstreambuf CNcbiStrstreambuf
 

Portable alias for strstreambuf.

Definition at line 153 of file ncbistre.hpp.


Enumeration Type Documentation

enum ERW_Result
 

Result codes for I/O operations.

See also:
IReader, IWriter, IReaderWriter
Enumerator:
eRW_NotImplemented 
eRW_Success 
eRW_Timeout 
eRW_Error 
eRW_Eof 

Definition at line 57 of file reader_writer.hpp.


Function Documentation

const char* Endl void   ) 
 

Platform-specific EndOfLine.

Definition at line 151 of file ncbistre.cpp.

Referenced by CDB_MultiEx::ReportErrorStack(), CDB_MultiEx::ReportExtra(), s_WriteComment(), and IRegistry::Write().

void ExtractReaderContents IReader reader,
string &  s
 

Appends to the given string.

Definition at line 536 of file stream_utils.cpp.

References eRW_Success, and pos.

Referenced by CCgiEntry::x_ForceComplete().

CNcbiIstream& NcbiGetline CNcbiIstream is,
string &  str,
const string &  delims
 

Read from "is" to "str" up to any symbol contained within "delims" (or EOF).

Definition at line 46 of file ncbistre.cpp.

CNcbiIstream& NcbiGetline CNcbiIstream is,
string &  str,
char  delim
 

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().

CNcbiIstream& NcbiGetlineEOL CNcbiIstream is,
string &  str
 

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().

NCBI_NS_STD::char_traits<char>::pos_type NcbiInt8ToStreampos Int8  pos  )  [inline]
 

Convert plain numeric stream position (offset) into stream position usable with STL stream library.

See also:
NcbiStreamposToInt8

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().

bool NcbiStreamCopy CNcbiOstream os,
CNcbiIstream is
 

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().

Int8 NcbiStreamposToInt8 NCBI_NS_STD::char_traits< char >::pos_type  stream_pos  )  [inline]
 

Convert stream position to 64-bit int.

On most systems stream position is a structure, this function converts it to plain numeric value.

See also:
NcbiInt8ToStreampos

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().


Generated on Mon Nov 9 15:26:06 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Nov 09 15:48:47 2009 by modify_doxy.py rev. 173732