00001 /*************************************************************************** 00002 LOW_platformMiscFactory.h - description 00003 ------------------- 00004 begin : Thu Aug 1 2002 00005 copyright : (C) 2002 by Harald Roelle, Helmut Reiser 00006 email : roelle@informatik.uni-muenchen.de, reiser@informatik.uni-muenchen.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef LOW_PLATFORMMISCFACTORY_H 00019 #define LOW_PLATFORMMISCFACTORY_H 00020 00021 00022 #ifdef __linux__ 00023 #include <sys/types.h> 00024 #endif 00025 00026 00027 class LOW_platformMisc; // forward declaration to avoid circular reference 00028 00029 00030 /** Factory class for platform specific objects of LOW_platformMisc. 00031 00032 This class also contains platform specific type definitions. 00033 00034 @see LOW_platformMisc 00035 00036 @author Harald Roelle, Helmut Reiser 00037 */ 00038 class LOW_platformMiscFactory { 00039 00040 //======================================================================================= 00041 public: 00042 00043 //===================================================================================== 00044 // 00045 // type definitions 00046 // 00047 00048 #ifdef __linux__ 00049 /** Linux specific type for thread identifier. */ 00050 typedef pid_t threadIdent_t; 00051 #endif 00052 00053 //===================================================================================== 00054 // 00055 // static factory 00056 // 00057 00058 /** Platform aware replacement for creating dynamic instances of LOW_platformMisc. 00059 @return Pointer to new instance of LOW_platformMisc. 00060 */ 00061 static LOW_platformMisc* new_platformMisc(); 00062 }; 00063 00064 #endif