BESUncompressZ Class Reference

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

#include <BESUncompressZ.h>

Inheritance diagram for BESUncompressZ:

Inheritance graph
[legend]
Collaboration diagram for BESUncompressZ:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Static Public Member Functions

static void uncompress (const string &src, const string &target)
 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:
src the source file that is to be uncompressed
target the target uncompressed file
Returns:
the target uncompressed file
Exceptions:
BESContainerStorageException if errors in uncompressing the file

Definition at line 55 of file BESUncompressZ.h.


Member Function Documentation

virtual void BESObj::dump ( ostream &  strm  )  const [pure virtual, inherited]

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 OPeNDAOObj 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:
strm C++ i/o stream to dump the object to

Implemented in CmdApp, CmdClient, CSVModule, CSVRequestHandler, BESAbstractModule, BESAggFactory, BESAggregationServer, BESApp, BESBaseApp, BESBasicHttpTransmitter, BESBasicInterface, BESBasicTransmitter, BESCache, BESCatalog, BESCatalogDirectory, BESCatalogList, BESCatalogResponseHandler, BESCatalogUtils, BESConfigResponseHandler, BESContainer, BESContainerStorage, BESContainerStorageCatalog, BESContainerStorageFile, BESContainerStorageList, BESContainerStorageVolatile, BESContextManager, BESDapError, BESDapErrorInfo, BESDapModule, BESDapRequestHandler, BESDapResponse, BESDASResponse, BESDASResponseHandler, BESDataDDSResponse, BESDataDDXResponseHandler, BESDataHandlerInterface, BESDataResponseHandler, BESDDSResponse, BESDDSResponseHandler, BESDDXResponseHandler, BESDefine, BESDefineResponseHandler, BESDefinitionStorage, BESDefinitionStorageList, BESDefinitionStorageVolatile, BESDelContainerResponseHandler, BESDelContainersResponseHandler, BESDelDefResponseHandler, BESDelDefsResponseHandler, BESError, BESExceptionManager, BESFileContainer, BESForbiddenError, BESGlobalInit, BESHelpResponseHandler, BESHTMLInfo, BESInfo, BESInfoList, BESInitializer, BESInterface, BESInternalError, BESInternalFatalError, BESKeys, BESLog, BESMemoryGlobalArea, BESModuleApp, BESNotFoundError, BESPlugin< M >, BESPluginFactory< C >, BESProcessEncodedString, BESProcIdResponseHandler, BESReporter, BESReporterList, BESRequestHandler, BESRequestHandlerList, BESResponseHandler, BESResponseHandlerList, BESResponseObject, BESReturnManager, BESServiceRegistry, BESServicesResponseHandler, BESSetContainerResponseHandler, BESSetContextResponseHandler, BESShowContainersResponseHandler, BESShowContextResponseHandler, BESShowDefsResponseHandler, BESShowErrorResponseHandler, BESSilentInfo, BESStatusResponseHandler, BESStopWatch, BESStreamResponseHandler, BESSyntaxUserError, BESTextInfo, BESTokenizer, BESTransmitter, BESUncompressManager, BESVersionInfo, BESVersionResponseHandler, BESXMLInfo, Connection, PPTClient, PPTConnection, PPTServer, ServerHandler, Socket, SocketListener, SSLClient, SSLConnection, SSLServer, TcpSocket, UnixSocket, BESServerHandler, ServerApp, StandAloneApp, StandAloneClient, BESXMLCatalogCommand, BESXMLCommand, BESXMLDapCommandModule, BESXMLDefineCommand, BESXMLDeleteContainerCommand, BESXMLDeleteContainersCommand, BESXMLDeleteDefinitionCommand, BESXMLDeleteDefinitionsCommand, BESXMLGetCommand, BESXMLGetDataDDXCommand, BESXMLInterface, BESXMLSetContainerCommand, BESXMLSetContextCommand, BESXMLShowCommand, BESXMLShowErrorCommand, and BESPluginFactory< BESAbstractModule >.

Referenced by operator<<().

void BESUncompressZ::uncompress ( const string &  src,
const string &  target 
) [static]

uncompress a file with the .gz file extension

Parameters:
src file that will be uncompressed
target file to uncompress the src file to

Definition at line 56 of file BESUncompressZ.cc.

References BESDEBUG, BIT_MASK, BITS, BLOCK_MODE, CLEAR, de_stack, FIRST, FIRSTBYTE, HSIZE, INIT_BITS, MAXCODE, and SECONDBYTE.

Referenced by BESUncompressManager::BESUncompressManager().


The documentation for this class was generated from the following files:
Generated on Tue May 11 20:05:39 2010 for OPeNDAP Hyrax Back End Server (BES) by  doxygen 1.4.7