14 std::map<std::string, AliasInfo >::const_iterator iter;
27 std::map<std::string, std::string> labelAliases;
29 std::map<std::string, AliasInfo >::const_iterator iter =
fAliases.begin();
33 labelAliases[iter->first] = iter->second.fPath;
44 size_t dotpos = path.find_first_of(
".");
46 info.
fPath = path.substr(dotpos+1,std::string::npos);
66 std::ifstream inputFileList (filename.c_str());
67 if(!inputFileList.is_open())
72 while(!inputFileList.eof()) {
73 getline(inputFileList,line);
75 if(line.empty())
continue;
76 else if(line.at(0) ==
'#')
continue;
77 else if(line.find(
"include") != std::string::npos)
80 q1 = line.find_first_of(
"\"");
81 q2 = line.find_last_of(
"\"");
82 std::string newfile = line.substr(q1,q2-q1);
87 std::stringstream strstr;
88 std::string alias, owner, type, path;
90 if(strstr.good()) strstr>>alias;
91 if(strstr.good()) strstr>>owner;
92 if(strstr.good()) strstr>>type;
93 if(strstr.good()) strstr>>path;
94 if(!path.empty())
Add(
QEventLabel(owner.c_str(),type.c_str()),path,alias);
#define Q_BEGIN_NAMESPACE
std::map< std::string, AliasInfo > fAliases
QError FillFromFile(const std::string &filename)
void Add(const QEventLabel &label, const std::string &path, const std::string &alias)
std::map< std::string, std::string > Find(const QEventLabel &label) const
std::map< std::string, AliasInfo > Get() const
error class with error type and description
label for QObject in the QEvent