50using ReferenceManager::SafePointer;
93 set<BinaryReader*>::iterator readers =
prototypes_->begin();
100 if ((*readers)->isMyStreamType(stream)) {
112 std::stringstream newErrorMsg;
114 <<
"Error was probably caused by a broken input file."
116 <<
"Unresolved references during reading: ";
131 std::stringstream newErrorMsg;
133 <<
"Error was probably caused by a broken input file."
135 <<
"Unresolved references during finalization of "
156 "Cannot find suitable reader implementation for file.");
#define assert(condition)
std::string errorMessage() const
void setCause(const Exception &cause)
static std::set< BinaryReader * > * prototypes_
Contains instances of concrete BinaryReaders.
static Binary * readBinary(BinaryStream &stream)
static void registerBinaryReader(BinaryReader *reader)
unsigned int readPosition()
static void cleanupKeyTables()
static void finalizeBinary(Binary *binaryToFinalize, BinaryReader *reader)