#pragma once #include "String.Format.tlh" #include "BUS.BUSID.hpp" //----------------------------------------------------------------------------- // 用于格式化 BUSID // // #include "String.Format.BUSID.hpp" //----------------------------------------------------------------------------- namespace ECOM::Utility::String { template <> inline std::string ToString (const ECOM::ServiceBus::BUSID & _val) { return std::string (_val.Who (_val)); } template <> inline std::string ToString (const ECOM::ServiceBus::Detail::ID::unBUSID & _val) { return std::string (_val.Who (_val)); } template <> inline std::string ToString (const ECOM::ServiceBus::Topic & _val) { // !!! 暂时不知道怎么格式化成字符串 !!! return std::string (_val.GetName ()); } }