GocrModule.h

00001 # ifndef Conjecture_GocrModule_h
00002 # define Conjecture_GocrModule_h Conjecture_GocrModule_h
00003 
00004 // Insert SVN header substitution variable here
00005 // Created by wade
00006 // Class Champion: Unassigned
00007 
00008 // C++ Dependencies
00009 # include "OCRModule.h"  // parent
00010 
00011 // C Dependencies (temporary)
00012 # include "gocr.h"  // job_t, job_init
00013 
00014 namespace Conjecture {
00015 
00028     class GocrModule : public OCRModule {
00029       public:
00030         GocrModule();
00031 
00032         virtual ProcessComponent *  createProcessComponent()   const;
00033         virtual SegmentComponent *  createSegmentComponent()   const;
00034         virtual IdentifyComponent*  createIdentifyComponent()  const;
00035         virtual FormatComponent  *  createFormatComponent()    const;
00036 
00037         virtual void processArgs(int argc, const char** argv, Env* env = NULL);
00038 
00039         // NOTE: All of these are public (and the getter isn't
00040         // read-only) due to the convoluted nature of underlying
00041         // 'gocr' code. It is hoped that 'gocr' will clean up its
00042         // reliance on Job, after which we can start enforcing a
00043         // cleaner design in these wrapper classes.
00044         inline Job*       job() const     { return this->_job; }
00045         inline Job* &     jobRef()        { return this->_job; }
00046         inline void       jobIs(Job* job) { this->_job = job;  }
00047 
00048       protected:
00049         
00050       private:
00051         Job*            _job;
00052   };
00053 }
00054 
00055 # endif // Conjecture_GocrModule_h

Generated on Thu Jun 15 19:56:09 2006 for Conjecture by  doxygen 1.4.6