bes  Updated for version 3.20.6
FONcTransform Class Referenceabstract

Transformation object that converts an OPeNDAP DataDDS to a netcdf file. More...

#include <FONcTransform.h>

Collaboration diagram for FONcTransform:
Collaboration graph

Public Member Functions

virtual void dump (ostream &strm) const
 dumps information about this transformation object for debugging purposes More...
 
virtual void dump (std::ostream &strm) const =0
 dump the contents of this object to the specified ostream More...
 
 FONcTransform (DDS *dds, BESDataHandlerInterface &dhi, const string &localfile, const string &netcdfVersion="netcdf")
 Constructor that creates transformation object from the specified DataDDS object to the specified file. More...
 
virtual void transform ()
 Transforms each of the variables of the DataDDS to the NetCDF file. More...
 
virtual ~FONcTransform ()
 Destructor. More...
 

Detailed Description

Transformation object that converts an OPeNDAP DataDDS to a netcdf file.

This class transforms each variable of the DataDDS to a netcdf file. For more information on the transformation please refer to the OpeNDAP documents wiki.

Definition at line 58 of file FONcTransform.h.

Constructor & Destructor Documentation

◆ FONcTransform()

FONcTransform::FONcTransform ( DDS *  dds,
BESDataHandlerInterface dhi,
const string &  localfile,
const string &  ncVersion = "netcdf" 
)

Constructor that creates transformation object from the specified DataDDS object to the specified file.

Build a FONcTransform object. By default it builds a netcdf 3 file; pass "netcdf-4" to get a netcdf 4 file.

Note
added default value to fourth param to preserve the older API. 5/6/13 jhrg
Parameters
dds
dhi
localfile
netcdfVersion
ddsDataDDS object that contains the data structure, attributes and data
dhiThe data interface containing information about the current request
localfilenetcdf to create and write the information to
Exceptions
BESInternalErrorif dds provided is empty or not read, if the file is not specified or failed to create the netcdf file

Definition at line 67 of file FONcTransform.cc.

◆ ~FONcTransform()

FONcTransform::~FONcTransform ( )
virtual

Destructor.

Cleans up any temporary data created during the transformation

Definition at line 101 of file FONcTransform.cc.

Member Function Documentation

◆ dump() [1/2]

void FONcTransform::dump ( ostream &  strm) const
virtual

dumps information about this transformation object for debugging purposes

Displays the pointer value of this instance plus instance data, including all of the FONc objects converted from DAP objects that are to be sent to the netcdf file.

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

Definition at line 233 of file FONcTransform.cc.

◆ dump() [2/2]

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 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
strmC++ i/o stream to dump the object to

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

◆ transform()

void FONcTransform::transform ( )
virtual

Transforms each of the variables of the DataDDS to the NetCDF file.

For each variable in the DataDDS write out that variable and its attributes to the netcdf file. Each OPeNDAP data type translates into a particular netcdf type. Also write out any global variables stored at the top level of the DataDDS.

Definition at line 127 of file FONcTransform.cc.


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