OMKBaseType.h

Go to the documentation of this file.
00001 
00002 /************************************************************************/
00003 /* This file is part of openMask(c) INRIA, CNRS, Universite de Rennes 1 */
00004 /* 1993-2002, thereinafter the Software                                 */
00005 /*                                                                      */
00006 /* The Software has been developped within the Siames Project.          */
00007 /* INRIA, the University of Rennes 1 and CNRS jointly hold intellectual */
00008 /* property rights                                                      */
00009 /*                                                                      */
00010 /* The Software has been registered with the Agence pour la Protection  */
00011 /* des Programmes (APP) under registration number                       */
00012 /* IDDN.FR.001.510008.00.S.P.2001.000.41200                             */
00013 /*                                                                      */
00014 /* This file may be distributed under the terms of the Q Public License */
00015 /* version 1.0 as defined by Trolltech AS of Norway and appearing in    */
00016 /* the file LICENSE.QPL included in the packaging of this file.         */
00017 /*                                                                      */
00018 /* Licensees holding valid specific licenses issued by INRIA, CNRS or   */
00019 /* Universite Rennes 1 for the software may use this file in            */
00020 /* acordance with that specific license                                 */
00021 /************************************************************************/
00022                 
00023 #ifndef OMKBASETYPE_H
00024 #define OMKBASETYPE_H
00025 
00026 #include "OMKSimpleTypeT.inl"
00027 #include "OMKNumericPolator.h"
00028 
00029 namespace OMK 
00030 {
00031   namespace Type 
00032   {
00033 
00034 typedef SimpleTypeT< std::string > StringType    ;
00035 typedef SimpleTypeT< bool        > BoolType      ;
00036 typedef SimpleTypeT< int         > IntType       ;
00037 typedef SimpleTypeT< float       > FloatType     ;
00038 typedef SimpleTypeT< double      > DoubleType    ;
00039 
00040 //-----------------------------------------------------------------------------
00041 
00043 // Specific implementation
00045 
00046 template<> inline PolatorNT* IntType   ::createPolator() { return new NumericPolatorT< int    >() ; }
00047 template<> inline PolatorNT* FloatType ::createPolator() { return new NumericPolatorT< float  >() ; }
00048 template<> inline PolatorNT* DoubleType::createPolator() { return new NumericPolatorT< double >() ; }
00049 //-----------------------------------------------------------------------------
00050 
00051 
00052 template class OMK_API SimpleTypeT< std::string > ;
00053 template class OMK_API SimpleTypeT< bool        > ;
00054 template class OMK_API SimpleTypeT< int         > ;
00055 template class OMK_API SimpleTypeT< float       > ;
00056 template class OMK_API SimpleTypeT< double      > ;
00057 
00058   } // namespace Type
00059 } // namespace OMK
00060 
00061 #endif // defined OMKBASETYPE_H

logo OpenMask

Documentation generated on Mon Jun 9 11:45:55 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007