@ -32,7 +32,7 @@ class Mangle2OgreStream : public Ogre::DataStream
/// Constructor for a named data stream
Mangle2OgreStream(const Ogre::String &name, StreamPtr _inp)
: inp(_inp), Ogre::DataStream(name) { init(); }
: Ogre::DataStream(name), inp(_inp) { init(); }
// Only implement the DataStream functions we have to implement
@ -37,7 +37,7 @@ class BufferStream : public MemoryStream
{
// We DON'T know how big the stream is. We'll have to read
// it in increments.
const int ADD = 32*1024;
const unsigned int ADD = 32*1024;
size_t len=0, newlen;
while(!input->eof())
@ -4,7 +4,13 @@
#include <exception>
#include <string>
/// A simple exception that takes and holds a string
/** @brief A simple exception that takes and holds a string
Usage:
throw str_exception("message");
*/
class str_exception : public std::exception
std::string msg;