added FileReader

This commit is contained in:
john30
2014-11-23 20:25:48 +01:00
parent 4141f8e091
commit 922217602b
5 changed files with 120 additions and 52 deletions
+4 -1
View File
@@ -176,7 +176,7 @@ private:
/**
* @brief Holds a map of all known @a Message instances.
*/
class MessageMap
class MessageMap : public FileReader<DataFieldTemplates*>
{
public:
@@ -195,6 +195,8 @@ public:
* Note: the caller may not free the added instance on success.
*/
result_t add(Message* message);
// @copydoc
virtual result_t addFromFile(vector<string>& row, DataFieldTemplates* arg);
/**
* @brief Finds the @a Message instance for the specified class and name.
* @param master the master @a SymbolString for identifying the @a Message.
@@ -214,6 +216,7 @@ public:
*/
void clear();
private:
/** the maximum ID length used by any of the known @a Message instances. */