Skip to content

Conversation

@xiangli6
Copy link
Contributor

Closes #502

This pull request introduces a Recordable template for the EventBuffer class, incorporates a RecordableBase interface for the Recordable template, and adjusts the XmlRecorder code accordingly. The C++17 std::variant feature is utilized in the Recorder module to manage a list of different data types for recorded variables. Additionally, the unit tests for XmlRecorder have been revised to accommodate these changes.

The RecordableBase class serves as the base class for all variables that need to be recorded during simulation. It defines the interface for accessing information about recorded variables.

The Recordable class template extends the RecordableBase interface and provides a concrete implementation for recording variables during simulation. It is templated to accommodate different data types for recording.

@xiangli6 xiangli6 added Recorders Re-engineering recorders testing architecture labels Dec 10, 2023
@xiangli6 xiangli6 self-assigned this Dec 10, 2023
@xiangli6 xiangli6 changed the base branch from master to development December 10, 2023 09:39
@xiangli6 xiangli6 requested a review from stiber December 10, 2023 10:16
Copy link
Contributor

@stiber stiber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly nitpicks and commenting requests. Two questions, with potential for discussion with others.

@xiangli6 xiangli6 requested review from d-kamath and stiber December 13, 2023 08:56
Copy link
Contributor

@stiber stiber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one more thing (yes, I am annoying).

@xiangli6 xiangli6 requested a review from stiber December 14, 2023 21:54
Copy link
Collaborator

@d-kamath d-kamath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, thank you Xiang

@xiangli6 xiangli6 merged commit 92a6b63 into development Jan 5, 2024
@xiangli6 xiangli6 deleted the issue-502-add-recordable-interface branch January 12, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture Recorders Re-engineering recorders testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a recordable template for EventBuffer class to enable XmlRecorder works with recordable

4 participants