-
Notifications
You must be signed in to change notification settings - Fork 17
[ISSUE-502] add an abstract base class ,RecordableBase defining the interface for recordable variables #573
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
Conversation
stiber
left a comment
There was a problem hiding this 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.
stiber
left a comment
There was a problem hiding this 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).
d-kamath
left a comment
There was a problem hiding this 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
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
RecordableBaseinterface and provides a concrete implementation for recording variables during simulation. It is templated to accommodate different data types for recording.