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

livingstone.h

Go to the documentation of this file.
00001 //
00002 // The main class representing a Livingstone instance
00003 // $Id: livingstone.h,v 1.14 2000/07/26 19:44:55 kurien Exp $
00004 //
00005 #ifdef WIN32
00006 #pragma warning( 4 : 4251 )
00007 #endif
00008 
00009 #ifndef LIVINGSTONE_H
00010 #define LIVINGSTONE_H
00011 
00012 #include <opsat/cbfs_tracker.h>
00013 #include <cover/cover_tracker.h>
00014 #include <transition/tracker_reader.h>
00015 #include <livdll/livdll.h>
00016 
00017 
00018 // parameterized by search type (tracker)
00019 template <class Search_tracker_type>
00020 class LIVDLL_API Livingstone {
00021         //friend class Livingstone_debug;
00022 
00023         public:
00024                 Livingstone(int N=1, int mc = 100, unsigned int length=Tracker::DEFAULT_HISTORY_LENGTH) : tracker(Search_tracker_type(N, mc,length)), reader(Tracker_reader(tracker))
00025                           {};
00026 
00027 
00029         void read(char* system_name) { reader.read(system_name); }
00030 
00031         //protected:
00033                 Search_tracker_type tracker;
00034                 Tracker_reader reader;
00035         };
00036 
00037 // Instantiate classes Livingstone<CBFS_tracker> and Livingstone<Cover_tracker>
00038 // This does not create an object. It only forces the generation of all
00039 // of the members of classes Livingstone<CBFS_tracker> and Livingstone<Cover_tracker>. 
00040 // It exports them from the DLL and imports them into the .exe file.
00041 #ifdef WIN32
00042 EXPIMP_TEMPLATE template class LIVDLL_API Livingstone<CBFS_tracker>;
00043 EXPIMP_TEMPLATE template class LIVDLL_API Livingstone<Cover_tracker>;
00044 #endif
00045 
00046 #endif // LIVINGSTONE_H

Generated at Wed Sep 20 10:10:25 2000 for livingstone by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000