|
a/libupnpp/control/ohtime.cxx |
|
b/libupnpp/control/ohtime.cxx |
|
... |
|
... |
28 |
#include "libupnpp/log.hxx" // for LOGERR, LOGDEB1, LOGINF
|
28 |
#include "libupnpp/log.hxx" // for LOGERR, LOGDEB1, LOGINF
|
29 |
#include "libupnpp/soaphelp.hxx" // for SoapIncoming, etc
|
29 |
#include "libupnpp/soaphelp.hxx" // for SoapIncoming, etc
|
30 |
#include "libupnpp/upnpp_p.hxx" // for stringToBool
|
30 |
#include "libupnpp/upnpp_p.hxx" // for stringToBool
|
31 |
|
31 |
|
32 |
using namespace std;
|
32 |
using namespace std;
|
33 |
using namespace STD_PLACEHOLDERS;
|
33 |
using namespace std::placeholders;
|
34 |
using namespace UPnPP;
|
34 |
using namespace UPnPP;
|
35 |
|
35 |
|
36 |
namespace UPnPClient {
|
36 |
namespace UPnPClient {
|
37 |
|
37 |
|
38 |
const string OHTime::SType("urn:av-openhome-org:service:Time:1");
|
38 |
const string OHTime::SType("urn:av-openhome-org:service:Time:1");
|
|
... |
|
... |
44 |
const string::size_type sz(SType.size()-2);
|
44 |
const string::size_type sz(SType.size()-2);
|
45 |
return !SType.compare(0, sz, st, 0, sz);
|
45 |
return !SType.compare(0, sz, st, 0, sz);
|
46 |
}
|
46 |
}
|
47 |
|
47 |
|
48 |
void OHTime::evtCallback(
|
48 |
void OHTime::evtCallback(
|
49 |
const STD_UNORDERED_MAP<std::string, std::string>& props)
|
49 |
const std::unordered_map<std::string, std::string>& props)
|
50 |
{
|
50 |
{
|
51 |
LOGDEB1("OHTime::evtCallback: getReporter(): " << getReporter() << endl);
|
51 |
LOGDEB1("OHTime::evtCallback: getReporter(): " << getReporter() << endl);
|
52 |
for (STD_UNORDERED_MAP<std::string, std::string>::const_iterator it =
|
52 |
for (std::unordered_map<std::string, std::string>::const_iterator it =
|
53 |
props.begin(); it != props.end(); it++) {
|
53 |
props.begin(); it != props.end(); it++) {
|
54 |
if (!getReporter()) {
|
54 |
if (!getReporter()) {
|
55 |
LOGDEB1("OHTime::evtCallback: " << it->first << " -> "
|
55 |
LOGDEB1("OHTime::evtCallback: " << it->first << " -> "
|
56 |
<< it->second << endl);
|
56 |
<< it->second << endl);
|
57 |
continue;
|
57 |
continue;
|