65 if (
m_Info.get() ==
nullptr ) {
69 if (
m_Info.get() ==
nullptr ) {
78 in->SetFlags(
info.m_Flags);
79 info.m_ItemInfo->UpdateDelayedBuffer(*
in,
info.m_Object);
92 return info->m_ItemInfo->GetIndex();
98 : m_ItemInfo(itemInfo), m_Object(object),
Include a standard set of the NCBI C++ Toolkit most basic headers.
DEFINE_STATIC_FAST_MUTEX(s_UpdateMutex)
size_t TMemberIndex
Type used for indexing class members and choice variants.
const TMemberIndex kInvalidMember
Special value returned from FindMember.
ESerialDataFormat
Data file format.
unique_ptr< SInfo > m_Info
bool Delayed(void) const
Check if there is input data in the buffer.
void Forget(void)
Forget the stored data.
SInfo(const CItemInfo *itemInfo, TObjectPtr object, ESerialDataFormat dataFormat, TFormatFlags flags, CByteSource &source)
static CObjectIStream * Create(ESerialDataFormat format)
Create serial object reader.
void SetData(const CItemInfo *itemInfo, TObjectPtr object, ESerialDataFormat dataFormat, TFormatFlags flags, CByteSource &data)
Reset the buffer with a new data.
TMemberIndex GetIndex(void) const
Get member index.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const CharType(& source)[N]
std::istream & in(std::istream &in_, double &x_)