18 #ifndef __RESOURCE_PROVIDER_REGISTRY_HPP__ 19 #define __RESOURCE_PROVIDER_REGISTRY_HPP__ 24 #include "resource_provider/registry.pb.h" 27 namespace resource_provider {
31 const ResourceProvider& left,
32 const ResourceProvider& right)
36 if (left.id() != right.id()) {
40 if (left.has_name() && right.has_name() && left.name() != right.name()) {
44 if (left.has_type() && right.has_type() && left.type() != right.type()) {
53 const ResourceProvider& left,
54 const ResourceProvider& right)
56 return !(left == right);
62 const ResourceProvider& resourceProvider)
64 return stream << resourceProvider.DebugString();
71 #endif // __RESOURCE_PROVIDER_REGISTRY_HPP__ std::ostream & operator<<(std::ostream &stream, const ResourceProvider &resourceProvider)
Definition: registry.hpp:60
bool operator!=(const ResourceProvider &left, const ResourceProvider &right)
Definition: registry.hpp:52
bool operator==(const ResourceProvider &left, const ResourceProvider &right)
Definition: registry.hpp:30