Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

hydrobase.h

Go to the documentation of this file.
00001 
00002        //=======================================================//    _\|/_
00003       //  __  _____           ___                    ___       //      /|\ ~
00004      //  /      |      ^     |   \  |         ^     |   \     //          _\|/_
00005     //   \__    |     / \    |___/  |        / \    |___/    //            /|\ ~
00006    //       \   |    /___\   |  \   |       /___\   |   \   // _\|/_
00007   //     ___/   |   /     \  |   \  |____  /     \  |___/  //   /|\ ~
00008  //                                                       //            _\|/_
00009 //=======================================================//              /|\ ~
00010 
00012 //
00013 //  version 1:  Jan 1993   Piet Hut
00014 //  version 2:
00015 //
00016 //  This file includes:
00017 //  1) definition of class hydrobase
00018 
00019 #ifndef  STARLAB_HYDROBASE_H
00020 #  define  STARLAB_HYDROBASE_H
00021 
00022 #include  "starlab_vector.h"
00023 #include  "story.h"
00024 
00026 
00027 class  hydrobase
00028 {
00029     protected:
00030 
00031         story * hydro_story;
00032 
00033     public:
00034 
00035         hydrobase()  {hydro_story = mk_story_chapter();}
00036 
00037         virtual ~hydrobase()  {delete hydro_story;}
00038             
00039         story * get_hydro_story()               {return hydro_story;}
00040 
00041         void  set_hydro_story(story * ss)       {hydro_story = ss;}
00042 
00043         virtual ostream & print_hydro_story(ostream&);
00044         virtual istream & scan_hydro_story(istream&);
00045 };
00046 
00047 typedef  hydrobase *(*hbpfp)();
00048 
00049 inline  hydrobase * new_hydrobase()    {return  new hydrobase;}
00050 
00051 #endif
00052  

Generated on Wed Jul 20 12:43:35 2005 for Starlab by  doxygen 1.4.3