Mantid
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Mantid::DataHandling::ANSTO::Tar::File Class Reference

#include <LoadANSTOHelper.h>

Classes

struct  FileInfo
 

Public Member Functions

void close ()
 
 File (const std::string &path)
 
const std::vector< std::string > & files () const
 
bool good () const
 
size_t read (void *dst, size_t size)
 
int read_byte ()
 
bool select (const char *file)
 
const std::string & selected_name () const
 
int64_t selected_position () const
 
int64_t selected_size () const
 
bool skip (uint64_t offset)
 

Static Public Member Functions

static bool append (const std::string &path, const std::string &name, const void *buffer, size_t size)
 

Private Member Functions

 File (const File &)
 
Fileoperator= (const File &)
 

Private Attributes

uint8_t m_buffer [BUFFER_SIZE]
 
size_t m_bufferAvailable
 
size_t m_bufferPosition
 
FastReadOnlyFile m_file
 
std::vector< FileInfom_fileInfos
 
std::vector< std::string > m_fileNames
 
bool m_good
 
int64_t m_position
 
size_t m_selected
 
int64_t m_size
 

Static Private Attributes

static const auto BUFFER_SIZE = 4096
 

Detailed Description

Definition at line 207 of file LoadANSTOHelper.h.

Constructor & Destructor Documentation

◆ File() [1/2]

Mantid::DataHandling::ANSTO::Tar::File::File ( const File )
private

◆ File() [2/2]

Mantid::DataHandling::ANSTO::Tar::File::File ( const std::string &  path)

Member Function Documentation

◆ append()

bool Mantid::DataHandling::ANSTO::Tar::File::append ( const std::string &  path,
const std::string &  name,
const void *  buffer,
size_t  size 
)
static

◆ close()

void Mantid::DataHandling::ANSTO::Tar::File::close ( )

◆ files()

const std::vector< std::string > & Mantid::DataHandling::ANSTO::Tar::File::files ( ) const

◆ good()

bool Mantid::DataHandling::ANSTO::Tar::File::good ( ) const

◆ operator=()

File & Mantid::DataHandling::ANSTO::Tar::File::operator= ( const File )
private

◆ read()

size_t Mantid::DataHandling::ANSTO::Tar::File::read ( void *  dst,
size_t  size 
)

◆ read_byte()

int Mantid::DataHandling::ANSTO::Tar::File::read_byte ( )

◆ select()

bool Mantid::DataHandling::ANSTO::Tar::File::select ( const char *  file)

◆ selected_name()

const std::string & Mantid::DataHandling::ANSTO::Tar::File::selected_name ( ) const

Definition at line 276 of file LoadANSTOHelper.cpp.

References m_fileNames, and m_selected.

◆ selected_position()

int64_t Mantid::DataHandling::ANSTO::Tar::File::selected_position ( ) const

Definition at line 277 of file LoadANSTOHelper.cpp.

References m_position.

Referenced by Mantid::DataHandling::LoadBBY::loadEvents().

◆ selected_size()

int64_t Mantid::DataHandling::ANSTO::Tar::File::selected_size ( ) const

◆ skip()

bool Mantid::DataHandling::ANSTO::Tar::File::skip ( uint64_t  offset)

Member Data Documentation

◆ BUFFER_SIZE

const auto Mantid::DataHandling::ANSTO::Tar::File::BUFFER_SIZE = 4096
staticprivate

Definition at line 209 of file LoadANSTOHelper.h.

◆ m_buffer

uint8_t Mantid::DataHandling::ANSTO::Tar::File::m_buffer[BUFFER_SIZE]
private

Definition at line 227 of file LoadANSTOHelper.h.

Referenced by read(), and read_byte().

◆ m_bufferAvailable

size_t Mantid::DataHandling::ANSTO::Tar::File::m_bufferAvailable
private

Definition at line 229 of file LoadANSTOHelper.h.

Referenced by close(), read(), read_byte(), select(), and skip().

◆ m_bufferPosition

size_t Mantid::DataHandling::ANSTO::Tar::File::m_bufferPosition
private

Definition at line 228 of file LoadANSTOHelper.h.

Referenced by close(), read(), read_byte(), select(), and skip().

◆ m_file

FastReadOnlyFile Mantid::DataHandling::ANSTO::Tar::File::m_file
private

Definition at line 219 of file LoadANSTOHelper.h.

Referenced by close(), File(), read(), read_byte(), select(), and skip().

◆ m_fileInfos

std::vector<FileInfo> Mantid::DataHandling::ANSTO::Tar::File::m_fileInfos
private

Definition at line 221 of file LoadANSTOHelper.h.

Referenced by close(), File(), and select().

◆ m_fileNames

std::vector<std::string> Mantid::DataHandling::ANSTO::Tar::File::m_fileNames
private

Definition at line 220 of file LoadANSTOHelper.h.

Referenced by close(), File(), files(), select(), and selected_name().

◆ m_good

bool Mantid::DataHandling::ANSTO::Tar::File::m_good
private

Definition at line 218 of file LoadANSTOHelper.h.

Referenced by close(), File(), good(), read(), read_byte(), select(), and skip().

◆ m_position

int64_t Mantid::DataHandling::ANSTO::Tar::File::m_position
private

Definition at line 224 of file LoadANSTOHelper.h.

Referenced by close(), read(), read_byte(), select(), selected_position(), and skip().

◆ m_selected

size_t Mantid::DataHandling::ANSTO::Tar::File::m_selected
private

Definition at line 223 of file LoadANSTOHelper.h.

Referenced by close(), read(), read_byte(), select(), selected_name(), and skip().

◆ m_size

int64_t Mantid::DataHandling::ANSTO::Tar::File::m_size
private

Definition at line 225 of file LoadANSTOHelper.h.

Referenced by close(), read(), read_byte(), select(), selected_size(), and skip().


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