Changeset 78 in pacpusframework for trunk/src/PacpusLib/XmlComponentConfig.cpp


Ignore:
Timestamp:
Jan 12, 2013, 9:21:15 PM (12 years ago)
Author:
sgosseli
Message:

Major: fix return types in XmlComponentConfig.

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*********************************************************************/
    610
    7 #include <Pacpus/kernel/XmlComponentConfig.h>
    8 #include <Pacpus/kernel/Log.h>
    9 #include <Pacpus/kernel/XmlConfigFile.h>
     11#include "kernel/XmlComponentConfig.h"
    1012
    11 using namespace pacpus;
     13#include "kernel/Log.h"
     14#include "kernel/XmlConfigFile.h"
     15
     16namespace pacpus {
     17
    1218using namespace std;
    1319
     
    8894}
    8995
    90 int XmlComponentConfig::getBoolProperty(const QString& name, bool defaultValue) const
     96bool XmlComponentConfig::getBoolProperty(const QString& name, bool defaultValue) const
    9197{
    9298  return hasProperty(name) ? getProperty(name) == "true" : defaultValue;
     
    98104}
    99105
    100 int XmlComponentConfig::getDoubleProperty(const QString& name, double defaultValue) const
     106double XmlComponentConfig::getDoubleProperty(const QString& name, double defaultValue) const
    101107{
    102108  return hasProperty(name) ? getProperty(name).toDouble() : defaultValue;
     
    136142    return getProperty(kPropertyComponentType.c_str());
    137143}
     144
     145} // namespace pacpus
Note: See TracChangeset for help on using the changeset viewer.