Skip to content

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

@jsoulier

Description

@jsoulier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions