Changeset 78 in pacpusframework for trunk/src/PacpusLib/XmlComponentConfig.cpp
- Timestamp:
- Jan 12, 2013, 9:21:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PacpusLib/XmlComponentConfig.cpp
r76 r78 1 // %pacpus:license{ 2 // This file is part of the PACPUS framework distributed under the 3 // CECILL-C License, Version 1.0. 4 // %pacpus:license} 5 /// @version $Id$ 1 /********************************************************************* 2 // created: 2006/01/30 3 // created: 2006/01/30 - 11:09 4 // filename: xmlcomponentconfig.cpp 5 // 6 // author: Gerald Dherbomez 7 // 8 // purpose: implementation de la classe XmlComponentConfig 9 *********************************************************************/ 6 10 7 #include <Pacpus/kernel/XmlComponentConfig.h> 8 #include <Pacpus/kernel/Log.h> 9 #include <Pacpus/kernel/XmlConfigFile.h> 11 #include "kernel/XmlComponentConfig.h" 10 12 11 using namespace pacpus; 13 #include "kernel/Log.h" 14 #include "kernel/XmlConfigFile.h" 15 16 namespace pacpus { 17 12 18 using namespace std; 13 19 … … 88 94 } 89 95 90 intXmlComponentConfig::getBoolProperty(const QString& name, bool defaultValue) const96 bool XmlComponentConfig::getBoolProperty(const QString& name, bool defaultValue) const 91 97 { 92 98 return hasProperty(name) ? getProperty(name) == "true" : defaultValue; … … 98 104 } 99 105 100 intXmlComponentConfig::getDoubleProperty(const QString& name, double defaultValue) const106 double XmlComponentConfig::getDoubleProperty(const QString& name, double defaultValue) const 101 107 { 102 108 return hasProperty(name) ? getProperty(name).toDouble() : defaultValue; … … 136 142 return getProperty(kPropertyComponentType.c_str()); 137 143 } 144 145 } // namespace pacpus
Note:
See TracChangeset
for help on using the changeset viewer.