|
a/libupnpp/control/ohinfo.cxx |
|
b/libupnpp/control/ohinfo.cxx |
|
... |
|
... |
46 |
|
46 |
|
47 |
void OHInfo::evtCallback(
|
47 |
void OHInfo::evtCallback(
|
48 |
const STD_UNORDERED_MAP<std::string, std::string>& props)
|
48 |
const STD_UNORDERED_MAP<std::string, std::string>& props)
|
49 |
{
|
49 |
{
|
50 |
LOGDEB1("OHInfo::evtCallback: getReporter(): " << getReporter() << endl);
|
50 |
LOGDEB1("OHInfo::evtCallback: getReporter(): " << getReporter() << endl);
|
51 |
for (STD_UNORDERED_MAP<std::string, std::string>::const_iterator it =
|
51 |
for (STD_UNORDERED_MAP<std::string, std::string>::const_iterator it =
|
52 |
props.begin(); it != props.end(); it++) {
|
52 |
props.begin(); it != props.end(); it++) {
|
53 |
if (!getReporter()) {
|
53 |
if (!getReporter()) {
|
54 |
LOGDEB1("OHInfo::evtCallback: " << it->first << " -> "
|
54 |
LOGDEB1("OHInfo::evtCallback: " << it->first << " -> "
|
55 |
<< it->second << endl);
|
55 |
<< it->second << endl);
|
56 |
continue;
|
56 |
continue;
|
57 |
}
|
57 |
}
|
58 |
|
58 |
|
59 |
if (!it->first.compare("Metatext")) {
|
59 |
if (!it->first.compare("Metatext")) {
|
|
... |
|
... |
65 |
} else {
|
65 |
} else {
|
66 |
LOGDEB("OHInfo:evtCallback: bad metadata in event\n");
|
66 |
LOGDEB("OHInfo:evtCallback: bad metadata in event\n");
|
67 |
}
|
67 |
}
|
68 |
} else {
|
68 |
} else {
|
69 |
LOGDEB1("OHInfo event: unknown variable: name [" <<
|
69 |
LOGDEB1("OHInfo event: unknown variable: name [" <<
|
70 |
it->first << "] value [" << it->second << endl);
|
70 |
it->first << "] value [" << it->second << endl);
|
71 |
getReporter()->changed(it->first.c_str(), it->second.c_str());
|
71 |
getReporter()->changed(it->first.c_str(), it->second.c_str());
|
72 |
}
|
72 |
}
|
73 |
}
|
73 |
}
|
74 |
}
|
74 |
}
|
75 |
|
75 |
|