| 322 | // Handlers that ignore the sender. |
| 323 | template <typename M> |
| 324 | static void _handlerM( |
| 325 | T* t, |
| 326 | void (T::*method)(const M&), |
| 327 | const process::UPID&, |
| 328 | const std::string& data) |
| 329 | { |
| 330 | google::protobuf::Arena arena; |
| 331 | M* m = CHECK_NOTNULL(google::protobuf::Arena::CreateMessage<M>(&arena)); |
| 332 | m->ParseFromString(data); |
| 333 | |
| 334 | if (m->IsInitialized()) { |
| 335 | (t->*method)(*m); |
| 336 | } else { |
| 337 | LOG(WARNING) << "Initialization errors: " |
| 338 | << m->InitializationErrorString(); |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | template <typename M> |
| 343 | static void _handlerMutM( |
nothing calls this directly
no outgoing calls
no test coverage detected