10 #ifndef YARP_SERVERSQL_IMPL_COMPOSEDNAMESERVICE_H
11 #define YARP_SERVERSQL_IMPL_COMPOSEDNAMESERVICE_H
34 void open(NameService& ns1,NameService& ns2)
45 if (ns1->apply(cmd,reply,event,remote)) {
48 return ns2->apply(cmd,reply,event,remote);
66 result = ns1->query(name);
68 result = ns2->query(name);
73 bool announce(
const std::string& name,
int activity)
override
75 if (ns2->announce(name,activity)) {
78 return ns1->announce(name,activity);
90 #endif // YARP_SERVERSQL_IMPL_COMPOSEDNAMESERVICE_H