Zserio C++ runtime library  1.1.0
Built for Zserio 2.15.0
zserio::ParsingInfo Class Reference

#include <ParsingInfo.h>

Public Member Functions

 ParsingInfo ()
 
 ParsingInfo (size_t bitPosition)
 
void initializeBitSize (size_t endBitPosition)
 
size_t getBitPosition () const
 
size_t getBitSize () const
 

Detailed Description

The parsing information returned from parsingInfo() method generated in case of '-withParsingInfo' command line option.

Definition at line 16 of file ParsingInfo.h.

Constructor & Destructor Documentation

◆ ParsingInfo() [1/2]

zserio::ParsingInfo::ParsingInfo ( )
inline

Default constructor.

Definition at line 22 of file ParsingInfo.h.

◆ ParsingInfo() [2/2]

zserio::ParsingInfo::ParsingInfo ( size_t  bitPosition)
inlineexplicit

Constructor from bit position.

Parameters
bitPositionBit position in bits.

Definition at line 32 of file ParsingInfo.h.

Member Function Documentation

◆ getBitPosition()

size_t zserio::ParsingInfo::getBitPosition ( ) const
inline

Gets the bit position.

Returns
The blob offset of the object in bits counted from zero.
Exceptions
CppRuntimeExceptionIn case of invalid (uninitialized) bit position.

Definition at line 65 of file ParsingInfo.h.

◆ getBitSize()

size_t zserio::ParsingInfo::getBitSize ( ) const
inline

Gets the bit size.

Returns
Blob size of the object in bits.
Exceptions
CppRuntimeExceptionIn case of invalid (uninitialized) bit size.

Definition at line 82 of file ParsingInfo.h.

◆ initializeBitSize()

void zserio::ParsingInfo::initializeBitSize ( size_t  endBitPosition)
inline

Initializes the bit size using the end bit position.

It is supposed that bit position has been already correctly set before this method is called.

Parameters
endBitPositionEnd bit position to calculate the bit size from.
Exceptions
CppRuntimeExceptionIn case of invalid end bit position argument.

Definition at line 46 of file ParsingInfo.h.


The documentation for this class was generated from the following file: