]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/archive/archivetest.h
wxRTC table layout now uses cell content to calculate column widths if no other width...
[wxWidgets.git] / tests / archive / archivetest.h
index 69dbd9520fee89285ce5bb93a8da5ad0766191e9..7a1a306ee013cf4f0cc3070e5d82862c3251bd69 100644 (file)
@@ -2,11 +2,13 @@
 // Name:        tests/archive/archivetest.h
 // Purpose:     Test the archive classes
 // Author:      Mike Wetherell
-// RCS-ID:      $Id$
 // Copyright:   (c) 2004 Mike Wetherell
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
+#ifndef WX_ARCHIVETEST_INCLUDED
+#define WX_ARCHIVETEST_INCLUDED 1
+
 #define WX_TEST_ARCHIVE_ITERATOR
 
 #include "wx/archive.h"
@@ -79,6 +81,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 +273,5 @@ private:
 
     void AddCmd(wxArrayString& cmdlist, const wxString& cmd);
 };
+
+#endif