Initial commit.

This commit is contained in:
blitz-research
2014-01-31 08:23:00 +13:00
commit 08a613ed0e
322 changed files with 45306 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef BBSTREAM_H
#define BBSTREAM_H
#include "bbsys.h"
class bbStream{
public:
enum{
EOF_ERROR=-1,EOF_NOT=0,EOF_OK=1
};
bbStream();
virtual ~bbStream();
//returns chars read
virtual int read( char *buff,int size )=0;
//returns chars written
virtual int write( const char *buff,int size )=0;
//returns chars avilable for reading
virtual int avail()=0;
//returns EOF status
virtual int eof()=0;
};
void debugStream( bbStream *s );
#endif