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

/magnus/back_end/general/include/MagnusHome.h

Go to the documentation of this file.
00001 /*
00002  *   $Id: MagnusHome.h,v 1.4 1999/11/23 20:37:34 bormotov 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: Definition of class MagnusHome
00009 //
00010 // This class replaces the use of the preprocessor symbol MAGNUS_HOME.
00011 // Main may reset the encapsulated char* when the Magnus root pathname
00012 // is specified on the command line.
00013 //
00014 // Principal Author: Roger Needham
00015 //
00016 // Status: Complete
00017 //
00018 // Revision History:
00019 //
00020  
00021 #ifndef _MAGNUSHOME_H_
00022 #define _MAGNUSHOME_H_
00023 
00024 //@db system porting
00025 #include "config.h"
00026 
00027 #include "Chars.h"
00028 
00029 
00030 struct MagnusHome
00031 {
00032   friend int main(int argc, char* argv[]);
00033   static Chars magnusHome( ) { return Chars( magnus_home ); }
00034 
00035 private:
00036   static char* magnus_home;
00037 };
00038 
00039 struct MagnusTmp
00040 {
00041   friend int main(int argc, char* argv[]);
00042   static Chars magnusTmp( ) { return Chars( magnus_tmp ); }
00043 
00044 private:
00045   static char* magnus_tmp;
00046 };
00047 
00048 #endif

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