OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
wcsUtil.h File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <time.h>
#include <cpl_string.h>
#include "wcs_error.h"
#include "BoundingBox.h"
Include dependency graph for wcsUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CFGReader
 
class  KVP
 
class  KVPsReader
 
class  S2C
 
class  StringList
 
class  WCSCGI
 WCSCGI class is used to acquire WCS request, both GET and POST method are supported. More...
 

Macros

#define DELIMITER   "/"
 
#define EQUAL(a, b)   (strcasecmp(a,b)==0)
 
#define EQUALN(a, b, n)   (strncasecmp(a,b,n)==0)
 
#define FALSE   0
 
#define NULL   0
 
#define TRUE   1
 

Enumerations

enum  CGI_METHOD_FLAG { UN_KNOWN, HTTP_GET, HTTP_XML_POST }
 

Functions

int CPL_DLL CPL_STDCALL CompareDateTime_GreaterThan (string time1, string time2)
 
int CPL_DLL CPL_STDCALL ConvertDateTimeToSeconds (string datetime)
 
int CPL_DLL CPL_STDCALL CsvburstComplexCpp (const string &line, vector< string > &strSet, const char *tok)
 
CPL_C_START int CPL_DLL CPL_STDCALL CsvburstCpp (const std::string &line, std::vector< std::string > &strSet, const char tok)
 
int CPL_DLL CPL_STDCALL Find_Compare_SubStr (string line, string sub)
 
void CPL_DLL CPL_STDCALL GetCornerPoints (const GDAL_GCP *&pGCPList, const int &nGCPs, My2DPoint &lowLeft, My2DPoint &upRight)
 
CPLErr CPL_DLL CPL_STDCALL GetFileNameList (char *dir, std::vector< string > &strList)
 
string CPL_DLL CPL_STDCALL GetSingleValue (const string &subsetstr)
 
string CPL_DLL CPL_STDCALL GetSubSetLatLon (const string &subsetstr, vector< double > &subsetvalue)
 
void CPL_DLL CPL_STDCALL GetSubSetTime (const string &subsetstr, vector< string > &subsetvalue)
 
string CPL_DLL CPL_STDCALL GetTimeString (int code)
 
CPLErr CPL_DLL CPL_STDCALL GetTRMMBandList (string start, string end, std::vector< int > &bandList)
 
string CPL_DLL CPL_STDCALL GetUUID ()
 
string CPL_DLL CPL_STDCALL MakeTempFile (string dir, string covID, string suffix)
 
string CPL_DLL CPL_STDCALL SPrintArray (GDALDataType eDataType, const void *paDataArray, int nValues, const char *pszDelimiter)
 
string CPL_DLL CPL_STDCALL StrReplace (string &str, const string oldSubStr, const string newStr)
 
void CPL_DLL CPL_STDCALL Strslip (const char *str, const char *arrStr[], const char leftdlm, const char rightdlm)
 
string CPL_DLL CPL_STDCALL StrTrim (const string &str)
 
string CPL_DLL CPL_STDCALL StrTrimHead (const string &str)
 
string CPL_DLL CPL_STDCALL StrTrims (const std::string &, const char *)
 
string CPL_DLL CPL_STDCALL StrTrimTail (const string &str)
 

Variables

const int MAX_LINE_LEN = 65536
 
const int MAX_LIST_LEN = 1024
 
const int MAX_NAME_LEN = 512
 
const int SHORT_NAME_LEN = 128
 

Macro Definition Documentation

#define DELIMITER   "/"

Definition at line 71 of file wcsUtil.h.

#define EQUAL (   a,
 
)    (strcasecmp(a,b)==0)

Definition at line 53 of file wcsUtil.h.

#define EQUALN (   a,
  b,
 
)    (strncasecmp(a,b,n)==0)

Definition at line 52 of file wcsUtil.h.

#define FALSE   0

Definition at line 61 of file wcsUtil.h.

#define NULL   0

Definition at line 65 of file wcsUtil.h.

