INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
hydrointerfaces/image.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 Tom Burdick, Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This distribution is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 #ifndef HYDRO_INTERFACES_IMAGE_H 00011 #define HYDRO_INTERFACES_IMAGE_H 00012 00013 #include <string> 00014 #include <vector> 00015 #include <hydroutil/context.h> 00016 00017 #include <hydroimage/structures.h> 00018 #include <hydroimage/formats.h> 00019 00020 namespace hydrointerfaces 00021 { 00022 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 class SOEXPORT Image 00047 { 00048 00049 public: 00050 typedef hydroimage::Config Config; 00051 typedef hydroimage::Data Data; 00052 typedef std::vector<hydroimage::ImageFormat> FormatVector; 00053 00054 00055 virtual ~Image() {}; 00056 00060 virtual void read( Data &data )=0; 00061 00062 private: 00063 00064 }; 00065 00067 class SOEXPORT ImageFactory { 00068 public: 00069 virtual ~ImageFactory() {}; 00072 virtual Image *createDriver( Image::Config &config, 00073 const hydroutil::Context &context ) const=0; 00074 }; 00075 00077 } // namespace 00078 00079 // Function for dynamically instantiating drivers. 00080 // A driver must have a function like so: 00081 // extern "C" { 00082 // hydrointerfaces::ImageFactory *createImageDriverFactory(); 00083 // } 00084 typedef hydrointerfaces::ImageFactory *ImageDriverFactoryMakerFunc(); 00085 00086 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)