]>
git.saurik.com Git - wxWidgets.git/blob - demos/life/reader.h
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 // for compilers that support precompilation, includes "wx/wx.h"
16 #include "wx/wxprec.h"
22 // for all others, include the necessary headers
29 // --------------------------------------------------------------------------
31 // --------------------------------------------------------------------------
36 LifeReader(wxInputStream
& is
);
38 inline bool IsOk() const { return m_ok
; };
39 inline wxString
GetDescription() const { return m_description
; };
40 inline wxString
GetRules() const { return m_rules
; };
41 inline wxArrayString
GetShape() const { return m_shape
; };
42 inline LifePattern
GetPattern() const
44 return LifePattern(wxEmptyString
, m_description
, m_rules
, m_shape
);
49 wxString m_description
;
51 wxArrayString m_shape
;
54 #endif // _LIFE_READER_H_