Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Attributes | List of all members
apollo::cyber::record::RecordFileBase Class Referenceabstract

#include <record_file_base.h>

Inheritance diagram for apollo::cyber::record::RecordFileBase:
Inheritance graph
Collaboration diagram for apollo::cyber::record::RecordFileBase:
Collaboration graph

Public Member Functions

 RecordFileBase ()=default
 
virtual ~RecordFileBase ()=default
 
virtual bool Open (const std::string &path)=0
 
virtual void Close ()=0
 
const std::string & GetPath () const
 
const proto::Header & GetHeader () const
 
const proto::Index & GetIndex () const
 
int64_t CurrentPosition ()
 
bool SetPosition (int64_t position)
 

Protected Attributes

std::mutex mutex_
 
std::string path_
 
proto::Header header_
 
proto::Index index_
 
int fd_ = -1
 

Constructor & Destructor Documentation

◆ RecordFileBase()

apollo::cyber::record::RecordFileBase::RecordFileBase ( )
default

◆ ~RecordFileBase()

virtual apollo::cyber::record::RecordFileBase::~RecordFileBase ( )
virtualdefault

Member Function Documentation

◆ Close()

virtual void apollo::cyber::record::RecordFileBase::Close ( )
pure virtual

◆ CurrentPosition()

int64_t apollo::cyber::record::RecordFileBase::CurrentPosition ( )

◆ GetHeader()

const proto::Header& apollo::cyber::record::RecordFileBase::GetHeader ( ) const
inline

◆ GetIndex()

const proto::Index& apollo::cyber::record::RecordFileBase::GetIndex ( ) const
inline

◆ GetPath()

const std::string& apollo::cyber::record::RecordFileBase::GetPath ( ) const
inline

◆ Open()

virtual bool apollo::cyber::record::RecordFileBase::Open ( const std::string &  path)
pure virtual

◆ SetPosition()

bool apollo::cyber::record::RecordFileBase::SetPosition ( int64_t  position)

Member Data Documentation

◆ fd_

int apollo::cyber::record::RecordFileBase::fd_ = -1
protected

◆ header_

proto::Header apollo::cyber::record::RecordFileBase::header_
protected

◆ index_

proto::Index apollo::cyber::record::RecordFileBase::index_
protected

◆ mutex_

std::mutex apollo::cyber::record::RecordFileBase::mutex_
protected

◆ path_

std::string apollo::cyber::record::RecordFileBase::path_
protected

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