struct cogs::io::DataBlockImporter::DataBlockInfo

Overview

struct DataBlockInfo {
    // fields

    uint8_t version;
    std::streampos position;
    std::shared_ptr<DataBlock> block;

    // methods

    template <typename T>
    std::shared_ptr<T> CastBlock() const;
};

Detailed Documentation

Fields

uint8_t version

Exporter version of data block in the file.

std::streampos position

Position of data block in the file.

std::shared_ptr<DataBlock> block

Pointer to data block object.

Methods

template <typename T>
std::shared_ptr<T> CastBlock() const

Casts data block to specified type.