Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::impl::TextReader Class Reference

Class for writing a text file for backups/restorations. More...

#include <arcane/std/TextReader.h>

Collaboration diagram for Arcane::impl::TextReader:

Classes

class  Impl

Public Member Functions

 TextReader (const String &filename)
 TextReader (const TextReader &rhs)=delete
TextReader & operator= (const TextReader &rhs)=delete
void read (Span< std::byte > values)
void readIntegers (Span< Integer > values)
String fileName () const
void setFileOffset (Int64 v)
void setDataCompressor (Ref< IDataCompressor > ds)
Ref< IDataCompressordataCompressor () const
std::ifstream & stream ()
Int64 fileLength () const
void read (Span< Int16 > values)
void read (Span< Int32 > values)
void read (Span< Int64 > values)
void read (Span< Real > values)
void read (Span< Byte > values)

Private Member Functions

void _binaryRead (void *bytes, Int64 len)
void _checkStream (const char *type, Int64 nb_read_value)

Private Attributes

Implm_p

Detailed Description

Class for writing a text file for backups/restorations.

Deprecated
Use TextReader2 instead

Definition at line 39 of file TextReader.h.

Constructor & Destructor Documentation

◆ TextReader()

Arcane::impl::TextReader::TextReader ( const String & filename)
explicit

Definition at line 56 of file TextReader.cc.

◆ ~TextReader()

Arcane::impl::TextReader::~TextReader ( )

Definition at line 70 of file TextReader.cc.

Member Function Documentation

◆ _binaryRead()

void Arcane::impl::TextReader::_binaryRead ( void * bytes,
Int64 len )
private

Definition at line 158 of file TextReader.cc.

◆ _checkStream()

void Arcane::impl::TextReader::_checkStream ( const char * type,
Int64 nb_read_value )
private

Definition at line 88 of file TextReader.cc.

◆ dataCompressor()

Ref< IDataCompressor > Arcane::impl::TextReader::dataCompressor ( ) const

Definition at line 206 of file TextReader.cc.

◆ fileLength()

Int64 Arcane::impl::TextReader::fileLength ( ) const

Definition at line 224 of file TextReader.cc.

◆ fileName()

String Arcane::impl::TextReader::fileName ( ) const

Definition at line 179 of file TextReader.cc.

◆ read() [1/6]

void Arcane::impl::TextReader::read ( Span< Byte > values)

Definition at line 113 of file TextReader.cc.

◆ read() [2/6]

void Arcane::impl::TextReader::read ( Span< Int16 > values)

Definition at line 131 of file TextReader.cc.

◆ read() [3/6]

void Arcane::impl::TextReader::read ( Span< Int32 > values)

Definition at line 140 of file TextReader.cc.

◆ read() [4/6]

void Arcane::impl::TextReader::read ( Span< Int64 > values)

Definition at line 122 of file TextReader.cc.

◆ read() [5/6]

void Arcane::impl::TextReader::read ( Span< Real > values)

Definition at line 149 of file TextReader.cc.

◆ read() [6/6]

void Arcane::impl::TextReader::read ( Span< std::byte > values)

Definition at line 102 of file TextReader.cc.

◆ readIntegers()

void Arcane::impl::TextReader::readIntegers ( Span< Integer > values)

Definition at line 79 of file TextReader.cc.

◆ setDataCompressor()

void Arcane::impl::TextReader::setDataCompressor ( Ref< IDataCompressor > ds)

Definition at line 197 of file TextReader.cc.

◆ setFileOffset()

void Arcane::impl::TextReader::setFileOffset ( Int64 v)

Definition at line 188 of file TextReader.cc.

◆ stream()

std::ifstream & Arcane::impl::TextReader::stream ( )

Definition at line 215 of file TextReader.cc.

Member Data Documentation

◆ m_p

Impl* Arcane::impl::TextReader::m_p
private

Definition at line 81 of file TextReader.h.


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