]>
git.saurik.com Git - wxWidgets.git/blob - demos/life/reader.h
2a88cd065f313ac95fbb1e9e84222a8ce05cd905
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Life! pattern reader (writer coming soon)
4 // Author: Guillermo Rodriguez Garcia, <guille@iies.es>
8 // Copyright: (c) 2000, Guillermo Rodriguez Garcia
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _LIFE_READER_H_
13 #define _LIFE_READER_H_
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "reader.h"
19 // for compilers that support precompilation, includes "wx/wx.h"
20 #include "wx/wxprec.h"
26 // for all others, include the necessary headers
33 // --------------------------------------------------------------------------
35 // --------------------------------------------------------------------------
40 LifeReader(wxInputStream
& is
);
42 inline bool IsOk() const { return m_ok
; };
43 inline wxString
GetDescription() const { return m_description
; };
44 inline wxString
GetRules() const { return m_rules
; };
45 inline wxArrayString
GetShape() const { return m_shape
; };
46 inline LifePattern
GetPattern() const
48 return LifePattern(wxEmptyString
, m_description
, m_rules
, m_shape
);
53 wxString m_description
;
55 wxArrayString m_shape
;
58 #endif // _LIFE_READER_H_