Changeset 94:20a1183cbd09 in finroc_plugins_runtime_construction
- Timestamp:
- 06.06.2017 21:13:51 (6 years ago)
- Branch:
- 17.03
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tAdministrationService.cpp
r91 r94 82 82 &tAdministrationService::SaveFinstructableGroup, &tAdministrationService::SetAnnotation, &tAdministrationService::SetPortValue, 83 83 &tAdministrationService::StartExecution, &tAdministrationService::NetworkConnect, &tAdministrationService::ConnectPorts, // NetworkConnect etc. are last in order to not break binary compatibility 84 &tAdministrationService::CreateUriConnector, &tAdministrationService::DeleteUriConnector );84 &tAdministrationService::CreateUriConnector, &tAdministrationService::DeleteUriConnector, &tAdministrationService::GetRegisterUpdates); 85 85 86 86 static tAdministrationService administration_service; … … 454 454 } 455 455 456 rrlib::serialization::tRegisterUpdate tAdministrationService::GetRegisterUpdates(int register_uid) 457 { 458 if (register_uid < 0 || register_uid >= rrlib::serialization::cMAX_PUBLISHED_REGISTERS) 459 { 460 throw std::runtime_error("Invalid register uid"); 461 } 462 return rrlib::serialization::tRegisterUpdate(register_uid); 463 } 464 456 465 tAdministrationService::tExecutionStatus tAdministrationService::IsExecuting(int element_handle) 457 466 { … … 596 605 { 597 606 core::tAnnotation* annotation = element->GetAnnotation(type.GetRttiName()); 598 if ( annotation == NULL)607 if (!annotation) 599 608 { 600 609 FINROC_LOG_PRINT(ERROR, "Creating new annotations not supported yet. Canceling setting of annotation."); -
tAdministrationService.h
r91 r94 44 44 // External includes (system with <>, local with "") 45 45 //---------------------------------------------------------------------- 46 #include "rrlib/serialization/tRegisterUpdate.h" 46 47 #include "plugins/rpc_ports/tServerPort.h" 47 48 … … 99 100 100 101 /*! 102 * (superseded by ConnectPorts) 101 103 * Connect source port to destination port 102 104 * … … 184 186 185 187 /*! 188 * (superseded by GetRegisterUpdates) 189 * 186 190 * \return All actions for creating framework element currently registered in this runtime environment - serialized 187 191 */ … … 200 204 201 205 /*! 206 * Gets all updates on specified register and all registers to be updated on change. 207 * After calling this method, the client's data on these remote registers is up to date. 208 * 209 * \param register_uid Uid of register to obtain updates for 210 * \return Updates (object does not need to be processed - does its work during deserialization) 211 */ 212 rrlib::serialization::tRegisterUpdate GetRegisterUpdates(int register_uid); 213 214 /*! 202 215 * \param element_handle Handle of framework element 203 216 * \return Is specified framework element currently executing? … … 209 222 * 210 223 * \param library_name File name of library to load 211 * \return Available module libraries (.so files) that have not been loaded yet - serialized (Updated version)224 * \return Empty memory buffer (used to be buffer with all actions for creating framework element currently registered in this runtime environment - serialized) 212 225 */ 213 226 rrlib::serialization::tMemoryBuffer LoadModuleLibrary(const std::string& library_name); 214 227 215 228 /*! 229 * (superseded by CreateUriConnector) 230 * 216 231 * Connect local port to port in remote runtime environment using one of the 217 232 * available network transport plugins.
Note: See TracChangeset
for help on using the changeset viewer.