/* * Context.cxx * * Created on: Dec 5, 2012 * Author: dklein */ #include "Context.h" #include namespace Highway { const std::string Context::PAYLOAD = "payload"; const std::string Context::LOG = "log"; const std::string Context::CONFIG = "config"; const std::string Context::CONTROL = "control"; Context::Context(std::string deviceId, std::string contextId, int numIoThreads) { std::stringstream id; id << deviceId << "." << contextId; fId = id.str(); fContext = new zmq::context_t(numIoThreads); } Context::~Context() { } std::string Context::GetId() { return fId; } zmq::context_t* Context::GetContext() { return fContext; } void Context::Close() { fContext->close(); } } /* namespace Highway */