bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
BESUncompress3Z Class Referenceabstract

Function to uncompress files with .Z extension. More...

#include <BESUncompress3Z.h>

Inheritance diagram for BESUncompress3Z:
Inheritance graph
Collaboration diagram for BESUncompress3Z:
Collaboration graph

Public Member Functions

virtual void dump (std::ostream &strm) const =0
 dump the contents of this object to the specified ostream
 

Static Public Member Functions

static void uncompress (const std::string &src, int fd)
 uncompress a file with the .gz file extension
 

Detailed Description

Function to uncompress files with .Z extension.

The static function is responsible for uncompressing Z files. If the uncompressed target file already exists then this function will overwrite that file. If it doesn't already exist then it is created.

If any errors occur during this operation then a BESContainerStorageException will be thrown

Parameters
srcthe source file that is to be uncompressed
targetthe target uncompressed file
Returns
the target uncompressed file
Exceptions
BESContainerStorageExceptionif errors in uncompressing the file

Definition at line 53 of file BESUncompress3Z.h.

Member Function Documentation

◆ dump()

virtual void BESObj::dump ( std::ostream & strm) const
pure virtualinherited

dump the contents of this object to the specified ostream

This method is implemented by all derived classes to dump their contents, in other words, any state they might have, private variables, etc...

The inline function below can be used to dump the contents of an OPeNDAPObj object. For example, the object Animal is derived from BESObj. A user could do the following:

Animal *a = new dog( "Sparky" ) ; cout << a << endl ;

And the dump method for dog could display the name passed into the constructor, the (this) pointer of the object, etc...

Parameters
strmC++ i/o stream to dump the object to

