RVNGDirectoryStream.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* librevenge
3  * Version: MPL 2.0 / LGPLv2.1+
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Major Contributor(s):
10  * Copyright (C) 2002-2005 William Lachance (wrlach@gmail.com)
11  * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
12  * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
13  *
14  * For minor contributions see the git repository.
15  *
16  * Alternatively, the contents of this file may be used under the terms
17  * of the GNU Lesser General Public License Version 2.1 or later
18  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19  * applicable instead of those above.
20  */
21 
22 #ifndef RVNGDIRECTORYSTREAM_H_INCLUDED
23 #define RVNGDIRECTORYSTREAM_H_INCLUDED
24 
25 #include "librevenge-stream-api.h"
26 
27 #include "RVNGStream.h"
28 
29 namespace librevenge
30 {
31 
32 struct RVNGDirectoryStreamImpl;
33 
35 {
36  // disable copying
38  RVNGDirectoryStream &operator=(const RVNGDirectoryStream &);
39 
40 public:
41  explicit RVNGDirectoryStream(const char *path);
42  virtual ~RVNGDirectoryStream();
43 
44  static RVNGDirectoryStream *createForParent(const char *path);
45  static bool isDirectory(const char *path);
46 
47  virtual bool isStructured();
48  virtual unsigned subStreamCount();
49  virtual const char *subStreamName(unsigned id);
50  virtual bool existsSubStream(const char *name);
51  virtual RVNGInputStream *getSubStreamByName(const char *name);
52  virtual RVNGInputStream *getSubStreamById(unsigned id);
53 
54  virtual const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
55  virtual int seek(long offset, RVNG_SEEK_TYPE seekType);
56  virtual long tell();
57  virtual bool isEnd();
58 
59 private:
61 };
62 
63 }
64 
65 #endif // RVNGDIRECTORYSTREAM_H_INCLUDED
66 
67 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
RVNGDirectoryStreamImpl * m_impl
Definition: RVNGDirectoryStream.h:60
Definition: RVNGBinaryData.cpp:38
#define REVENGE_STREAM_API
Definition: librevenge-stream-api.h:31
unsigned offset
Definition: RVNGZipStream.cpp:74
Definition: RVNGDirectoryStream.cpp:92
RVNG_SEEK_TYPE
Definition: RVNGStream.h:26
Definition: RVNGStream.h:33
Definition: RVNGDirectoryStream.h:34

Generated for librevenge by doxygen 1.8.8