Add a method to setStringValue that takes a std::string argument
This commit is contained in:
@@ -1419,12 +1419,17 @@ public:
|
|||||||
*/
|
*/
|
||||||
bool setStringValue (const char * relative_path, const char * value);
|
bool setStringValue (const char * relative_path, const char * value);
|
||||||
|
|
||||||
|
bool setStringValue(const char * relative_path, const std::string& value)
|
||||||
|
{ return setStringValue(relative_path, value.c_str()); }
|
||||||
/**
|
/**
|
||||||
* Set another node's value as a string.
|
* Set another node's value as a string.
|
||||||
*/
|
*/
|
||||||
bool setStringValue (const std::string& relative_path, const char * value)
|
bool setStringValue (const std::string& relative_path, const char * value)
|
||||||
{ return setStringValue(relative_path.c_str(), value); }
|
{ return setStringValue(relative_path.c_str(), value); }
|
||||||
|
|
||||||
|
bool setStringValue (const std::string& relative_path,
|
||||||
|
const std::string& value)
|
||||||
|
{ return setStringValue(relative_path.c_str(), value.c_str()); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set another node's value with no specified type.
|
* Set another node's value with no specified type.
|
||||||
|
|||||||
Reference in New Issue
Block a user