#ifndef NO_CPP0X #include "common.h" #include "UserSymbol.h" #include "lib/config/config.h" #include "PriceSize.h" #include "lib/config/protos/MarketData.pb.h" #include #include #include namespace bts { namespace md { const double NO_PRICE = std::numeric_limits().quiet_NaN(); std::ostream& operator<<(std::ostream& os, const UserSymbol& sym) { os << sym.symbol() << "-" << api::SecurityType_Name(sym.type()); return os; } } namespace co2 { using namespace std; using namespace md; string topic(const char* data_type, const string& symbol, SecurityType type, Venue exchange, Platform platform) { std::ostringstream topic; topic << "/md/" << config::get().channel_prefix() << Platform_Name(platform) << "/" << Venue_Name(exchange) << "/" << symbol << "/" << api::SecurityType_Name(type) << "/" << data_type; return topic.str(); } } }//namespace #endif