mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Reduce bloat due to statics
Avoid disseminating every compile unit including Message.h with TransportNames and TransportTypes and the associated unordered_map helper methods (e.g. murmur_hash).
This commit is contained in:
committed by
Dennis Klein
parent
41165cf16b
commit
fe2127e12f
@@ -12,6 +12,7 @@
|
||||
#include <fairmq/Channel.h>
|
||||
#include <fairmq/Properties.h>
|
||||
#include <fairmq/Tools.h>
|
||||
#include <fairmq/Transports.h>
|
||||
#include <random>
|
||||
#include <regex>
|
||||
#include <set>
|
||||
@@ -383,4 +384,10 @@ bool Channel::BindEndpoint(string& endpoint)
|
||||
}
|
||||
}
|
||||
|
||||
std::string Channel::GetTransportName() const { return TransportName(fTransportType); }
|
||||
|
||||
Transport Channel::GetTransportType() const { return fTransportType; }
|
||||
|
||||
void Channel::UpdateTransport(const std::string& transport) { fTransportType = TransportType(transport); Invalidate(); }
|
||||
|
||||
} // namespace fair::mq
|
||||
|
Reference in New Issue
Block a user