Referenced by SocketListener::accept(), BESDefinitionStorageVolatile::add_definition(), add_group_structure_info(), HDFCFUtil::add_missing_cf_attrs(), HDF5CF::GMFile::Add_UseDimscale_Var_Dim_Names_General_Product(), HDF5CF::GMFile::Add_UseDimscale_Var_Dim_Names_Mea_SeaWiFS_Ozone(), BESXMLInfo::begin_response(), BESXMLInfo::begin_tag(), BESCatalogUtils::BESCatalogUtils(), BESStatus::BESStatus(), BESXMLWriter::BESXMLWriter(), BESXMLInterface::build_data_request_plan(), HDF5CF::File::Change_Attr_One_Str_to_Others(), check_gpm_l1(), check_gpmm_l3(), check_smap_acosl2s(), agg_util::WeakRCPtr< agg_util::AggMemberDataset >::clear(), close_hdf4_fileid(), TcpSocket::connect(), SocketUtilities::create_temp_name(), csv_read_attributes(), FONcBaseType::define(), depth_first(), DODS_Date_Factory::DODS_Date_Factory(), BESLog::dump_time(), BESXDResponseHandler::execute(), BESUsageResponseHandler::execute(), BESWWWResponseHandler::execute(), BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), StandAloneClient::executeClientCommand(), CmdClient::executeClientCommand(), FFRequestHandler::ff_build_data(), FFRequestHandler::ff_build_dmr(), ff_read_descriptors(), BESDefinitionStorageList::find_persistence(), BESContainerStorageList::find_persistence(), BESDataHandlerInterface::first_container(), gdal_read_dataset_attributes(), gdal_read_dataset_variables(), gen_dap_oneeos5cvar_dds(), gen_dap_onegmcvar_dds(), gen_dap_onegmspvar_dds(), gen_dap_oneobj_das(), gen_dap_onevar_dds(), gen_eos5_cfdas(), gen_gmh5_cfdas(), get_attr_info(), xml_data::get_data_values_as_xml(), BESCatalogUtils::get_entries(), FONgGrid::get_projection(), get_slabdata(), BESXMLUtils::GetChild(), BESXMLUtils::GetFirstChild(), BESDebug::GetPidStr(), BESXMLUtils::GetProps(), gse_lex_destroy(), gse_pop_buffer_state(), gse_push_buffer_state(), BESServerHandler::handle(), HDF5CF::EOS5File::Handle_Special_NonLatLon_Swath_CVar(), HDF5CF::GMFile::Handle_UseDimscale_Var_Dim_Names_General_Product(), HDF5CF::GMFile::Handle_UseDimscale_Var_Dim_Names_Mea_SeaWiFS_Ozone(), HDF4RequestHandler::hdf4_build_das(), HDF4RequestHandler::hdf4_build_data(), HDF4RequestHandler::hdf4_build_data_with_IDs(), HDF4RequestHandler::hdf4_build_dds(), hdfeoslex_destroy(), hdfeospop_buffer_state(), hdfeospush_buffer_state(), HE2CF::HE2CF(), he5daslex_destroy(), he5daspop_buffer_state(), he5daspush_buffer_state(), he5ddslex_destroy(), he5ddspop_buffer_state(), he5ddspush_buffer_state(), HDFSP::File::InsertOrigFieldPath_ReadVgVdata(), agg_util::WeakRCPtr< agg_util::AggMemberDataset >::lock(), BESDefinitionStorageVolatile::look_for(), BESDefinitionStorageList::look_for(), map_eos5_cfdas(), map_eos5_cfdds(), map_gmh5_cfdas(), map_gmh5_cfdds(), BESDataHandlerInterface::next_container(), HDFSP::SD::obtain_noneos2_sds_path(), HDFSP::File::obtain_path(), HDFSP::File::obtain_vdata_path(), HDF5CFUtil::parser_gpm_l3_gridheader(), HDFCFUtil::parser_trmm_v7_gridheader(), HDFSP::File::PrepareTRMML2_V6(), HDFSP::File::PrepareTRMML2_V7(), HDFSP::File::PrepareTRMML3A_V6(), HDFSP::File::PrepareTRMML3B_V6(), HDFSP::File::PrepareTRMML3C_V6(), HDFSP::File::PrepareTRMML3S_V7(), print_attr(), HDF5CFStr::read(), HDF5Float32::read(), HDF5GMSPCFArray::read(), HDF5CFArray::read(), HDF5Byte::read(), HDF5Int32::read(), HDF5UInt16::read(), HDF5UInt32::read(), HDF5Int16::read(), HDF5Float64::read(), HDF5Str::read(), HDFSP::VDATA::Read(), read_attributes(), read_comments(), read_das(), read_das_hdfsp(), read_das_special_eos2(), read_dds_special_1d_grid(), read_dds_spfields(), read_dds_spvdfields(), read_ecs_metadata(), read_ff(), HDFSP::SD::Read_Hybrid(), read_map_array(), read_objects(), read_objects_base_type(), HDF5Array::read_vlen_string(), HDFSP::File::ReadHybridNonLoneVdatas(), HDFSP::File::ReadLoneVdatas(), HDFSP::File::ReadVgattrs(), Records(), HDF5CF::File::Retrieve_H5_Attr_Info(), HDF5CF::File::Retrieve_H5_Attr_Value(), HDF5CF::File::Retrieve_H5_Obj(), BESXDTransmit::send_basic_ascii(), FONgTransform::set_no_data(), HE2CF::set_non_ecsmetadata_attrs(), SetDodsDB(), BESDebug::SetStrm(), BESCatalogDirectory::show_catalog(), BESDapResponseBuilder::store_dap2_result(), BESDapResponseBuilder::store_dap4_result(), FONgTransform::transform_to_geotiff(), FONgTransform::transform_to_jpeg2000(), CmdTranslation::translate(), BESUncompress3GZ::uncompress(), BESUncompress3BZ2::uncompress(), update_GPM_special_attrs(), HE2CF::write_attribute_FillValue(), and HDFSP::File::~File().

