diff options
| author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-09-17 18:02:21 +0000 | 
|---|---|---|
| committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-09-17 18:02:21 +0000 | 
| commit | 01d8a2405191b931cc44e18ec5379e9846b45849 (patch) | |
| tree | 946688782631ec9c57b9fcc7989ef7a48bd875e0 /src/pugixml.hpp | |
| parent | 3a9e08becd09470d7e605795d76bf7a54fc45280 (diff) | |
Added xml_attribute::set_value overloads
git-svn-id: http://pugixml.googlecode.com/svn/trunk@127 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
| -rw-r--r-- | src/pugixml.hpp | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 6228b79..0b14148 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -583,6 +583,38 @@ namespace pugi  		 */
  		bool set_value(const char* rhs);
 +		/**
 +		 * Set attribute value to \a rhs.
 +		 *
 +		 * \param rhs - new attribute value
 +		 * \return success flag (call fails if attribute is empty or there is not enough memory)
 +		 */
 +		bool set_value(int rhs);
 +
 +		/**
 +		 * Set attribute value to \a rhs.
 +		 *
 +		 * \param rhs - new attribute value
 +		 * \return success flag (call fails if attribute is empty or there is not enough memory)
 +		 */
 +		bool set_value(unsigned int rhs);
 +
 +		/**
 +		 * Set attribute value to \a rhs.
 +		 *
 +		 * \param rhs - new attribute value
 +		 * \return success flag (call fails if attribute is empty or there is not enough memory)
 +		 */
 +		bool set_value(double rhs);
 +
 +		/**
 +		 * Set attribute value to either 'true' or 'false' (depends on whether \a rhs is true or false).
 +		 *
 +		 * \param rhs - new attribute value
 +		 * \return success flag (call fails if attribute is empty or there is not enough memory)
 +		 */
 +		bool set_value(bool rhs);
 +
  	public:
  		/**
  		 * Check if attribute is empty.
  | 
