Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef RVNGDIRECTORYSTREAM_H_INCLUDED
00023 #define RVNGDIRECTORYSTREAM_H_INCLUDED
00024
00025 #include "librevenge-stream-api.h"
00026
00027 #include "RVNGStream.h"
00028
00029 namespace librevenge
00030 {
00031
00032 struct RVNGDirectoryStreamImpl;
00033
00040 class REVENGE_STREAM_API RVNGDirectoryStream : public RVNGInputStream
00041 {
00042
00043 RVNGDirectoryStream(const RVNGDirectoryStream &);
00044 RVNGDirectoryStream &operator=(const RVNGDirectoryStream &);
00045
00046 public:
00052 explicit RVNGDirectoryStream(const char *path);
00053
00054 virtual ~RVNGDirectoryStream();
00055
00063 static RVNGDirectoryStream *createForParent(const char *path);
00064
00069 static bool isDirectory(const char *path);
00070
00071 virtual bool isStructured();
00072 virtual unsigned subStreamCount();
00073 virtual const char *subStreamName(unsigned id);
00074 virtual bool existsSubStream(const char *name);
00075 virtual RVNGInputStream *getSubStreamByName(const char *name);
00076 virtual RVNGInputStream *getSubStreamById(unsigned id);
00077
00078 virtual const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
00079 virtual int seek(long offset, RVNG_SEEK_TYPE seekType);
00080 virtual long tell();
00081 virtual bool isEnd();
00082
00083 private:
00084 RVNGDirectoryStreamImpl *m_impl;
00085 };
00086
00087 }
00088
00089 #endif // RVNGDIRECTORYSTREAM_H_INCLUDED
00090
00091