Skip to content

Commit

Permalink
Move get_storage_identifier and get_bagfile_size (ros2#209)
Browse files Browse the repository at this point in the history
* [WIP] Move get_storage_identifier and get_bagfile_size

Signed-off-by: Zachary Michaels <[email protected]>

* Remove trailing spaces

Signed-off-by: Zachary Michaels <[email protected]>
  • Loading branch information
zmichaels11 authored and Prajakta Gokhale committed Dec 3, 2019
1 parent 22a6822 commit 6cf47b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ class ROSBAG2_STORAGE_PUBLIC BaseInfoInterface
* \returns the relative path.
*/
virtual std::string get_relative_file_path() const = 0;

/**
* Returns the size of the bagfile.
* \returns the size of the bagfile in bytes.
*/
virtual uint64_t get_bagfile_size() const = 0;

/**
* Returns the identifier for the storage plugin.
* \returns the identifier.
*/
virtual std::string get_storage_identifier() const = 0;
};

} // namespace storage_interfaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ class ROSBAG2_STORAGE_PUBLIC BaseIOInterface
* The storage plugin will append the uri in the case of creating a new bagfile backing.
*/
virtual void open(const std::string & uri, IOFlag io_flag) = 0;

/**
* Returns the size of the bagfile.
* \returns the size of the bagfile in bytes.
*/
virtual uint64_t get_bagfile_size() const = 0;

/**
* Returns the identifier for the storage plugin.
* \returns the identifier.
*/
virtual std::string get_storage_identifier() const = 0;
};

} // namespace storage_interfaces
Expand Down

0 comments on commit 6cf47b2

Please sign in to comment.