Renamed several dirs, files and classes. NOT TESTED.
- renamed imp_client/ to clients/ and ditto for servers/ - renamed imp/ to servers/ - renamed stream/input.h to stream/stream.h - renamed Stream::InputStream to Stream::Stream - updated various tests and makefiles - NOT TESTED YETactorid
parent
eedf0c9e3b
commit
69e8f9c9db
@ -1,29 +1,29 @@
|
||||
#ifndef MANGLE_STREAM_IWRAPPER_H
|
||||
#define MANGLE_STREAM_IWRAPPER_H
|
||||
|
||||
#include "../input.h"
|
||||
#include "../stream.h"
|
||||
#include <assert.h>
|
||||
|
||||
namespace Mangle {
|
||||
namespace Stream {
|
||||
|
||||
/** A generic wrapper class for a Stream::Input object.
|
||||
/** A generic wrapper class for a Stream::Stream object.
|
||||
|
||||
This is used by other implementations.
|
||||
*/
|
||||
class _IWrapper
|
||||
class _SWrapper
|
||||
{
|
||||
private:
|
||||
bool autoDel;
|
||||
|
||||
protected:
|
||||
InputStream *inp;
|
||||
Stream *inp;
|
||||
|
||||
public:
|
||||
_IWrapper(InputStream *_inp, bool _autoDel = false)
|
||||
_SWrapper(Stream *_inp, bool _autoDel = false)
|
||||
: inp(_inp), autoDel(_autoDel) { assert(inp != NULL); }
|
||||
|
||||
virtual ~_IWrapper() { if(autoDel) delete inp; }
|
||||
virtual ~_SWrapper() { if(autoDel) delete inp; }
|
||||
};
|
||||
|
||||
}} // namespaces
|
@ -1,6 +1,6 @@
|
||||
#include "ogre_archive.h"
|
||||
|
||||
#include "../../stream/imp_client/ogre_datastream.h"
|
||||
#include "../../stream/clients/ogre_datastream.h"
|
||||
|
||||
using namespace Mangle::VFS;
|
||||
using namespace Mangle::Stream;
|
Loading…
Reference in New Issue