49 class NotFound:
public Exception
70 return *
reinterpret_cast<float*
>(
offset + field * 4);
75 return *
reinterpret_cast<unsigned int*
>(
offset + (field * 4));
80 return *
reinterpret_cast<int*
>(
offset + field * 4);
85 return *
reinterpret_cast<unsigned char*
>(
offset + ofs);
90 size_t stringOffset =
getUInt(field);
Exception(const std::string &message)
const std::string & getMessage()
Record const * operator->() const
Iterator(DBCFile &file, unsigned char *offset)
bool operator==(Iterator const &b) const
Comparison.
Record const & operator*() const
Return address of current instance.
Iterator & operator++()
Advance (prefix only)
unsigned char getByte(size_t ofs) const
Record(DBCFile &file, unsigned char *offset)
char const * getString(size_t field) const
float getFloat(size_t field) const
unsigned int getUInt(size_t field) const
int getInt(size_t field) const
Record & operator=(Record const &right)
DBCFile(const std::string &filename)
Iterator begin()
Get begin iterator over records.
Record getRecord(size_t id)
size_t getFieldCount() const
size_t getRecordCount() const
Trivial.
Iterator end()
Get begin iterator over records.
unsigned char * stringTable