]>
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>
7 // Copyright: (c) 2000, Guillermo Rodriguez Garcia
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _LIFE_READER_H_
12 #define _LIFE_READER_H_
16 // --------------------------------------------------------------------------
18 // --------------------------------------------------------------------------
23 LifeReader(wxInputStream
& is
);
25 inline bool IsOk() const { return m_ok
; };
26 inline wxString
GetDescription() const { return m_description
; };
27 inline wxString
GetRules() const { return m_rules
; };
28 inline wxArrayString
GetShape() const { return m_shape
; };
29 inline LifePattern
GetPattern() const
31 return LifePattern(wxEmptyString
, m_description
, m_rules
, m_shape
);
36 wxString m_description
;
38 wxArrayString m_shape
;
41 #endif // _LIFE_READER_H_