58 return *
reinterpret_cast<float*
>(
offset + field * 4);
63 return *
reinterpret_cast<unsigned int*
>(
offset + field * 4);
68 return *
reinterpret_cast<int*
>(
offset + field * 4);
73 size_t stringOffset =
getUInt(field);
Exception(const std::string &message)
const std::string & getMessage()
Record const * operator->() const
Iterator & operator=(Iterator const &right)
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)
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)
Record getRecord(size_t id)
Iterator end()
Get begin iterator over records.
size_t getFieldCount() const
Iterator begin()
Get begin iterator over records.
size_t getRecordCount() const
Trivial.
unsigned char * stringTable