#define TRUE   1

Definition at line 58 of file wcsUtil.h.

Enumeration Type Documentation

Enumerator
UN_KNOWN 
HTTP_GET 
HTTP_XML_POST 

Definition at line 83 of file wcsUtil.h.

Function Documentation

int CPL_DLL CPL_STDCALL CompareDateTime_GreaterThan ( string  time1,
string  time2 
)
int CPL_DLL CPL_STDCALL ConvertDateTimeToSeconds ( string  datetime)
int CPL_DLL CPL_STDCALL CsvburstComplexCpp ( const string &  line,
vector< string > &  strSet,
const char *  tok 
)
CPL_C_START int CPL_DLL CPL_STDCALL CsvburstCpp ( const std::string &  line,
std::vector< std::string > &  strSet,
const char  tok 
)
int CPL_DLL CPL_STDCALL Find_Compare_SubStr ( string  line,
string  sub 
)
void CPL_DLL CPL_STDCALL GetCornerPoints ( const GDAL_GCP *&  pGCPList,
const int &  nGCPs,
My2DPoint lowLeft,
My2DPoint upRight 
)
CPLErr CPL_DLL CPL_STDCALL GetFileNameList ( char *  dir,
std::vector< string > &  strList 
)
string CPL_DLL CPL_STDCALL GetSingleValue ( const string &  subsetstr)
string CPL_DLL CPL_STDCALL GetSubSetLatLon ( const string &  subsetstr,
vector< double > &  subsetvalue 
)
void CPL_DLL CPL_STDCALL GetSubSetTime ( const string &  subsetstr,
vector< string > &  subsetvalue 
)
string CPL_DLL CPL_STDCALL GetTimeString ( int  code)
CPLErr CPL_DLL CPL_STDCALL GetTRMMBandList ( string  start,
string  end,
std::vector< int > &  bandList 
)
string CPL_DLL CPL_STDCALL GetUUID ( )
string CPL_DLL CPL_STDCALL MakeTempFile ( string  dir,
string  covID,
string  suffix 
)
string CPL_DLL CPL_STDCALL SPrintArray ( GDALDataType  eDataType,
const void *  paDataArray,
int  nValues,
const char *  pszDelimiter 
)
string CPL_DLL CPL_STDCALL StrReplace ( string &  str,
const string  oldSubStr,
const string  newStr 
)
void CPL_DLL CPL_STDCALL Strslip ( const char *  str,
const char *  arrStr[],
const char  leftdlm,
const char  rightdlm 
)
string CPL_DLL CPL_STDCALL StrTrim ( const string &  str)
string CPL_DLL CPL_STDCALL StrTrimHead ( const string &  str)
string CPL_DLL CPL_STDCALL StrTrims ( const std::string &  ,
const char *   
)
string CPL_DLL CPL_STDCALL StrTrimTail ( const string &  str)

Variable Documentation

const int MAX_LINE_LEN = 65536

Definition at line 77 of file wcsUtil.h.

const int MAX_LIST_LEN = 1024

Definition at line 76 of file wcsUtil.h.

const int MAX_NAME_LEN = 512

Definition at line 75 of file wcsUtil.h.

const int SHORT_NAME_LEN = 128

Definition at line 74 of file wcsUtil.h.