Lines 157-169
Link Here
|
157 |
//cout << akey; |
157 |
//cout << akey; |
158 |
/** Now determine if this is a toggleable key. We will have toparse |
158 |
/** Now determine if this is a toggleable key. We will have toparse |
159 |
the name format name1|name2 if indeed it is a toggleable key. */ |
159 |
the name format name1|name2 if indeed it is a toggleable key. */ |
160 |
if ((unsigned int)key.find('|') != string::npos) { |
160 |
if ((unsigned int)key.find('|') != (unsigned int)string::npos){ |
161 |
key+='|'; |
161 |
key+='|'; |
162 |
akey->setToggle(true); |
162 |
akey->setToggle(true); |
163 |
int index; |
163 |
int index; |
164 |
string tmp; |
164 |
string tmp; |
165 |
//vector<string>names; |
165 |
//vector<string>names; |
166 |
while (((unsigned int)(index = key.find('|'))) != string::npos) { |
166 |
while (((unsigned int)(index = key.find('|'))) != (unsignedint)string::npos) { |
167 |
tmp = key.substr(0,index); |
167 |
tmp = key.substr(0,index); |
168 |
//cout << "adding toggle name: " << tmp << " to " << akey->getName() << endl; |
168 |
//cout << "adding toggle name: " << tmp << " to " << akey->getName() << endl; |
169 |
akey->addToggleName(tmp); |
169 |
akey->addToggleName(tmp); |