diff options
author | N.N <matju@users.sourceforge.net> | 2009-12-14 19:55:54 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:04:53 +0200 |
commit | c235f09fc5ef83827ac53375015f469cd7e13eec (patch) | |
tree | 4639e88e27e105709a2bbd6352cec17808fdc5c9 /include/Input.h | |
parent | 40194041a1efbf98c45185098e3795150a0128a4 (diff) |
import version 0.36
svn path=/trunk/externals/august/readanysf~/; revision=12836
Diffstat (limited to 'include/Input.h')
-rw-r--r-- | include/Input.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/include/Input.h b/include/Input.h deleted file mode 100644 index 960bbb0..0000000 --- a/include/Input.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef _INPUT_H_ -#define _INPUT_H_ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <sys/types.h> // open -#include <sys/stat.h> // open -#include <fcntl.h> // open -#include <unistd.h> // read -#include <netdb.h> // for gethostbyname -#include <sys/socket.h> // socket - -#include <stdio.h> -#include <fcntl.h> -#include <unistd.h> - - -#include <string> // save filename -using namespace std; -#include "generic.h" - -class Input { - public: - Input(); - virtual ~ Input(); - - virtual int Open(const char *pathname); // open file or stream and return formt - virtual int Close(); // close or disconnect - virtual int Read(void *buf, unsigned int count); //read into buf count times. - - virtual long SeekSet(long offset); // lseek using SEEK_SET - virtual long SeekCur(long offset); // lseek using SEEK_CUR - virtual long SeekEnd(long offset); // lseek using SEEK_END - //int getEof() { return eof(fd); } - virtual float get_cachesize(); // return amount of buffer that is used. 0.0 for InputFile - - virtual bool get_recover( ) { return recover; } - void set_recover( bool x) { recover =x;} - - - void SetVerbosity(int d) { verbosity = d; } // set debug level 0-3 protected: - int get_fd() { return fd;} - int get_format() { return format;} - const char * get_filename() { return filename.c_str(); } - - protected: - int fd; //file descriptor for files and sockets - int format; //what format? OGG,MP3,NEXT etc. see defines above - int verbosity; //how much debugging/info to print - //we need to be able to set this dynamically for http - bool recover; // whether to recover connections on the net - string filename; // store the path/filename of what is opened for reading -}; -#endif |