| 307 | } |
| 308 | |
| 309 | entry_impl* message_impl::deserialize_entry(vsomeip_v3::deserializer* _from) { |
| 310 | entry_impl* deserialized_entry = 0; |
| 311 | uint8_t tmp_entry_type; |
| 312 | |
| 313 | if (_from->look_ahead(0, tmp_entry_type)) { |
| 314 | entry_type_e deserialized_entry_type = static_cast<entry_type_e>(tmp_entry_type); |
| 315 | |
| 316 | switch (deserialized_entry_type) { |
| 317 | case entry_type_e::FIND_SERVICE: |
| 318 | case entry_type_e::OFFER_SERVICE: |
| 319 | // case entry_type_e::STOP_OFFER_SERVICE: |
| 320 | case entry_type_e::REQUEST_SERVICE: |
| 321 | deserialized_entry = new serviceentry_impl; |
| 322 | break; |
| 323 | |
| 324 | case entry_type_e::FIND_EVENT_GROUP: |
| 325 | case entry_type_e::PUBLISH_EVENTGROUP: |
| 326 | // case entry_type_e::STOP_PUBLISH_EVENTGROUP: |
| 327 | case entry_type_e::SUBSCRIBE_EVENTGROUP: |
| 328 | // case entry_type_e::STOP_SUBSCRIBE_EVENTGROUP: |
| 329 | case entry_type_e::SUBSCRIBE_EVENTGROUP_ACK: |
| 330 | // case entry_type_e::STOP_SUBSCRIBE_EVENTGROUP_ACK: |
| 331 | deserialized_entry = new eventgroupentry_impl; |
| 332 | break; |
| 333 | |
| 334 | default: |
| 335 | break; |
| 336 | }; |
| 337 | |
| 338 | // deserialize object |
| 339 | if (0 != deserialized_entry) { |
| 340 | deserialized_entry->set_owning_message(this); |
| 341 | if (!deserialized_entry->deserialize(_from)) { |
| 342 | delete deserialized_entry; |
| 343 | deserialized_entry = 0; |
| 344 | }; |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | return deserialized_entry; |
| 349 | } |
| 350 | |
| 351 | option_impl* message_impl::deserialize_option(vsomeip_v3::deserializer* _from) { |
| 352 | option_impl* deserialized_option = 0; |
nothing calls this directly
no test coverage detected