Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] Accessing the parent Cell from a State #31

Open
jsoulier opened this issue Jan 14, 2025 · 0 comments
Open

[REQ] Accessing the parent Cell from a State #31

jsoulier opened this issue Jan 14, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jsoulier
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Yes.

I'd like a way to print the latitude and longitude of the State from the loggers. Currently, I'm writing the lat/long into each State and printing it from there. Since the data is constant (as it is based on the cell position), it should be stored in the Cell instead. However, I can't access the Cell from the State.

Describe the solution you'd like
A way of accessing the parent Cell from a State during printing. Maybe instead of using stream operators, an explicit std::string getString(const State& state, const Cell& parentCell) in the State class would work?

Describe alternatives you've considered

  1. Storing the lat/long directly in the States

Thanks

@jsoulier jsoulier added the enhancement New feature or request label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant