Skip to content

vrtpktgen no longer emits setters and getters for optional CIF0 fields in control packets #8

@pennybacker

Description

@pennybacker

If I run vrtpktgen v0.7.14 on the control packet example at https://github.com/Geontech/vrtgen/blob/master/examples/packets/example-control.yaml it no longer emits setters and getters for the optional CIF0 fields (e.g. gain). Instead, it just emits setters and getters for the enable bit

From example_control.hpp generated with vrtpktgen v0.7.13:

    /**
     * @brief Returns a reference to gain 
     * @return A optional reference to gain
     */
    [[nodiscard]]
    auto gain() -> std::optional<vrtgen::packing::Gain>&;
       
    /**
     * @brief Set the value of gain
     * @param value Value to assign to gain
     */
    auto gain(const vrtgen::packing::Gain& value) -> void;

    /**
     * @brief If gain contains a value, destroy it
     */
    auto reset_gain() -> void;

From example_control.hpp generated with vrtpktgen v0.7.14:

    /**
     * @brief Check if gain is enabled in cif_0
     * @return true if gain is enabled in cif_0, otherwise false
     */
    auto gain_enabled() const -> bool;

    /**
     * @brief Check if gain is enabled in cif_0
     * @param value Value to set gain in cif_0
     */
    auto gain_enabled(bool value) -> void;

    /**
     * @brief Set gain enabled to false
     */
    auto reset_gain() -> void;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions