1 #ifndef OBJISTRASN__HPP
2 #define OBJISTRASN__HPP
123 virtual void Location(
string&,
size_t&)
const override;
127 virtual void ReadNull(
void)
override;
129 void ReadAnyContent(
string&
value);
131 void SkipAnyContent(
void);
150 virtual bool ReadBool(
void)
override;
151 virtual char ReadChar(
void)
override;
158 void ReadStringValue(
string& s,
EFixNonPrint fix_method);
161 virtual void SkipBool(
void)
override;
162 virtual void SkipChar(
void)
override;
167 virtual void SkipNull(
void)
override;
170 #ifdef VIRTUAL_MID_LEVEL_IO
188 virtual void EndClass(
void)
override;
217 char GetChar(
bool skipWhiteSpace);
218 char PeekChar(
bool skipWhiteSpace);
220 bool GetChar(
char c,
bool skipWhiteSpace =
false);
221 void Expect(
char c,
bool skipWhiteSpace =
false);
222 bool Expect(
char charTrue,
char charFalse,
bool skipWhiteSpace =
false);
226 static bool IdChar(
char c);
233 void BadStringChar(
size_t startLine,
char c);
234 void UnendedString(
size_t startLine);
236 void AppendStringData(
string& s,
240 void AppendLongStringData(
string& s,
245 void StartBlock(
void);
246 bool NextElement(
void);
void SkipComments(CStreamBuffer &b)
char SkipWhiteSpace(CStreamBuffer &b)
void ReadNumber(CStreamBuffer &b)
void SkipEndOfLine(CStreamBuffer &b, char lastChar)
int GetHexChar(CStreamBuffer &b)
char SkipWhiteSpaceAndGetChar(CStreamBuffer &b)
Serializable object that stores any combination of parsable data.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define NCBI_DEPRECATED_CTOR(decl)
Macro used to mark a constructor as deprecated.
EFixNonPrint
How to process non-printing character in the ASN VisibleString.
size_t TMemberIndex
Type used for indexing class members and choice variants.
const TMemberIndex kInvalidMember
Special value returned from FindMember.
@ eStringTypeVisible
VisibleString (in ASN.1 sense)
virtual void ReadString(string &s, EStringType type=eStringTypeVisible)=0
virtual EPointerType ReadPointerType(void)=0
virtual bool ReadBool(void)=0
virtual void Location(string &, size_t &) const
Get current stream location as tuple (positiontype:string, size_t).
MLIOVIR void ReadClassSequential(const CClassTypeInfo *classType, TObjectPtr classPtr)
virtual void ReadNull(void)=0
virtual void EndContainer(void)=0
virtual void EndBytes(const ByteBlock &block)
virtual void SkipByteBlock(void)=0
virtual bool EndOfData(void)
Check if there is still some meaningful data that can be read; in text streams this function will ski...
virtual TMemberIndex BeginClassMember(const CClassTypeInfo *classType)=0
virtual size_t ReadChars(CharBlock &block, char *buffer, size_t count)=0
virtual string ReadOtherPointer(void)=0
virtual void SkipString(EStringType type=eStringTypeVisible)=0
MLIOVIR void ReadContainer(const CContainerTypeInfo *containerType, TObjectPtr containerPtr)
virtual void SkipFNumber(void)=0
virtual void BeginBytes(ByteBlock &block)=0
virtual double ReadDouble(void)=0
virtual string ReadFileHeader(void)
Read file header.
virtual void SkipBool(void)=0
virtual TMemberIndex BeginChoiceVariant(const CChoiceTypeInfo *choiceType)=0
virtual void SkipSNumber(void)=0
virtual void BeginContainer(const CContainerTypeInfo *containerType)=0
virtual void SkipUNumber(void)=0
virtual Uint4 ReadUint4(void)
virtual void SkipNull(void)=0
virtual void BeginChars(CharBlock &block)=0
virtual char ReadChar(void)=0
virtual void ReadAnyContentObject(CAnyContentObject &obj)=0
virtual size_t ReadBytes(ByteBlock &block, char *buffer, size_t count)=0
virtual void ReadBitString(CBitString &obj)=0
virtual void SkipBitString(void)=0
TObjectIndex ReadIndex(void)
virtual TEnumValueType ReadEnum(const CEnumeratedTypeValues &values)=0
virtual bool BeginContainerElement(TTypeInfo elementType)=0
virtual Int8 ReadInt8(void)=0
virtual TObjectIndex ReadObjectPointer(void)=0
MLIOVIR void SkipContainer(const CContainerTypeInfo *containerType)
MLIOVIR void SkipClassSequential(const CClassTypeInfo *classType)
virtual Int4 ReadInt4(void)
virtual void SkipAnyContentObject(void)=0
virtual Uint8 ReadUint8(void)=0
virtual void EndClass(void)
virtual void StartDelayBuffer(void)
virtual void BeginClass(const CClassTypeInfo *classInfo)=0
void FixInput(size_t count, EFixNonPrint fix_method, size_t line)
virtual void EndChoice(void)
MLIOVIR void SkipClassRandom(const CClassTypeInfo *classType)
void ExpectString(const char *s, bool skipWhiteSpace=false)
virtual void BeginChoice(const CChoiceTypeInfo *choiceType)
MLIOVIR void ReadClassRandom(const CClassTypeInfo *classType, TObjectPtr classPtr)
virtual void SkipChar(void)=0
int32_t Int4
4-byte (32-bit) signed integer
uint32_t Uint4
4-byte (32-bit) unsigned integer
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
enum ENcbiOwnership EOwnership
Ownership relations between objects.
#define NCBI_XSERIAL_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
std::istream & in(std::istream &in_, double &x_)