Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
rosbag::Stream Class Referenceabstract

#include <stream.h>

Inheritance diagram for rosbag::Stream:
Inheritance graph
[legend]

Public Member Functions

virtual void decompress (uint8_t *dest, unsigned int dest_len, uint8_t *source, unsigned int source_len)=0
 
virtual CompressionType getCompressionType () const =0
 
virtual void read (void *ptr, size_t size)=0
 
virtual void startRead ()
 
virtual void startWrite ()
 
virtual void stopRead ()
 
virtual void stopWrite ()
 
 Stream (ChunkedFile *file)
 
virtual void write (void *ptr, size_t size)=0
 
virtual ~Stream ()
 

Protected Member Functions

void advanceOffset (uint64_t nbytes)
 
void clearUnused ()
 
uint64_t getCompressedIn ()
 
FILE * getFilePointer ()
 
char * getUnused ()
 
int getUnusedLength ()
 
void setCompressedIn (uint64_t nbytes)
 
void setUnused (char *unused)
 
void setUnusedLength (int nUnused)
 

Protected Attributes

ChunkedFilefile_
 

Friends

class FileAccessor
 

Detailed Description

Definition at line 68 of file stream.h.

Constructor & Destructor Documentation

◆ Stream()

rosbag::Stream::Stream ( ChunkedFile file)

Definition at line 64 of file stream.cpp.

◆ ~Stream()

rosbag::Stream::~Stream ( )
virtual

Definition at line 66 of file stream.cpp.

Member Function Documentation

◆ advanceOffset()

void rosbag::Stream::advanceOffset ( uint64_t  nbytes)
protected

Definition at line 76 of file stream.cpp.

◆ clearUnused()

void rosbag::Stream::clearUnused ( )
protected

Definition at line 81 of file stream.cpp.

◆ decompress()

virtual void rosbag::Stream::decompress ( uint8_t *  dest,
unsigned int  dest_len,
uint8_t *  source,
unsigned int  source_len 
)
pure virtual

◆ getCompressedIn()

uint64_t rosbag::Stream::getCompressedIn ( )
protected

Definition at line 74 of file stream.cpp.

◆ getCompressionType()

virtual CompressionType rosbag::Stream::getCompressionType ( ) const
pure virtual

◆ getFilePointer()

FILE * rosbag::Stream::getFilePointer ( )
protected

Definition at line 73 of file stream.cpp.

◆ getUnused()

char * rosbag::Stream::getUnused ( )
protected

Definition at line 77 of file stream.cpp.

◆ getUnusedLength()

int rosbag::Stream::getUnusedLength ( )
protected

Definition at line 78 of file stream.cpp.

◆ read()

virtual void rosbag::Stream::read ( void *  ptr,
size_t  size 
)
pure virtual

◆ setCompressedIn()

void rosbag::Stream::setCompressedIn ( uint64_t  nbytes)
protected

Definition at line 75 of file stream.cpp.

◆ setUnused()

void rosbag::Stream::setUnused ( char *  unused)
protected

Definition at line 79 of file stream.cpp.

◆ setUnusedLength()

void rosbag::Stream::setUnusedLength ( int  nUnused)
protected

Definition at line 80 of file stream.cpp.

◆ startRead()

void rosbag::Stream::startRead ( )
virtual

Reimplemented in rosbag::LZ4Stream, and rosbag::BZ2Stream.

Definition at line 70 of file stream.cpp.

◆ startWrite()

void rosbag::Stream::startWrite ( )
virtual

Reimplemented in rosbag::LZ4Stream, and rosbag::BZ2Stream.

Definition at line 68 of file stream.cpp.

◆ stopRead()

void rosbag::Stream::stopRead ( )
virtual

Reimplemented in rosbag::LZ4Stream, and rosbag::BZ2Stream.

Definition at line 71 of file stream.cpp.

◆ stopWrite()

void rosbag::Stream::stopWrite ( )
virtual

Reimplemented in rosbag::LZ4Stream, and rosbag::BZ2Stream.

Definition at line 69 of file stream.cpp.

◆ write()

virtual void rosbag::Stream::write ( void *  ptr,
size_t  size 
)
pure virtual

Friends And Related Function Documentation

◆ FileAccessor

friend class FileAccessor
friend

Definition at line 70 of file stream.h.

Member Data Documentation

◆ file_

ChunkedFile* rosbag::Stream::file_
protected

Definition at line 100 of file stream.h.


The documentation for this class was generated from the following files:


rosbag_storage
Author(s): Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:55