.. index:: pair: struct; PythonConfigConst .. _doxid-struct_python_config_const: struct PythonConfigConst ======================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct PythonConfigConst { // fields static constexpr char :target:`EngineType`[] = "python_json"; static constexpr char :target:`EngineSchema`[] = "json://nrp-core/engines/:ref:`engine_python.json`#/python_json"; static constexpr std::string_view :ref:`InitFileExecStatus` = "InitExecStatus"; static constexpr std::string_view :ref:`ResetExecStatus` = "ResetExecStatus"; static constexpr std::string_view :ref:`ErrorMsg` = "Message"; static constexpr std::string_view :ref:`ExtraServerOptionsArg` = "options"; static constexpr std::string_view :ref:`SimulationTimeRatio` = "TimeRatio"; }; .. _details-struct_python_config_const: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; InitFileExecStatus .. _doxid-struct_python_config_const_1a0990040feaa24ba9469e8260ef39dea3: .. ref-code-block:: cpp :class: doxyrest-title-code-block static constexpr std::string_view InitFileExecStatus = "InitExecStatus" After the server executes the init file, this status flag will either be 1 for success or 0 for fail. If the execution fails, a JSON message with more details will be passed as well (under ErrorMsg). .. index:: pair: variable; ResetExecStatus .. _doxid-struct_python_config_const_1a1bed9f27f7739406a2bc6a85d52d76de: .. ref-code-block:: cpp :class: doxyrest-title-code-block static constexpr std::string_view ResetExecStatus = "ResetExecStatus" After the server resets, this status flag will either be 1 for success or 0 for fail. If the execution fails, a JSON message with more details will be passed as well (under ErrorMsg). .. index:: pair: variable; ErrorMsg .. _doxid-struct_python_config_const_1ad871f9f786d12c5d0b1e7c9311f42248: .. ref-code-block:: cpp :class: doxyrest-title-code-block static constexpr std::string_view ErrorMsg = "Message" If the init file could not be parsed, the python error message will be stored under this JSON property name. .. index:: pair: variable; ExtraServerOptionsArg .. _doxid-struct_python_config_const_1ad00eb86c7e0167e89bb3ea28ff85dfe5: .. ref-code-block:: cpp :class: doxyrest-title-code-block static constexpr std::string_view ExtraServerOptionsArg = "options" Parameter name that is used to pass along the server address. .. index:: pair: variable; SimulationTimeRatio .. _doxid-struct_python_config_const_1a36450090e5ec687a10dd58fb9d524cca: .. ref-code-block:: cpp :class: doxyrest-title-code-block static constexpr std::string_view SimulationTimeRatio = "TimeRatio" Ratio used by SimulationTime. The ratio should be passed to the server on initialization. In that way we can communicate to the server what time units are used in the simulation. This will impact the time step passed with runLoop command, as well as the simulation time returned.