Implemented in bes::CatalogItem, bes::CatalogNode, bes::NullResponseHandler, bes::SetContextsResponseHandler, bes::ShowNodeCommand, bes::ShowNodeResponseHandler, bes::XMLSetContextsCommand, BESAbstractModule, BESApp, BESAsciiModule, BESAsciiRequestHandler, BESCatalog, BESCatalogDirectory, BESCatalogEntry, BESCatalogList, BESCatalogResponseHandler, BESCatalogUtils, BESConfigResponseHandler, BESContainer, BESContainerStorage, BESContainerStorageFile, BESContainerStorageList, BESContainerStorageVolatile, BESContextManager, BESDap4ResponseHandler, BESDapModule, BESDapRequestHandler, BESDapResponse, BESDASResponse, BESDASResponseHandler, BESDataDDSResponse, BESDataDDXResponseHandler, BESDataHandlerInterface, BESDataResponseHandler, BESDDSResponse, BESDDSResponseHandler, BESDDXResponseHandler, BESDefine, BESDefineResponseHandler, BESDefinitionStorage, BESDefinitionStorageList, BESDefinitionStorageVolatile, BESDelContainerResponseHandler, BESDelContainersResponseHandler, BESDelDefResponseHandler, BESDelDefsResponseHandler, BESDMRResponse, BESDMRResponseHandler, BESError, BESFileContainer, BESFileContainerStorage, BESFileLockingCache, BESForbiddenError, BESHelpResponseHandler, BESHTMLInfo, BESInfo, BESInfoList, BESInterface, BESInternalError, BESInternalFatalError, BESLog, BESModuleApp, BESNotFoundError, BESPlugin< M >, BESPlugin< BESAbstractModule >, BESPlugin< C >, BESPluginFactory< C >, BESPluginFactory< BESAbstractModule >, BESProcIdResponseHandler, BESReporter, BESReporterList, BESRequestHandler, BESRequestHandlerList, BESResponseHandler, BESResponseHandlerList, BESResponseObject, BESReturnManager, BESServerHandler, BESServiceRegistry, BESServicesResponseHandler, BESSetContainerResponseHandler, BESSetContextResponseHandler, BESShowContainersResponseHandler, BESShowContextResponseHandler, BESShowDefsResponseHandler, BESShowErrorResponseHandler, BESStatusResponseHandler, BESStopWatch, BESStreamResponseHandler, BESSyntaxUserError, BESTextInfo, BESTimeoutError, BESTokenizer, BESTransmitter, BESUncompressManager3, BESUsage, BESUsageModule, BESUsageRequestHandler, BESVersionInfo, BESVersionResponseHandler, BESWWW, BESWWWModule, BESWWWRequestHandler, BESXDModule, BESXDRequestHandler, BESXMLCatalogCommand, BESXMLCommand, BESXMLDapCommandModule, BESXMLDefineCommand, BESXMLDeleteContainerCommand, BESXMLDeleteContainersCommand, BESXMLDeleteDefinitionCommand, BESXMLDeleteDefinitionsCommand, BESXMLGetCommand, BESXMLInfo, BESXMLInterface, BESXMLSetContainerCommand, BESXMLSetContextCommand, BESXMLShowCommand, BESXMLShowErrorCommand, BESXMLWWWGetCommand, builddmrpp::BuildDmrppModule, builddmrpp::BuildDmrppRequestHandler, builddmrpp::NgapBuildDmrppContainer, builddmrpp::NgapBuildDmrppContainerStorage, CatalogItem, CmdApp, CmdClient, cmr::CmrCatalog, cmr::CmrContainer, cmr::CmrContainerStorage, cmr::CmrInternalError, cmr::CmrNotFoundError, CmrModule, Connection, CSV_Field, CSV_Header, CSV_Obj, CSV_Reader, CSVModule, CSVRequestHandler, DaemonCommandHandler, DapFunctionsRequestHandler, DapModule, DapRequestHandler, dmrpp::DmrppModule, dmrpp::DmrppRequestHandler, EffectiveUrlCache, FFModule, FitsModule, FitsRequestHandler, FoCovJsonModule, FoCovJsonRequestHandler, FoDapCovJsonTransform, FoDapJsonTransform, FoInstanceJsonTransform, FoJsonModule, FoJsonRequestHandler, FONcArray, FONcArrayStructureField, FONcBaseType, FONcDim, FONcMap, FONcModule, FONcRequestHandler, FONgType, functions::DapFunctions, gateway::GatewayContainer, gateway::GatewayContainerStorage, gateway::GatewayModule, gateway::GatewayRequestHandler, GatewayPathInfoCommand, GatewayPathInfoResponseHandler, GDALModule, HDF4Module, HDF5Module, http::EffectiveUrlCache, http::HttpError, httpd_catalog::HttpdCatalog, httpd_catalog::HttpdCatalogContainer, httpd_catalog::HttpdCatalogContainerStorage, httpd_catalog::HttpdCatalogError, httpd_catalog::HttpdCatalogModule, ncml_module::NCMLModule, ncml_module::NCMLRequestHandler, NCModule, ngap::NgapModule, ngap::NgapOwnedContainer, ngap::NgapOwnedContainerStorage, ngap::NgapRequestHandler, PPTClient, PPTConnection, PPTServer, s3::S3Container, s3::S3ContainerStorage, s3::S3Module, s3::S3RequestHandler, SampleModule, SampleRequestHandler, SampleSayResponseHandler, SampleSayXMLCommand, SayReporter, ServerApp, ServerHandler, ShowBesKeyCommand, ShowBesKeyResponseHandler, ShowPathInfoCommand, ShowPathInfoResponseHandler, SiteMapCommand, SiteMapResponseHandler, Socket, SocketListener, StandAloneApp, StandAloneClient, TcpSocket, TheBESKeys, UgridFunctions, UnixSocket, W10nJsonRequestHandler, W10nJsonTransform, W10NModule, W10nShowPathInfoCommand, and W10nShowPathInfoResponseHandler.

◆ uncompress()

void BESUncompress3Z::uncompress ( const std::string & src,
int fd )
static

uncompress a file with the .gz file extension

Parameters
srcfile that will be uncompressed
targetfile to uncompress the src file to

Definition at line 57 of file BESUncompress3Z.cc.


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