NCBI C++ ToolKit
|
Classes | |
class | CByteSource |
class | CByteSourceReader |
class | CSubSourceCollector |
Abstract class for implementing "sub collectors". More... | |
class | CStreamByteSource |
class | CFStreamByteSource |
class | CFileByteSource |
class | CMMapByteSource |
class | CMMapByteSourceReader |
class | CStreamByteSourceReader |
class | CIRByteSourceReader |
Class adapter from IReader to CByteSourceReader. More... | |
class | CWriterByteSourceReader |
Stream based byte source reader. More... | |
class | CWriterCopyByteSourceReader |
class | CFileByteSourceReader |
class | CMemoryChunk |
class | CMemoryByteSource |
class | CMemoryByteSourceReader |
class | CMemorySourceCollector |
class | CWriterSourceCollector |
Class adapter IWriter - CSubSourceCollector. More... | |
class | CFileSourceCollector |
class | CSubFileByteSource |
class | CSubFileByteSourceReader |
class | ICanceled |
Interface for testing cancellation request in a long lasting operation. More... | |
class | CIStreamBuffer |
class | COStreamBuffer |
Macros | |
#define | THROWS1(arg) |
#define | THROWS1_NONE |
Typedefs | |
typedef CNcbiIstream::pos_type | CFileSourceCollector::TFilePos |
typedef CNcbiIstream::off_type | CFileSourceCollector::TFileOff |
typedef CFileByteSource | CSubFileByteSource::CParent |
typedef CFileSourceCollector::TFilePos | CSubFileByteSource::TFilePos |
typedef CFileSourceCollector::TFileOff | CSubFileByteSource::TFileOff |
typedef CFileByteSourceReader | CSubFileByteSourceReader::CParent |
typedef CFileSourceCollector::TFilePos | CSubFileByteSourceReader::TFilePos |
typedef CFileSourceCollector::TFileOff | CSubFileByteSourceReader::TFileOff |
Enumerations | |
enum | CMemoryChunk::ECopyData { CMemoryChunk::eCopyData = 0 , CMemoryChunk::eNoCopyData } |
#define THROWS1 | ( | arg | ) |
Definition at line 56 of file strbuffer.hpp.
#define THROWS1_NONE |
Definition at line 57 of file strbuffer.hpp.
|
private |
Definition at line 495 of file bytesrc.hpp.
|
private |
Definition at line 518 of file bytesrc.hpp.
typedef CNcbiIstream::off_type CFileSourceCollector::TFileOff |
Definition at line 476 of file bytesrc.hpp.
Definition at line 498 of file bytesrc.hpp.
Definition at line 521 of file bytesrc.hpp.
Definition at line 475 of file bytesrc.hpp.
Definition at line 497 of file bytesrc.hpp.
Definition at line 520 of file bytesrc.hpp.
Enumerator | |
---|---|
eCopyData | |
eNoCopyData |
Definition at line 346 of file bytesrc.hpp.
|
virtual |
Add data to the sub-source.
If parent pointer is set(m_ParentSubSource) call is redirected to the parent chain.
Reimplemented in CFileSourceCollector, CWriterSourceCollector, and CMemorySourceCollector.
Definition at line 125 of file bytesrc.cpp.
References CSubSourceCollector::AddChunk(), buffer, and CSubSourceCollector::m_ParentCollector.
Referenced by CSubSourceCollector::AddChunk(), CMemorySourceCollector::AddChunk(), CWriterSourceCollector::AddChunk(), CFileSourceCollector::AddChunk(), CIStreamBuffer::EndSubSource(), CObjectIStreamXml::StartDelayBuffer(), and CIStreamBuffer::StartSubSource().
|
virtual |
Add data to the sub-source.
If parent pointer is set(m_ParentSubSource) call is redirected to the parent chain.
Reimplemented from CSubSourceCollector.
Definition at line 685 of file bytesrc.cpp.
References CSubSourceCollector::AddChunk(), buffer, CMemorySourceCollector::m_CopyData, CMemorySourceCollector::m_FirstChunk, and CMemorySourceCollector::m_LastChunk.
|
virtual |
Add data to the sub-source.
If parent pointer is set(m_ParentSubSource) call is redirected to the parent chain.
Reimplemented from CSubSourceCollector.
Definition at line 736 of file bytesrc.cpp.
References CSubSourceCollector::AddChunk(), buffer, CWriterSourceCollector::m_Writer, and IWriter::Write().
|
virtual |
Add data to the sub-source.
If parent pointer is set(m_ParentSubSource) call is redirected to the parent chain.
Reimplemented from CSubSourceCollector.
Definition at line 518 of file bytesrc.cpp.
References CSubSourceCollector::AddChunk(), buffer, and CFileSourceCollector::m_Length.
void COStreamBuffer::BackChar | ( | char | c | ) |
Referenced by CObjectOStreamJson::EndBytes(), and CObjectOStreamXml::OpenTagEndBack().
|
protected |
Definition at line 569 of file strbuffer.cpp.
References NCBI_THROW_FMT.
CByteSource::CByteSource | ( | void | ) |
Definition at line 56 of file bytesrc.cpp.
|
private |
CByteSourceReader::CByteSourceReader | ( | void | ) |
Definition at line 70 of file bytesrc.cpp.
CFileByteSource::CFileByteSource | ( | const CFileByteSource & | file | ) |
Definition at line 385 of file bytesrc.cpp.
Definition at line 378 of file bytesrc.cpp.
CFileByteSourceReader::CFileByteSourceReader | ( | const CFileByteSource * | source | ) |
Definition at line 430 of file bytesrc.cpp.
References CFileByteSourceReader::m_FStream, CStreamByteSourceReader::m_Stream, NCBI_ERRNO_CODE_WRAPPER, NCBI_ERRNO_STR_WRAPPER, NCBI_THROW, CNcbiError::SetFromErrno(), and rapidjson::source.
CFileSourceCollector::CFileSourceCollector | ( | CConstRef< CFileByteSource > | source, |
TFilePos | start, | ||
CRef< CSubSourceCollector > | parent | ||
) |
Definition at line 502 of file bytesrc.cpp.
CFStreamByteSource::CFStreamByteSource | ( | CNcbiIstream & | in | ) |
Definition at line 248 of file bytesrc.cpp.
Definition at line 254 of file bytesrc.cpp.
References CStreamByteSource::m_Stream, NCBI_ERRNO_CODE_WRAPPER, NCBI_ERRNO_STR_WRAPPER, NCBI_THROW, and CNcbiError::SetFromErrno().
CIRByteSourceReader::CIRByteSourceReader | ( | IReader * | reader | ) |
Definition at line 216 of file bytesrc.cpp.
CIStreamBuffer::CIStreamBuffer | ( | const char * | buffer, |
size_t | size | ||
) |
Definition at line 68 of file strbuffer.cpp.
CIStreamBuffer::CIStreamBuffer | ( | void | ) |
Definition at line 55 of file strbuffer.cpp.
void CIStreamBuffer::Close | ( | void | ) |
Definition at line 125 of file strbuffer.cpp.
References CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferPos, CIStreamBuffer::m_CurrentPos, CIStreamBuffer::m_DataEndPos, CIStreamBuffer::m_Error, CIStreamBuffer::m_Input, CIStreamBuffer::m_Line, CByteSourceReader::Pushback(), CRef< C, Locker >::Reset(), and unused.
Referenced by CObjectIStream::Close(), CIStreamBuffer::Open(), and CIStreamBuffer::~CIStreamBuffer().
void COStreamBuffer::Close | ( | void | ) |
Definition at line 842 of file strbuffer.cpp.
References COStreamBuffer::Flush(), COStreamBuffer::FlushBuffer(), COStreamBuffer::m_Buffer, COStreamBuffer::m_Closed, COStreamBuffer::m_CurrentPos, COStreamBuffer::m_DeleteOutput, COStreamBuffer::m_Error, COStreamBuffer::m_IndentLevel, COStreamBuffer::m_Line, COStreamBuffer::m_LineLength, and COStreamBuffer::m_Output.
Referenced by CObjectOStream::Close(), and COStreamBuffer::~COStreamBuffer().
CMemoryByteSource::CMemoryByteSource | ( | CConstRef< CMemoryChunk > | bytes | ) |
Definition at line 573 of file bytesrc.cpp.
CMemoryByteSourceReader::CMemoryByteSourceReader | ( | CConstRef< CMemoryChunk > | bytes | ) |
Definition at line 595 of file bytesrc.cpp.
CMemoryChunk::CMemoryChunk | ( | const char * | data, |
size_t | dataSize, | ||
CRef< CMemoryChunk > | prevChunk, | ||
ECopyData | copy = eCopyData |
||
) |
Definition at line 537 of file bytesrc.cpp.
References buffer, data, CMemoryChunk::eNoCopyData, CMemoryChunk::m_CopyData, CMemoryChunk::m_Data, and CMemoryChunk::m_NextChunk.
|
private |
CMemorySourceCollector::CMemorySourceCollector | ( | CRef< CSubSourceCollector > | parent = CRef<CSubSourceCollector>() , |
bool | no_copy = false |
||
) |
Definition at line 672 of file bytesrc.cpp.
|
delete |
Definition at line 272 of file bytesrc.cpp.
CMMapByteSourceReader::CMMapByteSourceReader | ( | const CByteSource * | source, |
CMemoryFileMap * | fmap, | ||
size_t | num_blocks = 0 |
||
) |
Definition at line 288 of file bytesrc.cpp.
References CMMapByteSourceReader::m_DefaultSize, and CMMapByteSourceReader::m_UnitSize.
COStreamBuffer::COStreamBuffer | ( | CNcbiOstream & | out, |
bool | deleteOut = false |
||
) |
Definition at line 782 of file strbuffer.cpp.
CStreamByteSource::CStreamByteSource | ( | CNcbiIstream & | in | ) |
Definition at line 148 of file bytesrc.cpp.
CStreamByteSourceReader::CStreamByteSourceReader | ( | const CByteSource * | source, |
CNcbiIstream * | stream | ||
) |
Definition at line 170 of file bytesrc.cpp.
CSubFileByteSource::CSubFileByteSource | ( | const CFileByteSource & | file, |
TFilePos | start, | ||
TFileOff | length | ||
) |
Definition at line 407 of file bytesrc.cpp.
CSubFileByteSourceReader::CSubFileByteSourceReader | ( | const CFileByteSource * | source, |
TFilePos | start, | ||
TFileOff | length | ||
) |
Definition at line 466 of file bytesrc.cpp.
References CStreamByteSourceReader::m_Stream.
CSubSourceCollector::CSubSourceCollector | ( | CRef< CSubSourceCollector > | parent | ) |
Constructor.
parent_collector | Pointer on parent(chained) collector. CSubSourceCollector relays all AddChunk calls to the parent object making possible having several sub-sources chained together. |
Definition at line 114 of file bytesrc.cpp.
CWriterByteSourceReader::CWriterByteSourceReader | ( | CNcbiIstream * | stream, |
IWriter * | writer | ||
) |
Constructor.
stream | Readers source. |
writer | Destination interface pointer. |
Definition at line 760 of file bytesrc.cpp.
References _ASSERT.
CWriterCopyByteSourceReader::CWriterCopyByteSourceReader | ( | CByteSourceReader * | reader, |
IWriter * | writer | ||
) |
Constructor.
reader | Source reader. |
writer | Destination interface pointer. |
Definition at line 788 of file bytesrc.cpp.
References _ASSERT.
CWriterSourceCollector::CWriterSourceCollector | ( | IWriter * | writer, |
EOwnership | own, | ||
CRef< CSubSourceCollector > | parent | ||
) |
Constructor.
writer | Pointer on adapted IWriter interface. |
own | Flag to take ownership on the writer (delete on destruction). |
parent | Chained sub-source. |
Definition at line 706 of file bytesrc.cpp.
void COStreamBuffer::DecIndentLevel | ( | size_t | step = 2 | ) |
|
protected |
Definition at line 920 of file strbuffer.cpp.
References BiggerBufferSize(), and count.
|
protected |
|
virtual |
Call this method after Read returned zero to determine whether end of data reached or error occurred.
Reimplemented in CSubFileByteSourceReader, CMemoryByteSourceReader, CWriterCopyByteSourceReader, CIRByteSourceReader, CStreamByteSourceReader, and CMMapByteSourceReader.
Definition at line 80 of file bytesrc.cpp.
Referenced by CWriterCopyByteSourceReader::EndOfData(), CIStreamBuffer::EndOfData(), and CWriter::WriteBytes().
|
virtual |
Call this method after Read returned zero to determine whether end of data reached or error occurred.
Reimplemented from CByteSourceReader.
Definition at line 355 of file bytesrc.cpp.
References CMMapByteSourceReader::m_CurOffset, and CMMapByteSourceReader::m_FileSize.
|
virtual |
Call this method after Read returned zero to determine whether end of data reached or error occurred.
Reimplemented from CByteSourceReader.
Reimplemented in CSubFileByteSourceReader.
Definition at line 188 of file bytesrc.cpp.
References CStreamByteSourceReader::m_Stream.
|
virtual |
Call this method after Read returned zero to determine whether end of data reached or error occurred.
Reimplemented from CByteSourceReader.
Definition at line 238 of file bytesrc.cpp.
References CIRByteSourceReader::m_EOF.
|
virtual |
Just call EndOfData method on source reader.
Reimplemented from CByteSourceReader.
Definition at line 808 of file bytesrc.cpp.
References CByteSourceReader::EndOfData(), and CWriterCopyByteSourceReader::m_Reader.
|
virtual |
Call this method after Read returned zero to determine whether end of data reached or error occurred.
Reimplemented from CByteSourceReader.
Definition at line 627 of file bytesrc.cpp.
References CMemoryByteSourceReader::GetCurrentChunkAvailable(), CMemoryChunk::GetNextChunk(), and CMemoryByteSourceReader::m_CurrentChunk.
|
virtual |
Call this method after Read returned zero to determine whether end of data reached or error occurred.
Reimplemented from CStreamByteSourceReader.
Definition at line 491 of file bytesrc.cpp.
References CSubFileByteSourceReader::m_Length.
|
inline |
Definition at line 166 of file strbuffer.hpp.
References CByteSourceReader::EndOfData(), CIStreamBuffer::m_CurrentPos, CIStreamBuffer::m_DataEndPos, and CIStreamBuffer::m_Input.
Referenced by CObjectIStream::EndOfData().
CRef< CByteSource > CIStreamBuffer::EndSubSource | ( | void | ) |
Definition at line 186 of file strbuffer.cpp.
References _ASSERT, CSubSourceCollector::AddChunk(), count, CSubSourceCollector::GetParentCollector(), CSubSourceCollector::GetSource(), CIStreamBuffer::m_Collector, CIStreamBuffer::m_CollectPos, CIStreamBuffer::m_CurrentPos, and rapidjson::source.
Referenced by CObjectIStream::EndDelayBuffer().
bool CIStreamBuffer::fail | ( | void | ) | const |
Referenced by CObjectIStream::InGoodState().
bool COStreamBuffer::fail | ( | void | ) | const |
Referenced by CObjectOStream::InGoodState().
Definition at line 319 of file strbuffer.cpp.
References _ASSERT, BiggerBufferSize(), count, CT_OFF_TYPE, eCanceled, eRead, memmove, min(), and NCBI_THROW.
Referenced by CIStreamBuffer::FillBufferNoEOF(), and CIStreamBuffer::TryToFillBuffer().
|
protected |
Definition at line 455 of file strbuffer.cpp.
References CIStreamBuffer::FillBuffer(), and CIStreamBuffer::m_DataEndPos.
void CIStreamBuffer::FindChar | ( | char | c | ) |
Definition at line 257 of file strbuffer.cpp.
Referenced by CObjectIStreamXml::SkipAttributeValue(), CObjectIStreamXml::SkipQDecl(), and CObjectIStreamXml::SkipWSAndComments().
void COStreamBuffer::Flush | ( | void | ) |
Definition at line 909 of file strbuffer.cpp.
References NCBI_THROW.
Referenced by COStreamBuffer::Close().
Definition at line 870 of file strbuffer.cpp.
References count, CT_OFF_TYPE, eCanceled, memmove, and NCBI_THROW.
Referenced by COStreamBuffer::Close().
|
private |
|
private |
char CIStreamBuffer::GetChar | ( | void | ) |
Referenced by CObjectIStreamAsn::GetChar(), CObjectIStreamJson::GetChar(), CObjectIStreamJson::GetHexChar(), CObjectIStreamXml::GetHexChar(), CObjectIStreamXml::ReadBitString(), CObjectIStreamAsn::ReadChars(), CObjectIStreamXml::ReadChars(), CObjectIStreamAsnBinary::ReadLengthLong(), CObjectIStreamJson::ReadUtf8Char(), CObjectIStreamXml::ReadUtf8Char(), CObjectIStreamXml::SkipByteBlock(), and CIStreamBuffer::SkipWs().
void CIStreamBuffer::GetChars | ( | char * | buffer, |
size_t | count | ||
) |
Definition at line 471 of file strbuffer.cpp.
Referenced by CObjectIStreamAsnBinary::ReadBytes(), and CObjectIStreamAsnBinary::SkipBytes().
void CIStreamBuffer::GetChars | ( | size_t | count | ) |
void CIStreamBuffer::GetChars | ( | string & | str, |
size_t | count | ||
) |
Definition at line 495 of file strbuffer.cpp.
|
inlineprivate |
Definition at line 406 of file bytesrc.hpp.
References CMemoryChunk::GetDataSize(), CMemoryByteSourceReader::m_CurrentChunk, and CMemoryByteSourceReader::m_CurrentChunkOffset.
Referenced by CMemoryByteSourceReader::EndOfData(), CMemoryByteSourceReader::GetNextPart(), and CMemoryByteSourceReader::Read().
size_t COStreamBuffer::GetCurrentLineLength | ( | void | ) | const |
const char* CIStreamBuffer::GetCurrentPos | ( | void | ) | const |
|
inline |
Definition at line 354 of file bytesrc.hpp.
References CMemoryChunk::m_Data, and offset.
Referenced by CMemoryByteSourceReader::GetNextPart(), and CMemoryByteSourceReader::Read().
|
inline |
Definition at line 356 of file bytesrc.hpp.
References CMemoryChunk::m_DataSize.
Referenced by CMemoryByteSourceReader::GetCurrentChunkAvailable().
const char* CIStreamBuffer::GetError | ( | void | ) | const |
Referenced by CObjectIStream::InGoodState().
const char* COStreamBuffer::GetError | ( | void | ) | const |
Referenced by CObjectOStream::InGoodState().
Definition at line 183 of file bytesrc.hpp.
References CFileByteSource::m_FileName.
size_t COStreamBuffer::GetIndentLevel | ( | size_t | step = 2 | ) | const |
Int4 CIStreamBuffer::GetInt4 | ( | void | ) |
Definition at line 625 of file strbuffer.cpp.
References kMax_I4, n, and SkipChar().
Referenced by CObjectIStreamAsn::ReadEnum(), CObjectIStreamXml::ReadEnum(), CObjectIStreamAsn::ReadInt4(), and CObjectIStreamXml::ReadInt4().
Int8 CIStreamBuffer::GetInt8 | ( | void | ) |
Definition at line 702 of file strbuffer.cpp.
References kMax_I8, n, and SkipChar().
Referenced by CObjectIStreamAsn::ReadInt8(), and CObjectIStreamXml::ReadInt8().
Definition at line 507 of file bytesrc.hpp.
References CSubFileByteSource::m_Length.
size_t CIStreamBuffer::GetLine | ( | void | ) | const |
Referenced by CObjectIStreamAsn::Location(), CObjectIStreamJson::Location(), CObjectIStreamXml::Location(), CObjectIStreamAsn::ReadChars(), CObjectIStreamAsn::ReadDouble(), CObjectIStreamAsn::ReadStringValue(), CObjectIStreamAsn::SkipSNumber(), CObjectIStreamAsn::SkipString(), and CObjectIStreamAsn::SkipUNumber().
size_t COStreamBuffer::GetLine | ( | void | ) | const |
|
inline |
Definition at line 358 of file bytesrc.hpp.
References CMemoryChunk::m_NextChunk.
Referenced by CMemoryByteSourceReader::EndOfData(), CMemoryByteSourceReader::GetNextPart(), and CMemoryByteSourceReader::Read().
|
inlinevirtual |
Reimplemented in CMemoryByteSourceReader, and CMMapByteSourceReader.
Definition at line 94 of file bytesrc.hpp.
Referenced by CIStreamBuffer::Open().
|
virtual |
Reimplemented from CByteSourceReader.
Definition at line 327 of file bytesrc.cpp.
References buffer, len, CMMapByteSourceReader::m_ChunkOffset, CMMapByteSourceReader::m_CurOffset, CMMapByteSourceReader::m_NextOffset, CMMapByteSourceReader::m_Ptr, and CMMapByteSourceReader::x_GetNextChunkAt().
|
virtual |
Reimplemented from CByteSourceReader.
Definition at line 647 of file bytesrc.cpp.
References buffer, CMemoryByteSourceReader::GetCurrentChunkAvailable(), CMemoryChunk::GetData(), CMemoryChunk::GetNextChunk(), CMemoryByteSourceReader::m_CurrentChunk, and CMemoryByteSourceReader::m_CurrentChunkOffset.
|
inline |
Definition at line 141 of file bytesrc.hpp.
References CSubSourceCollector::m_ParentCollector.
Referenced by CIStreamBuffer::EndSubSource().
|
virtual |
Get CByteSource implementation.
Calling program can try to re-read collected data using CByteSource and CByteSourceReader interfaces, though it is legal to return NULL pointer if CSubSourceCollector implementation does not support re-reading (for example if collector sends data away using network or just writes down logs to a write-only database).
Implements CSubSourceCollector.
Definition at line 696 of file bytesrc.cpp.
References CMemorySourceCollector::m_FirstChunk.
|
virtual |
Return pointer on "reader" interface.
In this implementation returns NULL, since IWriter is a one way (write only interface).
Implements CSubSourceCollector.
Definition at line 748 of file bytesrc.cpp.
|
virtual |
Get CByteSource implementation.
Calling program can try to re-read collected data using CByteSource and CByteSourceReader interfaces, though it is legal to return NULL pointer if CSubSourceCollector implementation does not support re-reading (for example if collector sends data away using network or just writes down logs to a write-only database).
Implements CSubSourceCollector.
Definition at line 526 of file bytesrc.cpp.
References CFileSourceCollector::m_FileSource, CFileSourceCollector::m_Length, and CFileSourceCollector::m_Start.
|
pure virtual |
Get CByteSource implementation.
Calling program can try to re-read collected data using CByteSource and CByteSourceReader interfaces, though it is legal to return NULL pointer if CSubSourceCollector implementation does not support re-reading (for example if collector sends data away using network or just writes down logs to a write-only database).
Implemented in CFileSourceCollector, CWriterSourceCollector, and CMemorySourceCollector.
Referenced by CIStreamBuffer::EndSubSource().
Definition at line 505 of file bytesrc.hpp.
References CSubFileByteSource::m_Start.
CNcbiStreampos CIStreamBuffer::GetStreamOffset | ( | void | ) | const |
CNcbiStreampos COStreamBuffer::GetStreamOffset | ( | void | ) | const |
CNcbiStreampos CIStreamBuffer::GetStreamPos | ( | void | ) | const |
Referenced by CObjectIStream::GetStreamOffset(), and CObjectIStream::GetStreamPos().
CNcbiStreampos COStreamBuffer::GetStreamPos | ( | void | ) | const |
Referenced by CObjectOStream::GetStreamOffset(), and CObjectOStream::GetStreamPos().
Int8 CIStreamBuffer::GetStreamPosAsInt8 | ( | void | ) | const |
Int8 COStreamBuffer::GetStreamPosAsInt8 | ( | void | ) | const |
|
inline |
Definition at line 162 of file strbuffer.hpp.
References CIStreamBuffer::m_Collector.
Referenced by CObjectIStreamXml::StartDelayBuffer().
Uint4 CIStreamBuffer::GetUint4 | ( | void | ) |
Definition at line 671 of file strbuffer.cpp.
References kMax_UI4, n, and SkipChar().
Referenced by CObjectIStreamAsn::ReadUint4(), and CObjectIStreamXml::ReadUint4().
Uint8 CIStreamBuffer::GetUint8 | ( | void | ) |
Definition at line 748 of file strbuffer.cpp.
References kMax_UI8, n, and SkipChar().
Referenced by CObjectIStreamAsn::ReadUint8(), and CObjectIStreamXml::ReadUint8().
|
private |
bool COStreamBuffer::GetUseEol | ( | void | ) | const |
bool COStreamBuffer::GetUseIndentation | ( | void | ) | const |
Referenced by CObjectOStreamJson::NameSeparator().
bool CIStreamBuffer::HasMore | ( | void | ) |
Referenced by CObjectIStream::EndOfData().
void COStreamBuffer::IncIndentLevel | ( | size_t | step = 2 | ) |
|
inline |
Definition at line 186 of file bytesrc.hpp.
References CFileByteSource::m_Binary.
|
pure virtual |
Implemented in CConnTestThread, CCanceledImpl, TestCanceler, CInterruptable, and CAsyncCall::Call.
Referenced by CFlatFileSequenceListJob::CFlatFileSeqBuilder::AddItem(), CTableAnnotDataSource::AddSeqLoc(), CTableAnnotDataSource::AddSnpSeqLoc(), CSubAnnotationPanel::Create5ColFeatTable(), CBamUtils::CreateCoverageGraphs(), CTableAnnotDataSource::CreateFeature(), CTextItemSeq_loc::CreateObject(), CTableAnnotDataSource::CreateSnpFeature(), CTableAnnotDataSource::CreateSnps(), COpenViewManager::DoAsyncConversion(), CQueryParsePanel::CQueryJob::Execute(), C5ColObjectLoader::Execute(), CAgpObjectLoader::Execute(), CAsnObjectLoader::Execute(), CAssemblyObjectLoader::Execute(), CBedObjectLoader::Execute(), CChainLoader::Execute(), CFastaObjectLoader::Execute(), CGBFlatFileObjectLoader::Execute(), CGBObjectLoader::Execute(), CGffObjectLoader::Execute(), CLBLASTObjectLoader::Execute(), CPhyObjectLoader::Execute(), CPslObjectLoader::Execute(), CRMObjectLoader::Execute(), CTextAlignObjectLoader::Execute(), CVcfObjectLoader::Execute(), CWigObjectLoader::Execute(), PT::CProjectFolder::ExpandCompacted(), CSeqTextDataSource::FindSequenceFragmentList(), CTextItemPanel::FindText(), CNAUtils::GetAllNAMetaData(), CTextPanelContext::IsCanceled(), CReaderBase::IsCanceled(), CInterruptable::IsCanceled(), CTableImportDataSource::LoadTable(), CWeakExecuteGuard::Lock(), CAttribTableDelimitersPanel::PreviewData(), CTableFormatPanel::PreviewData(), CColumnarVCFReader::ReadData(), CColumnarVCFReader::ReadHeader(), CColumnarVCFReader::ReadVariantsForChrs(), CGBDocument::ReplaceGiSeqIds(), s_Adjust(), s_ConvertObjects(), s_ConvertObjectsCat(), s_Create5ColFeatTable(), s_CreateAlign(), s_EliminateDuplicates(), s_ReadVCFAssembly(), s_SearchInSeqText(), CBamCoverageGraphPanel::SetBamFiles(), CFlatFileConfig::ThrowIfCanceled(), CTableXformPanel::x_AddLocations(), CTableXformPanel::x_CreateFeatures(), CFlatGatherer::x_GatherBioseq(), CSelectionPanel::x_InitTextWidget(), CGenBankLoadOptionPanel::x_ProccessText(), CWorkspaceAutoSaver::x_RestoreWorkspace(), CWorkspaceAutoSaver::x_SaveWorkspace(), CAlignTabExportPage2::x_StartAlignNamesJob(), CAlignTabExportPage2::x_StartNAAlignNamesJob(), CAssemblyListPanel::x_UpdateSearchTerm(), and CReaderBase::xIsOperationCanceled().
|
inline |
Definition at line 360 of file bytesrc.hpp.
References CMemoryChunk::eNoCopyData, and CMemoryChunk::m_CopyData.
Referenced by CMemoryByteSourceReader::IsMultiPart().
|
inlinevirtual |
Reimplemented in CMemoryByteSourceReader, and CMMapByteSourceReader.
Definition at line 91 of file bytesrc.hpp.
Referenced by CIStreamBuffer::Open(), CIStreamBuffer::SetStreamPos(), and CByteSourceReader::SubSource().
|
inlinevirtual |
Reimplemented from CByteSourceReader.
Definition at line 221 of file bytesrc.hpp.
|
inlinevirtual |
Reimplemented from CByteSourceReader.
Definition at line 400 of file bytesrc.hpp.
References CMemoryChunk::IsExternalMemory(), CMemoryByteSourceReader::m_CurrentChunk, and CConstRef< C, Locker >::NotNull().
|
protected |
Definition at line 578 of file strbuffer.cpp.
References NCBI_THROW_FMT.
void CIStreamBuffer::Open | ( | CByteSourceReader & | reader | ) |
Definition at line 92 of file strbuffer.cpp.
References CIStreamBuffer::Close(), CByteSourceReader::GetNextPart(), CByteSourceReader::IsMultiPart(), KInitialBufferSize, CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferSize, CIStreamBuffer::m_CurrentPos, CIStreamBuffer::m_DataEndPos, CIStreamBuffer::m_Error, and CIStreamBuffer::m_Input.
Referenced by CObjectIStream::Open(), and CObjectIStream::OpenFromBuffer().
void CIStreamBuffer::Open | ( | const char * | buffer, |
size_t | size | ||
) |
Definition at line 111 of file strbuffer.cpp.
References buffer, CIStreamBuffer::Close(), CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferSize, CIStreamBuffer::m_CurrentPos, CIStreamBuffer::m_DataEndPos, CIStreamBuffer::m_Error, and ncbi::grid::netcache::search::fields::size.
|
virtual |
Implements CByteSource.
Definition at line 159 of file bytesrc.cpp.
References CStreamByteSource::m_Stream.
|
virtual |
Implements CByteSource.
Reimplemented in CSubFileByteSource.
Definition at line 397 of file bytesrc.cpp.
|
virtual |
Implements CByteSource.
Definition at line 281 of file bytesrc.cpp.
References CMMapByteSource::m_CBlocks, and CMMapByteSource::m_FileMap.
|
virtual |
Implements CByteSource.
Definition at line 584 of file bytesrc.cpp.
References CMemoryByteSource::m_Bytes.
|
virtual |
Reimplemented from CFileByteSource.
Definition at line 420 of file bytesrc.cpp.
References CSubFileByteSource::m_Length, and CSubFileByteSource::m_Start.
|
pure virtual |
Implemented in CSubFileByteSource, CMemoryByteSource, CMMapByteSource, CFileByteSource, and CStreamByteSource.
Referenced by CProcessor_St_SE::SaveBlob(), and CWriter::WriteBytes().
|
private |
|
private |
char CIStreamBuffer::PeekChar | ( | size_t | offset = 0 | ) |
Referenced by CObjectIStreamXml::BeginClosingTag(), CObjectIStreamXml::BeginOpeningTag(), CObjectIStreamXml::EndOpeningTagSelfClosed(), CObjectIStreamXml::EndTag(), CObjectIStreamXml::FindFileHeader(), CObjectIStreamXml::NextIsTag(), CObjectIStreamXml::NextTagIsClosing(), CObjectIStreamAsn::PeekChar(), CObjectIStreamJson::PeekChar(), CObjectIStreamAsn::ReadAnyContent(), CObjectIStreamAsn::ReadBitString(), CObjectIStreamXml::ReadCDSection(), CObjectIStreamXml::ReadChar(), CObjectIStreamXml::ReadEscapedChar(), CObjectIStream::ReadFileHeader(), CObjectIStreamJson::ReadFileHeader(), CObjectIStreamXml::ReadFileHeader(), CObjectIStreamAsn::ReadMemberId(), CObjectIStreamXml::ReadName(), CObjectIStreamAsn::ReadNumber(), CObjectIStreamJson::ReadString(), CObjectIStreamAsn::ReadStringValue(), CObjectIStreamAsn::ReadTypeId(), CObjectIStreamAsn::ScanEndOfId(), CObjectIStreamAsn::SkipAnyContent(), CObjectIStreamJson::SkipAnyContent(), CObjectIStreamXml::SkipQDecl(), CObjectIStreamAsn::SkipSNumber(), CObjectIStreamXml::SkipSNumber(), CObjectIStreamAsn::SkipString(), CObjectIStreamAsn::SkipUNumber(), CObjectIStreamXml::SkipUNumber(), CObjectIStreamAsn::SkipWhiteSpace(), CObjectIStreamXml::SkipWSAndComments(), and CObjectIStreamXml::UseSpecialCaseRead().
char CIStreamBuffer::PeekCharNoEOF | ( | size_t | offset = 0 | ) |
Referenced by CObjectIStreamAsn::ReadBool(), CObjectIStreamAsn::ReadChars(), CObjectIStreamAsn::ReadFileHeader(), CObjectIStreamAsn::ReadNull(), CObjectIStreamAsn::ReadPointerType(), CObjectIStreamAsn::ReadStringValue(), CObjectIStreamAsn::ScanEndOfId(), CObjectIStreamAsn::SkipBool(), CObjectIStreamAsn::SkipNull(), CObjectIStreamXml::SkipSNumber(), CObjectIStreamAsn::SkipString(), CObjectIStreamAsn::SkipUNumber(), and CObjectIStreamXml::SkipUNumber().
size_t CIStreamBuffer::PeekFindChar | ( | char | c, |
size_t | limit | ||
) |
Definition at line 292 of file strbuffer.cpp.
References _ASSERT, and min().
Referenced by CObjectIStreamXml::ReadEscapedChar().
Reimplemented in CNlmZipBtRdr, CMemoryByteSourceReader, CStreamByteSourceReader, and CMMapByteSourceReader.
Definition at line 86 of file bytesrc.cpp.
References ERR_POST_X, and ncbi::grid::netcache::search::fields::size.
Referenced by CIStreamBuffer::Close(), CMemoryByteSourceReader::Pushback(), and CNlmZipBtRdr::Pushback().
Reimplemented from CByteSourceReader.
Definition at line 360 of file bytesrc.cpp.
References CMMapByteSourceReader::m_ChunkOffset, CMMapByteSourceReader::m_CurOffset, CMMapByteSourceReader::m_Ptr, and ncbi::grid::netcache::search::fields::size.
Reimplemented from CByteSourceReader.
Definition at line 194 of file bytesrc.cpp.
References CT_CHAR_TYPE, data, CStreamByteSourceReader::m_Stream, ncbi::grid::netcache::search::fields::size, and CStreamUtils::Stepback().
Reimplemented from CByteSourceReader.
Definition at line 638 of file bytesrc.cpp.
References data, CMemoryByteSourceReader::m_CurrentChunkOffset, CByteSourceReader::Pushback(), and ncbi::grid::netcache::search::fields::size.
void COStreamBuffer::PutChar | ( | char | c | ) |
Referenced by CObjectOStreamJson::BeginArray(), CObjectOStreamXml::BeginArrayElement(), CObjectOStreamAsn::BeginBytes(), CObjectOStreamJson::BeginBytes(), CObjectOStreamAsn::BeginChars(), CObjectOStreamAsn::BeginChoiceVariant(), CObjectOStreamJson::BeginClassMember(), CObjectOStreamXml::CloseTagEnd(), CObjectOStreamJson::EndArray(), CObjectOStreamAsn::EndBlock(), CObjectOStreamJson::EndBlock(), CObjectOStreamJson::EndBytes(), CObjectOStreamAsn::EndChars(), CObjectOStreamJson::NameSeparator(), CObjectOStreamAsn::NextElement(), CObjectOStreamJson::NextElement(), CObjectOStreamXml::OpenTagEnd(), CObjectOStreamXml::OpenTagStart(), CObjectOStreamXml::PrintTagName(), CObjectOStreamAsn::StartBlock(), CObjectOStreamJson::StartBlock(), CObjectOStreamAsn::WriteAnyContentObject(), CObjectOStreamXml::WriteAnyContentObject(), CObjectOStreamAsn::WriteBitString(), CObjectOStreamJson::WriteBitString(), CObjectOStreamXml::WriteBitString(), CObjectOStreamAsnBinary::WriteByte(), CObjectOStreamAsn::WriteBytes(), CObjectOStreamJson::WriteBytes(), CObjectOStreamXml::WriteBytes(), CObjectOStreamAsn::WriteChar(), CObjectOStreamAsn::WriteChars(), CObjectOStreamJson::WriteCustomBytes(), CObjectOStreamXml::WriteDouble2(), CObjectOStreamJson::WriteEncodedChar(), CObjectOStreamAsn::WriteEnum(), CObjectOStreamXml::WriteEnum(), CObjectOStreamXml::WriteEscapedChar(), CObjectOStreamJson::WriteEscapedChar(), CObjectOStreamAsn::WriteId(), CObjectOStreamAsn::WriteMemberId(), CObjectOStreamAsn::WriteObjectReference(), CObjectOStreamAsn::WriteOther(), CObjectOStreamAsn::WriteOtherBegin(), CObjectOStreamAsn::WriteString(), CObjectOStreamXml::WriteTag(), CObjectOStreamXml::x_SpecialCaseWrite(), CObjectOStreamXml::x_WriteClassNamespace(), and CObjectOStreamJson::x_WriteString().
Referenced by CObjectOStreamXml::CloseTagStart(), CObjectOStreamJson::EndArray(), CObjectOStreamAsn::EndBlock(), CObjectOStreamJson::EndBlock(), CObjectOStreamJson::EndBytes(), CBlastOStreamJson::EndOfWrite(), CObjectOStreamJson::EndOfWrite(), CObjectOStreamXml::EndOfWrite(), CObjectOStreamAsn::NextElement(), CObjectOStreamJson::NextElement(), CObjectOStreamXml::OpenTagStart(), CXmlFormat::operator()(), CObjectOStreamXml::WriteAnyContentObject(), CObjectOStreamJson::WriteBase64Bytes(), CObjectOStreamXml::WriteBase64Bytes(), CObjectOStreamJson::WriteCustomBytes(), CObjectOStreamJson::WriteFileHeader(), CObjectOStreamXml::WriteFileHeader(), and CObjectOStreamXml::x_WriteClassNamespace().
void COStreamBuffer::PutEolAtWordEnd | ( | size_t | lineLength | ) |
Definition at line 1083 of file strbuffer.cpp.
void COStreamBuffer::PutIndent | ( | void | ) |
Referenced by CObjectOStreamXml::CloseTagStart(), and CObjectOStreamXml::OpenTagStart().
void COStreamBuffer::PutInt4 | ( | Int4 | v | ) |
Definition at line 950 of file strbuffer.cpp.
References a, b, CHAR_BIT, i, int, len, and n.
Referenced by CObjectOStreamAsn::WriteDouble2(), CObjectOStreamAsn::WriteEnum(), CObjectOStreamXml::WriteEnum(), CObjectOStreamAsn::WriteInt4(), CObjectOStreamXml::WriteInt4(), CObjectOStreamAsn::WriteObjectReference(), and CObjectOStreamXml::WriteObjectReference().
void COStreamBuffer::PutInt8 | ( | Int8 | v | ) |
Definition at line 1001 of file strbuffer.cpp.
References a, b, CHAR_BIT, i, int, len, n, PRINT_INT8_CHUNK, and PRINT_INT8_CHUNK_SIZE.
Referenced by CObjectOStreamAsn::WriteInt8(), CObjectOStreamXml::WriteInt8(), CObjectOStreamAsn::WriteObjectReference(), and CObjectOStreamXml::WriteObjectReference().
void COStreamBuffer::PutString | ( | const char * | str | ) |
void COStreamBuffer::PutString | ( | const char * | str, |
size_t | length | ||
) |
Referenced by CObjectOStreamXml::CloseTagStart(), CObjectOStreamAsn::EndBytes(), CObjectOStreamJson::EndOfWrite(), CObjectOStreamXml::OpenTagEnd(), CXmlFormat::operator()(), CObjectOStreamXml::PrintTagName(), CObjectOStreamXml::SelfCloseTagEnd(), CObjectOStreamAsn::WriteAnyContentObject(), CObjectOStreamXml::WriteAnyContentObject(), CObjectOStreamJson::WriteBase64Bytes(), CObjectOStreamXml::WriteBase64Bytes(), CObjectOStreamJson::WriteBitString(), CObjectOStreamAsn::WriteBool(), CObjectOStreamXml::WriteBool(), CObjectOStreamAsnBinary::WriteBytes(), CObjectOStreamJson::WriteCustomBytes(), CObjectOStreamAsn::WriteDouble2(), CObjectOStreamXml::WriteDouble2(), CObjectOStreamAsn::WriteEnum(), CObjectOStreamXml::WriteEnum(), CObjectOStreamXml::WriteEscapedChar(), CObjectOStreamJson::WriteEscapedChar(), CObjectOStreamAsn::WriteFileHeader(), CObjectOStreamJson::WriteFileHeader(), CObjectOStreamXml::WriteFileHeader(), CObjectOStreamAsn::WriteId(), CObjectOStreamJson::WriteKeywordValue(), CObjectOStreamAsn::WriteMemberId(), CObjectOStreamAsn::WriteNull(), CObjectOStreamAsn::WriteNullPointer(), CObjectOStreamXml::WriteObjectReference(), CObjectOStreamAsn::WriteOther(), CObjectOStreamAsn::WriteOtherBegin(), CObjectOStreamAsn::WriteSeparator(), CObjectOStreamXml::WriteSeparator(), CObjectOStreamXml::WriteTag(), CObjectOStreamXml::x_SpecialCaseWrite(), and CObjectOStreamXml::x_WriteClassNamespace().
void COStreamBuffer::PutUint4 | ( | Uint4 | v | ) |
Definition at line 975 of file strbuffer.cpp.
References a, b, CHAR_BIT, i, int, len, and n.
Referenced by CObjectOStreamAsn::WriteUint4(), and CObjectOStreamXml::WriteUint4().
void COStreamBuffer::PutUint8 | ( | Uint8 | v | ) |
Definition at line 1045 of file strbuffer.cpp.
References a, b, CHAR_BIT, i, int, len, n, PRINT_INT8_CHUNK, and PRINT_INT8_CHUNK_SIZE.
Referenced by CObjectOStreamAsn::WriteUint8(), and CObjectOStreamXml::WriteUint8().
|
virtual |
Read up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData())
Implements CByteSourceReader.
Definition at line 339 of file bytesrc.cpp.
References buffer, len, CMMapByteSourceReader::m_ChunkOffset, CMMapByteSourceReader::m_CurOffset, CMMapByteSourceReader::m_NextOffset, CMMapByteSourceReader::m_Ptr, min(), and CMMapByteSourceReader::x_GetNextChunkAt().
|
virtual |
Read up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData())
Implements CByteSourceReader.
Reimplemented in CSubFileByteSourceReader.
Definition at line 182 of file bytesrc.cpp.
References buffer, CStreamByteSourceReader::m_Stream, and CStreamUtils::Readsome().
Referenced by CSubFileByteSourceReader::Read().
|
virtual |
Read up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData())
Implements CByteSourceReader.
Definition at line 227 of file bytesrc.cpp.
References buffer, eRW_Eof, CIRByteSourceReader::m_EOF, CIRByteSourceReader::m_Reader, IReader::Read(), and result.
|
virtual |
Just call Read method on source reader.
Implements CByteSourceReader.
Definition at line 802 of file bytesrc.cpp.
References buffer, CWriterCopyByteSourceReader::m_Reader, and CByteSourceReader::Read().
|
virtual |
Read up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData())
Implements CByteSourceReader.
Definition at line 606 of file bytesrc.cpp.
References buffer, CMemoryByteSourceReader::GetCurrentChunkAvailable(), CMemoryChunk::GetData(), CMemoryChunk::GetNextChunk(), CMemoryByteSourceReader::m_CurrentChunk, CMemoryByteSourceReader::m_CurrentChunkOffset, and min().
|
virtual |
Read up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData())
Reimplemented from CStreamByteSourceReader.
Definition at line 480 of file bytesrc.cpp.
References buffer, count, CSubFileByteSourceReader::m_Length, and CStreamByteSourceReader::Read().
|
pure virtual |
Read up to bufferLength bytes into buffer return amount of bytes read (if zero - see EndOfData())
Implemented in CNlmZipBtRdr, CSubFileByteSourceReader, CMemoryByteSourceReader, CWriterCopyByteSourceReader, CIRByteSourceReader, CStreamByteSourceReader, and CMMapByteSourceReader.
Referenced by CWriterCopyByteSourceReader::Read(), CNlmZipBtRdr::Read(), CWriter::WriteBytes(), and CResultZBtSrcX::x_Read().
size_t CIStreamBuffer::ReadLine | ( | char * | buff, |
size_t | size | ||
) |
Definition at line 539 of file strbuffer.cpp.
References count, ncbi::grid::netcache::search::fields::size, and SkipChar().
|
protected |
void CIStreamBuffer::ResetBufferLock | ( | size_t | pos | ) |
Definition at line 157 of file strbuffer.cpp.
References _ASSERT, CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferLockSize, and CIStreamBuffer::m_CurrentPos.
Referenced by CObjectIStream::GuessDataType(), and CObjectIStreamAsnBinary::GuessDataType().
void CIStreamBuffer::ResetFail | ( | void | ) |
Referenced by CObjectIStream::InGoodState().
void COStreamBuffer::ResetFail | ( | void | ) |
Referenced by CObjectOStream::InGoodState().
|
virtual |
Reimplemented in CStreamByteSourceReader, and CMMapByteSourceReader.
Definition at line 96 of file bytesrc.cpp.
References NCBI_THROW.
Referenced by CIStreamBuffer::SetStreamPos().
|
virtual |
Reimplemented from CByteSourceReader.
Definition at line 369 of file bytesrc.cpp.
References CMMapByteSourceReader::m_NextOffset.
|
virtual |
Reimplemented from CByteSourceReader.
Definition at line 202 of file bytesrc.cpp.
References eRead, CStreamByteSourceReader::m_Stream, and NCBI_THROW.
void COStreamBuffer::SetBackLimit | ( | size_t | limit | ) |
Referenced by CObjectOStreamAsn::CObjectOStreamAsn(), and CObjectOStreamXml::CObjectOStreamXml().
size_t CIStreamBuffer::SetBufferLock | ( | size_t | size | ) |
Definition at line 148 of file strbuffer.cpp.
References _ASSERT, CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferLockSize, CIStreamBuffer::m_CurrentPos, and ncbi::grid::netcache::search::fields::size.
Referenced by CObjectIStream::GuessDataType(), and CObjectIStreamAsnBinary::GuessDataType().
Definition at line 142 of file strbuffer.cpp.
References CIStreamBuffer::m_CanceledCallback.
Referenced by CObjectIStream::SetCanceledCallback().
Definition at line 864 of file strbuffer.cpp.
References COStreamBuffer::m_CanceledCallback.
Referenced by CObjectOStream::SetCanceledCallback().
void CIStreamBuffer::SetStreamOffset | ( | CNcbiStreampos | pos | ) |
Definition at line 587 of file strbuffer.cpp.
References CIStreamBuffer::SetStreamPos().
void CIStreamBuffer::SetStreamPos | ( | CNcbiStreampos | pos | ) |
Definition at line 593 of file strbuffer.cpp.
References eRead, CByteSourceReader::IsMultiPart(), CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferPos, CIStreamBuffer::m_CurrentPos, CIStreamBuffer::m_DataEndPos, CIStreamBuffer::m_Input, CIStreamBuffer::m_Line, NCBI_THROW, CByteSourceReader::Seekg(), and CIStreamBuffer::TrySetCurrentPos().
Referenced by CObjectIStream::SetStreamOffset(), CIStreamBuffer::SetStreamOffset(), and CObjectIStream::SetStreamPos().
void COStreamBuffer::SetUseEol | ( | bool | set | ) |
void COStreamBuffer::SetUseIndentation | ( | bool | set | ) |
void CWriterSourceCollector::SetWriter | ( | IWriter * | writer, |
EOwnership | own | ||
) |
Reset the destination IWriter interface.
writer | Pointer on adapted IWriter interface. |
own | Flag to take ownership on the writer (delete on destruction). |
Definition at line 725 of file bytesrc.cpp.
References CWriterSourceCollector::m_Own, and CWriterSourceCollector::m_Writer.
|
protected |
void CIStreamBuffer::SkipChar | ( | void | ) |
Referenced by CObjectIStreamXml::BeginClassMember(), CObjectIStreamXml::BeginOpeningTag(), CObjectIStreamXml::EndOpeningTagSelfClosed(), CObjectIStreamXml::EndTag(), CObjectIStreamXml::FindFileHeader(), CObjectIStreamAsn::GetChar(), CObjectIStreamJson::GetChar(), CObjectIStreamAsn::NextElement(), CObjectIStreamJson::NextElement(), CObjectIStreamAsn::ReadAnyContent(), CObjectIStreamXml::ReadAttributeValue(), CObjectIStreamJson::ReadBase64Bytes(), CObjectIStreamXml::ReadBytes(), CObjectIStreamXml::ReadCDSection(), CObjectIStreamAsn::ReadChars(), CObjectIStreamXml::ReadEnum(), CObjectIStreamXml::ReadEscapedChar(), CObjectIStreamXml::ReadFileHeader(), CObjectIStreamXml::ReadName(), CObjectIStreamAsn::ReadPointerType(), CObjectIStreamAsn::ReadStringValue(), CObjectIStreamAsn::SkipAnyContent(), CObjectIStreamJson::SkipAnyContent(), CObjectIStreamXml::SkipAttributeValue(), CObjectIStreamXml::SkipQDecl(), CObjectIStreamAsn::SkipWhiteSpace(), CObjectIStreamJson::SkipWhiteSpace(), CObjectIStreamAsn::SkipWhiteSpaceAndGetChar(), CObjectIStreamJson::SkipWhiteSpaceAndGetChar(), CObjectIStreamXml::SkipWS(), and CObjectIStreamXml::SkipWSAndComments().
void CIStreamBuffer::SkipChars | ( | size_t | count | ) |
Referenced by CObjectIStreamAsn::AppendStringData(), CObjectIStreamXml::BeginClosingTag(), CObjectIStreamXml::EndOpeningTagSelfClosed(), CObjectIStreamXml::EndTag(), CObjectIStreamAsn::ReadBool(), CObjectIStreamXml::ReadCDSection(), CObjectIStreamXml::ReadEscapedChar(), CObjectIStreamAsn::ReadFileHeader(), CObjectIStreamJson::ReadFileHeader(), CObjectIStreamXml::ReadFileHeader(), CObjectIStreamAsn::ReadMemberId(), CObjectIStreamXml::ReadName(), CObjectIStreamAsn::ReadNull(), CObjectIStreamAsn::ReadNumber(), CObjectIStreamAsn::ReadPointerType(), CObjectIStreamJson::ReadString(), CObjectIStreamAsn::ReadTypeId(), CObjectIStreamAsn::ScanEndOfId(), CObjectIStreamAsn::SkipBool(), CObjectIStreamAsn::SkipNull(), CObjectIStreamXml::SkipQDecl(), CObjectIStreamAsn::SkipSNumber(), CObjectIStreamXml::SkipSNumber(), CObjectIStreamAsn::SkipString(), CObjectIStreamAsn::SkipUNumber(), CObjectIStreamXml::SkipUNumber(), CObjectIStreamAsn::SkipWhiteSpace(), and CObjectIStreamXml::SkipWSAndComments().
void CIStreamBuffer::SkipEndOfLine | ( | char | lastChar | ) |
Definition at line 525 of file strbuffer.cpp.
References _ASSERT, and SkipChar().
Referenced by CObjectIStreamXml::ReadName(), CObjectIStreamXml::SkipByteBlock(), CObjectIStreamAsn::SkipEndOfLine(), CObjectIStreamJson::SkipEndOfLine(), CObjectIStreamXml::SkipWS(), and CObjectIStreamXml::SkipWSAndComments().
bool CIStreamBuffer::SkipExpectedChar | ( | char | c, |
size_t | offset = 0 |
||
) |
bool CIStreamBuffer::SkipExpectedChars | ( | char | c1, |
char | c2, | ||
size_t | offset = 0 |
||
) |
char CIStreamBuffer::SkipSpaces | ( | void | ) |
Definition at line 213 of file strbuffer.cpp.
Referenced by CObjectIStreamAsn::SkipWhiteSpace(), CObjectIStreamJson::SkipWhiteSpace(), CObjectIStreamXml::SkipWS(), and CObjectIStreamXml::SkipWSAndComments().
char CIStreamBuffer::SkipWs | ( | void | ) |
Definition at line 616 of file strbuffer.cpp.
References CIStreamBuffer::GetChar(), and isspace().
void CIStreamBuffer::StartSubSource | ( | void | ) |
Definition at line 165 of file strbuffer.cpp.
References _ASSERT, CSubSourceCollector::AddChunk(), count, CIStreamBuffer::m_Collector, CIStreamBuffer::m_CollectPos, CIStreamBuffer::m_CurrentPos, CIStreamBuffer::m_DataEndPos, CIStreamBuffer::m_Input, and CByteSourceReader::SubSource().
Referenced by CObjectIStream::StartDelayBuffer().
|
virtual |
Reimplemented in CFileByteSourceReader, CWriterCopyByteSourceReader, and CWriterByteSourceReader.
Definition at line 102 of file bytesrc.cpp.
References CByteSourceReader::IsMultiPart().
Referenced by CIStreamBuffer::StartSubSource().
|
virtual |
Create CWriterSourceCollector.
Reimplemented from CByteSourceReader.
Definition at line 775 of file bytesrc.cpp.
References eNoOwnership, and CWriterByteSourceReader::m_Writer.
|
virtual |
Create CWriterSourceCollector.
Reimplemented from CByteSourceReader.
Definition at line 815 of file bytesrc.cpp.
References eNoOwnership, and CWriterCopyByteSourceReader::m_Writer.
|
virtual |
Reimplemented from CByteSourceReader.
Definition at line 454 of file bytesrc.cpp.
References CFileByteSourceReader::m_FileSource, CStreamByteSourceReader::m_Stream, and prepend().
Definition at line 309 of file strbuffer.cpp.
References CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferPos, CIStreamBuffer::m_CurrentPos, and CIStreamBuffer::m_DataEndPos.
Referenced by CIStreamBuffer::SetStreamPos().
|
protected |
Definition at line 465 of file strbuffer.cpp.
References CIStreamBuffer::FillBuffer(), CIStreamBuffer::m_CurrentPos, and CIStreamBuffer::m_DataEndPos.
void CIStreamBuffer::UngetChar | ( | char | c | ) |
Referenced by CObjectIStreamXml::BeginChoiceVariant(), CObjectIStreamXml::BeginClassMember(), CObjectIStreamAsn::Expect(), CObjectIStreamAsn::GetHexChar(), CObjectIStreamJson::GetHexChar(), CObjectIStreamXml::GetHexChar(), CObjectIStreamXml::ReadBitString(), CObjectIStreamJson::ReadCustomBytes(), CObjectIStreamAsn::SkipByteBlock(), CObjectIStreamXml::SkipByteBlock(), CObjectIStreamJson::x_ReadData(), and CObjectIStreamJson::x_SkipData().
void COStreamBuffer::WrapAt | ( | size_t | lineLength, |
bool | keepWord | ||
) |
void COStreamBuffer::Write | ( | CByteSourceReader & | reader | ) |
Definition at line 1163 of file strbuffer.cpp.
References available, count, eRead, and NCBI_THROW.
void COStreamBuffer::Write | ( | const char * | data, |
size_t | dataLength | ||
) |
Definition at line 1142 of file strbuffer.cpp.
References available, and data.
Referenced by CObjectOStream::Write().
|
protected |
Definition at line 312 of file bytesrc.cpp.
References CMemoryFile_Base::eMMA_Sequential, CMemoryFileMap::GetSize(), CMMapByteSourceReader::m_ChunkOffset, CMMapByteSourceReader::m_CurOffset, CMMapByteSourceReader::m_DefaultSize, CMMapByteSourceReader::m_FileSize, CMMapByteSourceReader::m_Fmap, CMMapByteSourceReader::m_NextOffset, CMMapByteSourceReader::m_Ptr, CMMapByteSourceReader::m_UnitSize, CMemoryFileMap::Map(), CMemoryFileMap::MemMapAdvise(), min(), offset, and CMemoryFileMap::Unmap().
Referenced by CMMapByteSourceReader::GetNextPart(), and CMMapByteSourceReader::Read().
bool COStreamBuffer::ZeroIndentLevel | ( | void | ) | const |
Referenced by CObjectOStreamAsn::WriteFileHeader().
|
virtual |
Definition at line 61 of file bytesrc.cpp.
|
virtual |
Definition at line 75 of file bytesrc.cpp.
CFileByteSource::~CFileByteSource | ( | void | ) |
Definition at line 392 of file bytesrc.cpp.
CFileByteSourceReader::~CFileByteSourceReader | ( | void | ) |
Definition at line 448 of file bytesrc.cpp.
CFileSourceCollector::~CFileSourceCollector | ( | void | ) |
Definition at line 513 of file bytesrc.cpp.
CFStreamByteSource::~CFStreamByteSource | ( | void | ) |
Definition at line 267 of file bytesrc.cpp.
References CStreamByteSource::m_Stream.
CIRByteSourceReader::~CIRByteSourceReader | ( | void | ) |
Definition at line 222 of file bytesrc.cpp.
CIStreamBuffer::~CIStreamBuffer | ( | void | ) |
Definition at line 80 of file strbuffer.cpp.
References CIStreamBuffer::Close(), CIStreamBuffer::m_Buffer, CIStreamBuffer::m_BufferSize, and NCBI_CATCH_X.
CMemoryByteSource::~CMemoryByteSource | ( | void | ) |
Definition at line 579 of file bytesrc.cpp.
CMemoryByteSourceReader::~CMemoryByteSourceReader | ( | void | ) |
Definition at line 601 of file bytesrc.cpp.
CMemoryChunk::~CMemoryChunk | ( | void | ) |
Definition at line 554 of file bytesrc.cpp.
References CMemoryChunk::eNoCopyData, CMemoryChunk::m_CopyData, CMemoryChunk::m_Data, CMemoryChunk::m_NextChunk, next(), and CRef< C, Locker >::Reset().
CMemorySourceCollector::~CMemorySourceCollector | ( | void | ) |
Definition at line 680 of file bytesrc.cpp.
|
virtual |
Definition at line 277 of file bytesrc.cpp.
CMMapByteSourceReader::~CMMapByteSourceReader | ( | void | ) |
Definition at line 305 of file bytesrc.cpp.
References CMMapByteSourceReader::m_Fmap, CMMapByteSourceReader::m_Ptr, and CMemoryFileMap::Unmap().
COStreamBuffer::~COStreamBuffer | ( | void | ) |
Definition at line 796 of file strbuffer.cpp.
References COStreamBuffer::Close(), COStreamBuffer::m_Buffer, COStreamBuffer::m_DeleteOutput, COStreamBuffer::m_Output, and NCBI_CATCH_X.
CStreamByteSource::~CStreamByteSource | ( | void | ) |
Definition at line 154 of file bytesrc.cpp.
CStreamByteSourceReader::~CStreamByteSourceReader | ( | void | ) |
Definition at line 177 of file bytesrc.cpp.
CSubFileByteSource::~CSubFileByteSource | ( | void | ) |
Definition at line 415 of file bytesrc.cpp.
CSubFileByteSourceReader::~CSubFileByteSourceReader | ( | void | ) |
Definition at line 475 of file bytesrc.cpp.
|
virtual |
Definition at line 120 of file bytesrc.cpp.
CWriterByteSourceReader::~CWriterByteSourceReader | ( | void | ) |
Definition at line 769 of file bytesrc.cpp.
CWriterCopyByteSourceReader::~CWriterCopyByteSourceReader | ( | void | ) |
Definition at line 797 of file bytesrc.cpp.
|
virtual |
Definition at line 717 of file bytesrc.cpp.
References CWriterSourceCollector::m_Own, and CWriterSourceCollector::m_Writer.
|
inlinevirtual |
Definition at line 54 of file icanceled.hpp.
|
private |
Definition at line 334 of file strbuffer.hpp.
|
private |
Definition at line 191 of file bytesrc.hpp.
Referenced by CFileByteSource::IsBinary().
|
private |
Definition at line 203 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Close(), CIStreamBuffer::Open(), CIStreamBuffer::ResetBufferLock(), CIStreamBuffer::SetBufferLock(), CIStreamBuffer::SetStreamPos(), CIStreamBuffer::TrySetCurrentPos(), and CIStreamBuffer::~CIStreamBuffer().
|
private |
Definition at line 329 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close(), and COStreamBuffer::~COStreamBuffer().
|
private |
Definition at line 331 of file strbuffer.hpp.
|
private |
Definition at line 212 of file strbuffer.hpp.
Referenced by CIStreamBuffer::ResetBufferLock(), and CIStreamBuffer::SetBufferLock().
|
private |
Definition at line 201 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Close(), CIStreamBuffer::SetStreamPos(), and CIStreamBuffer::TrySetCurrentPos().
|
private |
Definition at line 328 of file strbuffer.hpp.
|
private |
Definition at line 202 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Open(), and CIStreamBuffer::~CIStreamBuffer().
|
private |
Definition at line 385 of file bytesrc.hpp.
Referenced by CMemoryByteSource::Open().
|
private |
Definition at line 211 of file strbuffer.hpp.
Referenced by CIStreamBuffer::SetCanceledCallback().
|
private |
Definition at line 338 of file strbuffer.hpp.
Referenced by COStreamBuffer::SetCanceledCallback().
|
protected |
Definition at line 206 of file bytesrc.hpp.
Referenced by CMMapByteSource::Open().
|
protected |
Definition at line 232 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::GetNextPart(), CMMapByteSourceReader::Pushback(), CMMapByteSourceReader::Read(), and CMMapByteSourceReader::x_GetNextChunkAt().
|
private |
Definition at line 318 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close().
|
private |
Definition at line 209 of file strbuffer.hpp.
Referenced by CIStreamBuffer::EndSubSource(), CIStreamBuffer::GetSubSourceCollector(), and CIStreamBuffer::StartSubSource().
|
private |
Definition at line 208 of file strbuffer.hpp.
Referenced by CIStreamBuffer::EndSubSource(), and CIStreamBuffer::StartSubSource().
|
private |
Definition at line 367 of file bytesrc.hpp.
Referenced by CMemoryChunk::CMemoryChunk(), CMemoryChunk::IsExternalMemory(), and CMemoryChunk::~CMemoryChunk().
|
private |
Definition at line 431 of file bytesrc.hpp.
Referenced by CMemorySourceCollector::AddChunk().
|
protected |
Definition at line 232 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::EndOfData(), CMMapByteSourceReader::GetNextPart(), CMMapByteSourceReader::Pushback(), CMMapByteSourceReader::Read(), and CMMapByteSourceReader::x_GetNextChunkAt().
|
private |
Definition at line 412 of file bytesrc.hpp.
Referenced by CMemoryByteSourceReader::EndOfData(), CMemoryByteSourceReader::GetCurrentChunkAvailable(), CMemoryByteSourceReader::GetNextPart(), CMemoryByteSourceReader::IsMultiPart(), and CMemoryByteSourceReader::Read().
|
private |
Definition at line 413 of file bytesrc.hpp.
Referenced by CMemoryByteSourceReader::GetCurrentChunkAvailable(), CMemoryByteSourceReader::GetNextPart(), CMemoryByteSourceReader::Pushback(), and CMemoryByteSourceReader::Read().
|
private |
Definition at line 204 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Close(), CIStreamBuffer::EndOfData(), CIStreamBuffer::EndSubSource(), CIStreamBuffer::Open(), CIStreamBuffer::ResetBufferLock(), CIStreamBuffer::SetBufferLock(), CIStreamBuffer::SetStreamPos(), CIStreamBuffer::StartSubSource(), CIStreamBuffer::TrySetCurrentPos(), and CIStreamBuffer::TryToFillBuffer().
|
private |
Definition at line 330 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close().
|
private |
Definition at line 365 of file bytesrc.hpp.
Referenced by CMemoryChunk::CMemoryChunk(), CMemoryChunk::GetData(), and CMemoryChunk::~CMemoryChunk().
|
private |
Definition at line 205 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Close(), CIStreamBuffer::EndOfData(), CIStreamBuffer::FillBufferNoEOF(), CIStreamBuffer::Open(), CIStreamBuffer::SetStreamPos(), CIStreamBuffer::StartSubSource(), CIStreamBuffer::TrySetCurrentPos(), and CIStreamBuffer::TryToFillBuffer().
|
private |
Definition at line 366 of file bytesrc.hpp.
Referenced by CMemoryChunk::GetDataSize().
|
protected |
Definition at line 231 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::CMMapByteSourceReader(), and CMMapByteSourceReader::x_GetNextChunkAt().
|
private |
Definition at line 317 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close(), and COStreamBuffer::~COStreamBuffer().
|
protected |
Definition at line 265 of file bytesrc.hpp.
Referenced by CIRByteSourceReader::EndOfData(), and CIRByteSourceReader::Read().
|
private |
Definition at line 199 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Close(), and CIStreamBuffer::Open().
|
private |
Definition at line 320 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close().
|
protected |
Definition at line 205 of file bytesrc.hpp.
Referenced by CMMapByteSource::Open().
|
private |
Definition at line 190 of file bytesrc.hpp.
Referenced by CFileByteSource::GetFileName().
|
protected |
Definition at line 232 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::EndOfData(), and CMMapByteSourceReader::x_GetNextChunkAt().
|
private |
Definition at line 338 of file bytesrc.hpp.
Referenced by CFileByteSourceReader::SubSource().
|
private |
Definition at line 487 of file bytesrc.hpp.
Referenced by CFileSourceCollector::GetSource().
|
private |
Definition at line 429 of file bytesrc.hpp.
Referenced by CMemorySourceCollector::AddChunk(), and CMemorySourceCollector::GetSource().
|
protected |
Definition at line 229 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::x_GetNextChunkAt(), and CMMapByteSourceReader::~CMMapByteSourceReader().
|
private |
Definition at line 339 of file bytesrc.hpp.
Referenced by CFileByteSourceReader::CFileByteSourceReader().
|
private |
Definition at line 326 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close().
|
private |
Definition at line 197 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Close(), CIStreamBuffer::EndOfData(), CIStreamBuffer::Open(), CIStreamBuffer::SetStreamPos(), and CIStreamBuffer::StartSubSource().
|
private |
Definition at line 430 of file bytesrc.hpp.
Referenced by CMemorySourceCollector::AddChunk().
|
private |
Definition at line 489 of file bytesrc.hpp.
Referenced by CFileSourceCollector::AddChunk(), and CFileSourceCollector::GetSource().
|
private |
Definition at line 512 of file bytesrc.hpp.
Referenced by CSubFileByteSource::GetLength(), and CSubFileByteSource::Open().
|
private |
Definition at line 531 of file bytesrc.hpp.
Referenced by CSubFileByteSourceReader::EndOfData(), and CSubFileByteSourceReader::Read().
|
private |
Definition at line 206 of file strbuffer.hpp.
Referenced by CIStreamBuffer::Close(), and CIStreamBuffer::SetStreamPos().
|
private |
Definition at line 332 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close().
|
private |
Definition at line 333 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close().
|
private |
Definition at line 368 of file bytesrc.hpp.
Referenced by CMemoryChunk::CMemoryChunk(), CMemoryChunk::GetNextChunk(), and CMemoryChunk::~CMemoryChunk().
|
protected |
Definition at line 232 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::GetNextPart(), CMMapByteSourceReader::Read(), CMMapByteSourceReader::Seekg(), and CMMapByteSourceReader::x_GetNextChunkAt().
|
private |
Definition at line 316 of file strbuffer.hpp.
Referenced by COStreamBuffer::Close(), and COStreamBuffer::~COStreamBuffer().
|
private |
Flag to delete IWriter on destruction.
Definition at line 468 of file bytesrc.hpp.
Referenced by CWriterSourceCollector::SetWriter(), and CWriterSourceCollector::~CWriterSourceCollector().
|
protected |
Pointer on parent (or chained) collector.
Definition at line 148 of file bytesrc.hpp.
Referenced by CSubSourceCollector::AddChunk(), and CSubSourceCollector::GetParentCollector().
|
protected |
Definition at line 230 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::GetNextPart(), CMMapByteSourceReader::Pushback(), CMMapByteSourceReader::Read(), CMMapByteSourceReader::x_GetNextChunkAt(), and CMMapByteSourceReader::~CMMapByteSourceReader().
|
protected |
Definition at line 264 of file bytesrc.hpp.
Referenced by CIRByteSourceReader::Read().
|
protected |
Definition at line 324 of file bytesrc.hpp.
Referenced by CWriterCopyByteSourceReader::EndOfData(), and CWriterCopyByteSourceReader::Read().
|
protected |
Definition at line 228 of file bytesrc.hpp.
|
protected |
Definition at line 247 of file bytesrc.hpp.
|
private |
Definition at line 488 of file bytesrc.hpp.
Referenced by CFileSourceCollector::GetSource().
|
private |
Definition at line 511 of file bytesrc.hpp.
Referenced by CSubFileByteSource::GetStart(), and CSubFileByteSource::Open().
|
protected |
Definition at line 161 of file bytesrc.hpp.
Referenced by CFStreamByteSource::CFStreamByteSource(), CStreamByteSource::Open(), and CFStreamByteSource::~CFStreamByteSource().
|
protected |
Definition at line 248 of file bytesrc.hpp.
Referenced by CFileByteSourceReader::CFileByteSourceReader(), CSubFileByteSourceReader::CSubFileByteSourceReader(), CStreamByteSourceReader::EndOfData(), CStreamByteSourceReader::Pushback(), CStreamByteSourceReader::Read(), CStreamByteSourceReader::Seekg(), and CFileByteSourceReader::SubSource().
|
protected |
Definition at line 231 of file bytesrc.hpp.
Referenced by CMMapByteSourceReader::CMMapByteSourceReader(), and CMMapByteSourceReader::x_GetNextChunkAt().
|
private |
Definition at line 336 of file strbuffer.hpp.
|
private |
Definition at line 335 of file strbuffer.hpp.
|
protected |
Definition at line 296 of file bytesrc.hpp.
Referenced by CWriterByteSourceReader::SubSource().
|
protected |
Definition at line 325 of file bytesrc.hpp.
Referenced by CWriterCopyByteSourceReader::SubSource().
|
private |
Destination interface pointer.
Definition at line 467 of file bytesrc.hpp.
Referenced by CWriterSourceCollector::AddChunk(), CWriterSourceCollector::SetWriter(), and CWriterSourceCollector::~CWriterSourceCollector().