mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-23 09:23:52 +00:00
69e8f9c9db
- 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 YET
21 lines
569 B
C++
21 lines
569 B
C++
#include "dummy_input.cpp"
|
|
#include "ogre_datastream.h"
|
|
#include <iostream>
|
|
|
|
using namespace Ogre;
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
Stream *inp = new DummyInput();
|
|
DataStreamPtr p(new MangleDataStream("hello", inp, true));
|
|
cout << "Name: " << p->getName() << endl;
|
|
cout << "As string: " << p->getAsString() << endl;
|
|
cout << "pos=" << p->tell() << " eof=" << p->eof() << endl;
|
|
p->seek(0);
|
|
cout << "pos=" << p->tell() << " eof=" << p->eof() << endl;
|
|
p->skip(5);
|
|
p->skip(-2);
|
|
cout << "pos=" << p->tell() << " eof=" << p->eof() << endl;
|
|
return 0;
|
|
}
|