00001 00024 #ifndef _COM_DEFS_H 00025 #define _COM_DEFS_H 00026 00027 #include <limits> 00028 #include <string> 00029 #include <algorithm> 00030 00034 typedef long long SimTime; 00035 00036 // const SimTime INFINITY_SIM_TIME = std::numeric_limits<SimTime>::max (); 00037 // The above definition is bad because INFINITY_SIM_TIME + small_value will cause an overflow 00038 // and the result is not INFINITY_SIM_TIME any more 00039 00041 const SimTime INFINITY_SIM_TIME = (1 << 30); 00042 00043 00047 std::string toLowerCase (std::string str); 00048 #endif