25 #ifndef AURORA_GDAFILE_H 26 #define AURORA_GDAFILE_H 31 #include <boost/noncopyable.hpp> 40 class SeekableReadStream;
108 bool hasRow(
size_t row)
const;
131 float getFloat(
size_t row,
uint32 columnHash,
float def = 0.0f)
const;
171 #endif // AURORA_GDAFILE_H Common::PtrVector< GFF4File > GFF4s
std::vector< size_t > RowStarts
int32 getInt(size_t row, uint32 columnHash, int32 def=0) const
A class holding an UTF-8 string.
float getFloat(size_t row, uint32 columnHash, float def=0.0f) const
size_t findRow(uint32 id) const
Find a row by its ID value.
ColumnNameMap _columnNameMap
void load(Common::SeekableReadStream *gda)
std::vector< const GFF4Struct * > GFF4List
void add(Common::SeekableReadStream *gda)
Add another GDA with the same column structure to the bottom of this GDA.
const GFF4Struct * getRowColumn(size_t row, uint32 hash, size_t &column) const
static const size_t kInvalidColumn
A vector storing pointer to objects, with automatic deletion.
std::map< uint32, size_t > ColumnHashMap
std::map< Common::UString, size_t > ColumnNameMap
size_t getRowCount() const
Return the number of rows in the array.
size_t getColumnCount() const
Return the number of columns in the array.
GDAFile(Common::SeekableReadStream *gda)
Take over this stream and read a GDA file out of it.
const GFF4Struct * getRow(size_t row) const
Get a row as a GFF4 struct.
Basic type definitions to handle files used in BioWare's Aurora engine.
size_t findColumn(const Common::UString &name) const
Find a column by its name.
Common::UString getString(size_t row, uint32 columnHash, const Common::UString &def="") const
ColumnHashMap _columnHashMap
static const size_t kInvalidRow
bool hasRow(size_t row) const
Does this row exist in the GDA?
std::vector< Header > Headers
const Headers & getHeaders() const
Get the column headers.
Type identifyType(const Columns &columns, const Row &rows, size_t column) const
Interface for a seekable & readable data stream.
Class to hold the GFF'd two-dimensional array of a GDA file.