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
|
#ifndef MANGLE_STREAM_IWRAPPER_H
|
||||||
#define MANGLE_STREAM_IWRAPPER_H
|
#define MANGLE_STREAM_IWRAPPER_H
|
||||||
|
|
||||||
#include "../input.h"
|
#include "../stream.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
namespace Mangle {
|
namespace Mangle {
|
||||||
namespace Stream {
|
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.
|
This is used by other implementations.
|
||||||
*/
|
*/
|
||||||
class _IWrapper
|
class _SWrapper
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
bool autoDel;
|
bool autoDel;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
InputStream *inp;
|
Stream *inp;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
_IWrapper(InputStream *_inp, bool _autoDel = false)
|
_SWrapper(Stream *_inp, bool _autoDel = false)
|
||||||
: inp(_inp), autoDel(_autoDel) { assert(inp != NULL); }
|
: inp(_inp), autoDel(_autoDel) { assert(inp != NULL); }
|
||||||
|
|
||||||
virtual ~_IWrapper() { if(autoDel) delete inp; }
|
virtual ~_SWrapper() { if(autoDel) delete inp; }
|
||||||
};
|
};
|
||||||
|
|
||||||
}} // namespaces
|
}} // namespaces
|
@ -1,6 +1,6 @@
|
|||||||
#include "ogre_archive.h"
|
#include "ogre_archive.h"
|
||||||
|
|
||||||
#include "../../stream/imp_client/ogre_datastream.h"
|
#include "../../stream/clients/ogre_datastream.h"
|
||||||
|
|
||||||
using namespace Mangle::VFS;
|
using namespace Mangle::VFS;
|
||||||
using namespace Mangle::Stream;
|
using namespace Mangle::Stream;
|
Loading…
Reference in New Issue