Changeset 288 in pacpusframework for trunk/include/Pacpus/kernel/XmlComponentConfig.h
- Timestamp:
- 03/26/14 21:27:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/XmlComponentConfig.h
r270 r288 35 35 * @param name Name of the ComponentFactory, by convention equal to class name. 36 36 */ 37 explicit XmlComponentConfig( const QString& name = QString::null);37 explicit XmlComponentConfig(QString const& name = QString::null); 38 38 39 39 /** Dtor of XmlComponentConfig. */ … … 45 45 * @param name Name of the property. 46 46 */ 47 void addProperty( const QString& name);47 void addProperty(QString const& name); 48 48 49 49 /** Delete a property from the XML. 50 50 * @return False if the property does not exist, false otherwise. 51 51 */ 52 int delProperty( const QString& name);52 int delProperty(QString const& name); 53 53 54 54 /** Get the value of a property. … … 57 57 * @return Value of the property, @em defaultValue otherwise. 58 58 */ 59 QString getProperty( const QString& name, const QString& defaultValue = QString::null) const;59 QString getProperty(QString const& name, QString const& defaultValue = QString::null) const; 60 60 61 61 /** Get the value of a property as a boolean. … … 64 64 * @return Value of the property, @em defaultValue otherwise. 65 65 */ 66 bool getBoolProperty( const QString& name, bool defaultValue = false) const;66 bool getBoolProperty(QString const& name, bool defaultValue = false) const; 67 67 68 68 /** Get the value of a property as an integer. … … 71 71 * @return Value of the property, @em defaultValue otherwise. 72 72 */ 73 int getIntProperty( const QString& name, int defaultValue = 0) const;73 int getIntProperty(QString const& name, int defaultValue = 0) const; 74 74 75 75 /** Get the value of a property as a double. … … 78 78 * @return Value of the property, @em defaultValue otherwise. 79 79 */ 80 double getDoubleProperty( const QString& name, double defaultValue = 0.0) const;80 double getDoubleProperty(QString const& name, double defaultValue = 0.0) const; 81 81 82 82 /** Set the value of a property. … … 84 84 * @param value Value to set. 85 85 */ 86 void setProperty( const QString& name, const QString& value);86 void setProperty(QString const& name, QString const& value); 87 87 88 88 /** Check if a property exists. … … 90 90 * @return True if the property exists, false otherwise. 91 91 */ 92 bool hasProperty( const QString& name) const;92 bool hasProperty(QString const& name) const; 93 93 94 94 public:
Note:
See TracChangeset
for help on using the changeset viewer.