BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
UnexpectedRecordSize Class Reference

#include <RawFileExceptions.h>

+ Inheritance diagram for UnexpectedRecordSize:

Public Member Functions

 UnexpectedRecordSize (const char *block_name, uint32_t expect, uint32_t value)
 
virtual ~UnexpectedRecordSize ()
 
virtual void print () const
 
- Public Member Functions inherited from RawFileException
virtual ~RawFileException ()
 
virtual void print () const
 

Detailed Description

Definition at line 58 of file RawFileExceptions.h.

Constructor & Destructor Documentation

◆ UnexpectedRecordSize()

UnexpectedRecordSize::UnexpectedRecordSize ( const char *  block_name,
uint32_t  expect,
uint32_t  value 
)
inline

Definition at line 60 of file RawFileExceptions.h.

61 : m_blockName(block_name), m_expect(expect), m_value(value) {
62 }

◆ ~UnexpectedRecordSize()

virtual UnexpectedRecordSize::~UnexpectedRecordSize ( )
inlinevirtual

Definition at line 63 of file RawFileExceptions.h.

63{}

Member Function Documentation

◆ print()

void UnexpectedRecordSize::print ( ) const
virtual

Reimplemented from RawFileException.

Definition at line 25 of file RawFileExceptions.cxx.

25 {
26 std::cout << "[RawFile] The size of block \"" << m_blockName << "\" is expected as "
27 << m_expect << ", but got " << m_value << std::endl;
28}

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