Changeset 51:dd94eb0ccc61 in finroc_plugins_rpc_ports
- Timestamp:
- 01.11.2021 10:04:59 (19 months ago)
- Branch:
- 17.03
- Children:
- 52:79e3aca936e4, 53:0a3d0077cbfe
- Phase:
- public
- Location:
- internal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
internal/tAbstractCall.cpp
r11 r51 75 75 {} 76 76 77 void tAbstractCall::ReturnValue(rrlib::serialization::tInputStream& stream, tResponseSender& response_sender) 78 { 79 throw std::runtime_error("This is a call without return value"); 80 } 81 77 82 //---------------------------------------------------------------------- 78 83 // End of namespace declaration -
internal/tAbstractCall.h
r11 r51 90 90 * Deserializes/receives return value from stream 91 91 */ 92 virtual void ReturnValue(rrlib::serialization::tInputStream& stream, tResponseSender& response_sender) 93 { 94 throw new std::runtime_error("This is a call without return value"); 95 } 92 virtual void ReturnValue(rrlib::serialization::tInputStream& stream, tResponseSender& response_sender); 96 93 97 94 /*! -
internal/tRPCPort.cpp
r49 r51 192 192 } 193 193 194 void tRPCPort::SendCall(tCallPointer && call_to_send) 195 { 196 throw std::runtime_error("Not a network port"); 197 } 198 194 199 //---------------------------------------------------------------------- 195 200 // End of namespace declaration -
internal/tRPCPort.h
r49 r51 209 209 * To be overridden by network port subclass 210 210 */ 211 virtual void SendCall(tCallPointer && call_to_send) 212 { 213 throw std::runtime_error("Not a network port"); 214 } 211 virtual void SendCall(tCallPointer && call_to_send); 215 212 }; 216 213 -
internal/tRPCRequest.h
r42 r51 282 282 static void DeserializeAndExecuteCallImplementation(rrlib::serialization::tInputStream& stream, tRPCPort& port, uint8_t function_id, tResponseSender& response_sender) 283 283 { 284 throw newstd::runtime_error("Not supported for functions returning void");284 throw std::runtime_error("Not supported for functions returning void"); 285 285 } 286 286 }; -
internal/tRPCResponse.h
r42 r51 326 326 uint8_t function_id, tResponseSender& response_sender, tCallStorage* request) 327 327 { 328 throw newstd::runtime_error("Not supported for functions returning void");328 throw std::runtime_error("Not supported for functions returning void"); 329 329 } 330 330 };
Note: See TracChangeset
for help on using the changeset viewer.