Rebuild autotool system
[construo.git] / lisp_reader.hxx
blobc28458604edd3e6842faac25f5856a0f093f531e
1 // $Id: lisp_reader.hxx,v 1.5 2003/01/08 23:14:59 grumbel Exp $
2 //
3 // Construo - A wire-frame construction game
4 // Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de>
5 //
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef HEADER_LISP_READER_HXX
21 #define HEADER_LISP_READER_HXX
23 #include "lispreader.hxx"
24 #include "vector2d.hxx"
26 /** */
27 class LispReader
29 private:
30 lisp_object_t* lst;
32 lisp_object_t* search_for(const char* name);
33 public:
34 /** cur == ((pos 1 2 3) (id 12 3 4)...) */
35 LispReader (lisp_object_t* l);
37 bool read_vector (const char* name, Vector2d* vec);
38 bool read_int (const char* name, int* i);
39 bool read_float (const char* name, float* f);
40 bool read_bool (const char* name, bool* b);
43 #endif
45 /* EOF */