]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/archive/archivetest.h
Add a reminder to update version.bkl to inc_release script.
[wxWidgets.git] / tests / archive / archivetest.h
index 69dbd9520fee89285ce5bb93a8da5ad0766191e9..ea81436eac35d32f5c2ea53dafb7234d6560baf2 100644 (file)
@@ -7,6 +7,9 @@
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
+#ifndef WX_ARCHIVETEST_INCLUDED
+#define WX_ARCHIVETEST_INCLUDED 1
+
 #define WX_TEST_ARCHIVE_ITERATOR
 
 #include "wx/archive.h"
@@ -79,6 +82,9 @@ public:
     bool IsSeekable() const { return (m_options & PipeIn) == 0; }
     void SetData(TestOutputStream& out);
 
+    void Chop(size_t size) { m_size = size; }
+    char& operator [](size_t pos) { return m_data[pos]; }
+
 private:
     wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode);
     wxFileOffset OnSysTell() const;
@@ -268,3 +274,5 @@ private:
 
     void AddCmd(wxArrayString& cmdlist, const wxString& cmd);
 };
+
+#endif