added support for setting a different name for a template when it appears in a message

This commit is contained in:
john30
2015-06-20 10:10:51 +02:00
parent 3751c11336
commit b0e97b01f5
2 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -730,11 +730,12 @@ public:
/**
* Adds a template @a DataField instance to this map.
* @param field the @a DataField instance to add.
* @param name the name to use in the map, or the empty string to use the @a DataField name.
* @param replace whether replacing an already stored instance is allowed.
* @return @a RESULT_OK on success, or an error code.
* Note: the caller may not free the added instance on success.
*/
result_t add(DataField* field, bool replace=false);
result_t add(DataField* field, string name="", bool replace=false);
// @copydoc
virtual result_t addFromFile(vector<string>::iterator& begin, const vector<string>::iterator end, void* arg, vector< vector<string> >* defaults, const string& filename, unsigned int lineNo);