introduced DataFieldTemplates,a dded missing type HTI

This commit is contained in:
john30
2014-11-23 14:41:08 +01:00
parent 42ee567e63
commit 2922d25539
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ Message::Message(const string clazz, const string name, const bool isSet,
} }
result_t Message::create(vector<string>::iterator& it, const vector<string>::iterator end, result_t Message::create(vector<string>::iterator& it, const vector<string>::iterator end,
const map<string, DataField*> templates, Message*& returnValue) DataFieldTemplates* templates, Message*& returnValue)
{ {
// [type];[class];name;[comment];[QQ];ZZ;id;fields... // [type];[class];name;[comment];[QQ];ZZ;id;fields...
result_t result; result_t result;
+3 -3
View File
@@ -64,13 +64,13 @@ public:
* @brief Factory method for creating a new instance. * @brief Factory method for creating a new instance.
* @param it the iterator to traverse for the definition parts. * @param it the iterator to traverse for the definition parts.
* @param end the iterator pointing to the end of the definition parts. * @param end the iterator pointing to the end of the definition parts.
* @param templates a map of @a DataField templates to be referenced by name. * @param templates the @a DataFieldTemplates to be referenced by name, or NULL.
* @param returnValue the variable in which to store the created instance. * @param returnValue the variable in which to store the created instance.
* @return @a RESULT_OK on success, or an error code. * @return @a RESULT_OK on success, or an error code.
* Note: the caller needs to free the created instance. * Note: the caller needs to free the created instance.
*/ */
static result_t create(vector<string>::iterator& it, const vector<string>::iterator end, static result_t create(vector<string>::iterator& it, const vector<string>::iterator end,
const map<string, DataField*> templates, Message*& returnValue); DataFieldTemplates*, Message*& returnValue);
/** /**
* @brief Get the optional device class. * @brief Get the optional device class.
* @return the optional device class. * @return the optional device class.
@@ -192,7 +192,7 @@ public:
* @brief Adds a @a Message instance to this set. * @brief Adds a @a Message instance to this set.
* @param message the @a Message instance to add. * @param message the @a Message instance to add.
* @return @a RESULT_OK on success, or an error code. * @return @a RESULT_OK on success, or an error code.
* Note: the caller may not free the created instance on success. * Note: the caller may not free the added instance on success.
*/ */
result_t add(Message* message); result_t add(Message* message);
/** /**