51 os << descr.ToStdString();
76 wxString msg = wxString::Format(
"Block type %#02x at offset %#010zx", aTestInfo.
m_BlockType,
78 os << msg.ToStdString();
The base class for all blocks in the main body of an Allegro file.
FMT_VER
The format of an Allego file.
void RunAdditionalObjectTest(const std::string &aBoardName, size_t aBlockOffset, const ALLEGRO::DB_OBJ &aDbObj)
Look up and run any additional ad-hoc tests for a DB_OBJ (parsed and converted block)
void RunAdditionalBlockTest(const std::string &aBoardName, size_t aBlockOffset, const ALLEGRO::BLOCK_BASE &aBlock)
Look up and run any additional ad-hoc tests for a block.
A DB_OBJ represents one object in an Allegro database.
A complete description of a block test.
uint8_t m_BlockType
The type of the block, as in the first byte.
friend std::ostream & operator<<(std::ostream &os, const BLOCK_TEST_INFO &aTestInfo)
bool m_ExtraDbObjTest
Do we have an additional DB_OBJ-level test to run for this block?
std::string m_DataSource
The the source of the block data (probably a filename)
bool m_ExtraBlockTest
Do we have an additional block-level test to run for this block?
size_t m_BlockOffset
The offset within the board file where this block is located (used for error messages)
bool m_Skip
Whether to skip this test while parsers don't support a certain format.
std::string m_BrdName
The name of the board being tested, used for error messages and test context.
std::unique_ptr< BOARD_EXPECTATION_TEST > m_BrdExpectations
std::unique_ptr< HEADER_TEST_INFO > m_HeaderTest
ALLEGRO::FMT_VER m_FormatVersion
The version of the Allegro format that this board is in.
std::vector< BLOCK_TEST_INFO > m_BlockTests
std::string m_FilePath
The filename of the board being tested.