]> git.saurik.com Git - wxWidgets.git/blame - demos/life/reader.h
Fix explicitly setting focus to generic wxSpinCtrl.
[wxWidgets.git] / demos / life / reader.h
CommitLineData
f6bcfd97
BP
1/////////////////////////////////////////////////////////////////////////////
2// Name: reader.h
3// Purpose: Life! pattern reader (writer coming soon)
4// Author: Guillermo Rodriguez Garcia, <guille@iies.es>
5// Modified by:
6// Created: Jan/2000
7// RCS-ID: $Id$
8// Copyright: (c) 2000, Guillermo Rodriguez Garcia
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _LIFE_READER_H_
13#define _LIFE_READER_H_
14
f6bcfd97
BP
15#include "game.h"
16
17// --------------------------------------------------------------------------
18// LifeReader
19// --------------------------------------------------------------------------
20
21class LifeReader
22{
23public:
24 LifeReader(wxInputStream& is);
25
26 inline bool IsOk() const { return m_ok; };
27 inline wxString GetDescription() const { return m_description; };
28 inline wxString GetRules() const { return m_rules; };
29 inline wxArrayString GetShape() const { return m_shape; };
30 inline LifePattern GetPattern() const
31 {
5d2ac6b8 32 return LifePattern(wxEmptyString, m_description, m_rules, m_shape);
f6bcfd97
BP
33 };
34
35private:
36 bool m_ok;
37 wxString m_description;
38 wxString m_rules;
39 wxArrayString m_shape;
40};
41
42#endif // _LIFE_READER_H_