ML Reference
|
00001 // **InsertLicense** code 00002 //---------------------------------------------------------------------------------- 00004 00009 //---------------------------------------------------------------------------------- 00010 #ifndef __mlApplicationProperties_H 00011 #define __mlApplicationProperties_H 00012 00013 #ifndef __mlUtilsSystem_H 00014 #include "mlUtilsSystem.h" 00015 #endif 00016 00017 ML_UTILS_START_NAMESPACE 00018 00022 class ML_UTILS_EXPORT ApplicationProperties 00023 { 00024 public: 00027 static std::string getString(const char* propertyName, const std::string& defaultValue = std::string()); 00028 00031 static MLint32 getInt(const char* propertyName, MLint32 defaultValue = 0); 00032 00035 static bool getBool(const char* propertyName, bool defaultValue = false); 00036 00039 static double getDouble(const char* propertyName, double defaultValue = 0); 00040 00043 static bool hasProperty(const char* propertyName); 00044 }; 00045 00046 ML_UTILS_END_NAMESPACE 00047 00048 #endif