Skip to content

Commit

Permalink
Proxyfmu encapsulation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhjp01 committed Feb 21, 2025
1 parent c57de0c commit c9f3df9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/proxyfmu/client/proxy_slave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,14 @@ void proxy_slave::release_state(state_index stateIndex)
void proxy_slave::export_state(state_index stateIndex, state::exported_state& es) const
{
ExportedState es_;
es_.simStarted = es.simStarted;
es_.setupComplete = es.setupComplete;
es_.fmuState = es.fmuState;
es_.schemeVersion = es.schemeVersion;
es_.uuid = es.uuid;

client_->export_state(es_, stateIndex);

es.simStarted = es_.simStarted;
es.setupComplete = es_.setupComplete;
es.fmuState = es_.fmuState;
es.schemeVersion = es_.schemeVersion;
es.uuid = es_.uuid;
}

state_index proxy_slave::import_state(const state::exported_state& exportedState)
Expand Down

0 comments on commit c9f3df9

Please sign in to comment.