nasa / trick

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Other
34 stars 19 forks source link

Cannot demonstrate a map in variable server #1706

Closed fzehraa closed 4 months ago

fzehraa commented 5 months ago

Hi! I have a string to pointer map in my simulation code. it is like map<string, myclass*> I want to show myclass objects and theirs parameters in variable server. But it says: "Variable Server: var_add cant add "dyn.object.myclass" because its an STL variable." Is there a way to show a map's elements in variable server? If not, what approach would you suggest for me?

hchen99 commented 4 months ago

STL variables are not visible to variable server as stated at https://nasa.github.io/trick/documentation/simulation_capabilities/STL-capabilities.html. There are different ways to accomplish this for instance, having trick memory manager to create an array of an object with the key and value of the map as its attributes.