hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
UpdateExtendedTypes.cpp
Go to the documentation of this file.
1 #include <UpdateExtendedTypes.h>
2 #include <string>
3 #include <sstream>
4 
6 {
7  updatedTypesList.clear();
8 }
9 
11 {
12  for (std::list<NameValueMass*>::iterator it = updatedTypesList.begin(); it != updatedTypesList.end(); it++)
13  {
14  delete *it;
15  }
16 }
17 
18 void UpdatedExtendedTypes::parse (std::string &inputData)
19 {
20  std::stringstream ss(inputData);
21  std::string item;
22  while (getline (ss, item, ';'))
23  {
24  updatedTypesList.push_back (new NameValueMass (item.c_str()));
25  }
26 }
27 
28 std::list<NameValueMass *> *UpdatedExtendedTypes::getUpdatedTypesList()
29 {
30  return &updatedTypesList;
31 }
32 
33 
34 
35