Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Util::PropertySet::Parse ( const std::string &  definition  )  [inline]

Definition at line 36 of file PropertySet.h.

References Add(), and Clear().

Referenced by PropertySet(), and Impala::Core::Training::ParameterSearcher::SearchClient().

00037     {
00038         Clear();
00039         std::istringstream iss(definition);
00040         //parse defintion string to initialise params
00041         while(!iss.eof())
00042         {
00043             std::string pair;
00044             iss >> pair;
00045             if(pair.length() > 0)
00046             {
00047                 std::string::size_type pos = pair.find('=');
00048                 if(pos == std::string::npos)
00049                     break;
00050                 std::string name;
00051                 std::string value;
00052                 name = pair.substr(0,pos);
00053                 value = pair.substr(pos+1);
00054                 Add(name, value);
00055             }
00056         }
00057 
00058     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:41:07 2010 for ImpalaSrc by  doxygen 1.5.1