Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

/magnus/back_end/Map/include/MapParser.h

Go to the documentation of this file.
00001 /*
00002  *   $Id: MapParser.h,v 1.1.1.1 1995/11/20 17:54:37 rogern Exp $
00003  */
00004 
00005 // Copyright (C) 1995 The New York Group Theory Cooperative
00006 // See magnus/doc/COPYRIGHT for the full notice.
00007 
00008 // Contents: Declaration of parser for Maps.
00009 //
00010 // Principal Author: Roger Needham
00011 //
00012 // Status: useable
00013 //
00014 // Revision History:
00015 //
00016 
00017 #ifndef _MAP_PARSER_H_
00018 #define _MAP_PARSER_H_
00019 
00020 
00021 #include "WordParser.h"
00022 #include "Map.h"
00023 
00024 
00025 // A Map defined on generators { x, y, z } has the form
00026 // {
00027 //   x -> w(x,y,z),
00028 //   y -> w(x,y,z),
00029 //   z -> w(x,y,z)
00030 // }
00031 // where the images of x, y, z need not be in order, whitespace is optional,
00032 // and w(x,y,z) are words in the generators. Missing images default to the
00033 // identity.
00034 
00035 
00036 class MapParser : public WordParser {
00037 
00038 public:
00039 
00040   //////////////////////////////////////////////////////////////
00041   //                                                          //
00042   // Constructors:                                            //
00043   //                                                          //
00044   //////////////////////////////////////////////////////////////
00045 
00046   MapParser(istream &istr) : WordParser(istr) { }
00047   // Initialize the parser with the istream from which to read.
00048 
00049   // Destructor supplied by compiler.
00050 
00051   //////////////////////////////////////////////////////////////
00052   //                                                          //
00053   // Raison d'etre:                                           //
00054   //                                                          //
00055   //////////////////////////////////////////////////////////////
00056 
00057   MapRep* parseMap(
00058     const FGGroup& domain,
00059     const FGGroup& range,
00060     Chars& errMesg
00061   );
00062 
00063 };
00064 
00065 #endif

Generated at Tue Jun 19 09:49:37 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001