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

Compression service using the 'Bzip2' library. More...

Inheritance diagram for Arcane::Bzip2DeflateService:
Collaboration diagram for Arcane::Bzip2DeflateService:

Public Member Functions

 Bzip2DeflateService (const ServiceBuildInfo &sbi)
void build () override
 Build-level construction of the service.
void compress (ByteConstArrayView values, ByteArray &compressed_values) override
 Compresses the data values and stores it in compressed_values.
void decompress (ByteConstArrayView compressed_values, ByteArrayView values) override
 Decompresses the data compressed_values and stores it in values.
Public Member Functions inherited from Arcane::AbstractService
 ~AbstractService () override
 Destructor.
IServiceInfoserviceInfo () const override
 Access to service information. See IServiceInfo for details.
IBaseserviceParent () const override
 Access to the base interface of main Arcane objects.
IServiceserviceInterface () override
 Returns the low-level IService interface of the service.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IService
virtual ~IService ()
 Releases resources.
Public Member Functions inherited from Arcane::IDeflateService
virtual void compress (Span< const Byte > values, ByteArray &compressed_values)
 Compresses the data values and stores it in compressed_values.
virtual void decompress (Span< const Byte > compressed_values, Span< Byte > values)
 Decompresses the data compressed_values and stores it in values.

Additional Inherited Members

Protected Member Functions inherited from Arcane::AbstractService
 AbstractService (const ServiceBuildInfo &)
 Constructor from a ServiceBuildInfo.
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const
Protected Member Functions inherited from Arcane::IService
 IService ()
 Constructor.

Detailed Description

Compression service using the 'Bzip2' library.

Definition at line 37 of file Bzip2DeflateService.cc.

Constructor & Destructor Documentation

◆ Bzip2DeflateService()

Arcane::Bzip2DeflateService::Bzip2DeflateService ( const ServiceBuildInfo & sbi)
inline

Definition at line 43 of file Bzip2DeflateService.cc.

Member Function Documentation

◆ build()

void Arcane::Bzip2DeflateService::build ( void )
inlineoverridevirtual

Build-level construction of the service.

This method is called right after the constructor.

Reimplemented from Arcane::AbstractService.

Definition at line 50 of file Bzip2DeflateService.cc.

◆ compress()

void Arcane::Bzip2DeflateService::compress ( ByteConstArrayView values,
ByteArray & compressed_values )
inlineoverridevirtual

Compresses the data values and stores it in compressed_values.

This operation may throw an IOException exception in case of an error.

Implements Arcane::IDeflateService.

Definition at line 52 of file Bzip2DeflateService.cc.

References Arcane::Array< T >::data(), Arcane::ConstArrayView< T >::data(), Arcane::TraceAccessor::info(), Arcane::Array< T >::resize(), and Arcane::ConstArrayView< T >::size().

Here is the call graph for this function:

◆ decompress()

void Arcane::Bzip2DeflateService::decompress ( ByteConstArrayView compressed_values,
ByteArrayView values )
inlineoverridevirtual

Decompresses the data compressed_values and stores it in values.

values must already have been allocated to the necessary size to contain the decompressed data. This operation may throw an IOException exception in case of an error.

Implements Arcane::IDeflateService.

Definition at line 96 of file Bzip2DeflateService.cc.

References ARCANE_THROW, Arcane::ArrayView< T >::data(), Arcane::ConstArrayView< T >::data(), Arcane::TraceAccessor::info(), Arcane::ArrayView< T >::size(), and Arcane::ConstArrayView< T >::size().

Here is the call graph for this function:

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