runMACS
 All Data Structures Files Functions Variables Enumerations Enumerator Macros
InfoServer.cpp
Go to the documentation of this file.
1 #include <InfoServer.h>
2 #include <stringtricks.h>
3 
4 InfoServer::InfoServer(zmq::context_t & _ctx,
5  const std::string & _brokerEndpoint,
6  const std::string & _serviceName,
7  const std::string & _thisHostName):
8  RocServer(_ctx, _brokerEndpoint, _serviceName),
9  thisHostName(_thisHostName) {
10 
11 }
12 
14 
15 }
16 
17 Json::Value InfoServer::getattr(const std::string & name) {
18  if(name == "dataPublishEndpoint") {
19  return SSTR("tcp://", thisHostName, ":6666");
20  }
21  throw RocNotImplementedError();
22 }
std::string SSTR(Args &&...components)
Creates a temporary string stream for string concatenation.
Definition: stringtricks.h:21
InfoServer(zmq::context_t &_ctx, const std::string &_brokerEndpoint, const std::string &_serviceName, const std::string &_thisHostName)
Definition: InfoServer.cpp:4