* Finish modularization

This commit is contained in:
2015-01-24 20:29:08 -08:00
parent e6d53f33a9
commit e868c31253
18 changed files with 37 additions and 341 deletions

View File

@@ -36,7 +36,7 @@ namespace io
*/
class ALTTPFileWriter : protected BinaryWriter
{
BINARYWRITER_BASE
BINARYWRITER_BASE();
public:
/*! \brief This constructor takes an existing buffer to write to.

View File

@@ -167,13 +167,13 @@ public:
*
* \return Uint8* The buffer at the current position from the given length.
*/
atInt8* readBytes(atInt64 length);
atInt8* readBytes(atUint64 length);
/*! \brief Reads a byte at the current position and advances the current position.
*
* \return Int8* The buffer at the current position from the given length.
*/
atUint8* readUBytes(atInt64 length);
atUint8* readUBytes(atUint64 length);
/*! \brief Reads a Int16 and swaps to proper endianness depending on platform
* and Stream settings, and advances the current position

View File

@@ -292,8 +292,8 @@ private:
}
#ifndef BINARYWRITER_BASE
#define BINARYWRITER_BASE \
#define BINARYWRITER_BASE() \
private: \
typedef Athena::io::BinaryWriter base;
typedef Athena::io::BinaryWriter base
#endif // BINARYWRITER_BASE
#endif // __BINARY_WRITER_HPP__

View File

@@ -37,7 +37,7 @@ namespace io
*/
class MCFileWriter : protected BinaryWriter
{
BINARYWRITER_BASE
BINARYWRITER_BASE();
public:
/*!
* \brief This constructor takes an existing buffer to write to.

View File

@@ -28,8 +28,7 @@ namespace io
class SkywardSwordFileWriter : public BinaryWriter
{
// Why does this fuck up my formatting in Qt Creator?
BINARYWRITER_BASE
BINARYWRITER_BASE();
public:
SkywardSwordFileWriter(atUint8* data, atUint64 len);
SkywardSwordFileWriter(const std::string& filename);

View File

@@ -31,7 +31,7 @@ namespace io
class SpriteFileWriter : public BinaryWriter
{
BINARYWRITER_BASE;
BINARYWRITER_BASE();
public:
SpriteFileWriter(atUint8* data, atUint64 length);

View File

@@ -38,7 +38,7 @@ namespace io
*/
class WiiSaveWriter : protected BinaryWriter
{
BINARYWRITER_BASE
BINARYWRITER_BASE();
public:
/*! \brief This constructor creates an instance from a file on disk.
*

View File

@@ -31,7 +31,7 @@ namespace io
*/
class ZQuestFileWriter : protected BinaryWriter
{
BINARYWRITER_BASE
BINARYWRITER_BASE();
public:
/*!