-
Notifications
You must be signed in to change notification settings - Fork 253
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
Deduplicate code in SequentialCompressionReader #372
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,6 @@ class ROSBAG2_CPP_PUBLIC SequentialReader | |
*/ | ||
virtual void load_next_file(); | ||
|
||
private: | ||
emersonknapp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/** | ||
* Checks if all topics in the bagfile have the same RMW serialization format. | ||
* Currently a bag file can only be played if all topics have the same serialization format. | ||
|
@@ -127,13 +126,15 @@ class ROSBAG2_CPP_PUBLIC SequentialReader | |
const std::string & storage_serialization_format); | ||
|
||
std::unique_ptr<rosbag2_storage::StorageFactoryInterface> storage_factory_{}; | ||
std::shared_ptr<SerializationFormatConverterFactoryInterface> converter_factory_{}; | ||
std::shared_ptr<rosbag2_storage::storage_interfaces::ReadOnlyInterface> storage_{}; | ||
std::unique_ptr<Converter> converter_{}; | ||
std::unique_ptr<rosbag2_storage::MetadataIo> metadata_io_{}; | ||
rosbag2_storage::BagMetadata metadata_{}; | ||
std::vector<std::string> file_paths_{}; // List of database files. | ||
std::vector<std::string>::iterator current_file_iterator_{}; // Index of file to read from | ||
|
||
private: | ||
std::shared_ptr<SerializationFormatConverterFactoryInterface> converter_factory_{}; | ||
Comment on lines
+136
to
+137
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from all the things which moved into the protected section, why not the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Every other previously-private member is currently referenced directly in the SequentialCompressionReader subclass. We can probably clean it up a little so that more can be private, but my intention with this was to go for the minimum necessary set of visibility increase. Which happened to just be everything except this |
||
}; | ||
|
||
} // namespace readers | ||
|
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.
= default
?