bes  Updated for version 3.20.6
hdfdesc.cc File Reference

DAP attributes and structure description generation code. More...

#include "config_hdf.h"
#include <cstdio>
#include <cassert>
#include <libgen.h>
#include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <numeric>
#include <functional>
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#include <iomanip>
#include <cerrno>
#include <mfhdf.h>
#include <DDS.h>
#include <DAS.h>
#include <escaping.h>
#include <parser.h>
#include <InternalErr.h>
#include <debug.h>
#include <BESDebug.h>
#include <BESLog.h>
#include "HDF4RequestHandler.h"
#include "hcstream.h"
#include "hdfclass.h"
#include "hcerr.h"
#include "dhdferr.h"
#include "HDFArray.h"
#include "HDFSequence.h"
#include "HDFTypeFactory.h"
#include "HDFGrid.h"
#include "dodsutil.h"
#include "hdf-dods.h"
#include "hdf-maps.h"
#include "HDFByte.h"
#include "HDFInt16.h"
#include "HDFUInt16.h"
#include "HDFInt32.h"
#include "HDFUInt32.h"
#include "HDFFloat32.h"
#include "HDFFloat64.h"
#include "HDFStr.h"
#include "HE2CF.h"
#include "HDFSP.h"
#include "HDFSPArray_RealField.h"
#include "HDFSPArrayGeoField.h"
#include "HDFSPArrayMissField.h"
#include "HDFSPArrayAddCVField.h"
#include "HDFSPArray_VDField.h"
#include "HDFCFStrField.h"
#include "HDFCFStr.h"
#include "HDFCFUtil.h"

Go to the source code of this file.

Macros

#define ATTR_STRING_QUOTE_FIX
 
#define HANDLE_CASE(tid, type)
 
#define HANDLE_CASE(tid, type)
 
#define HANDLE_CASE(tid, type)
 
#define SIGNED_BYTE_TO_INT32   1
 

Functions

void AddHDFAttr (DAS &das, const string &varname, const vector< hdf_attr > &hav)
 
void AddHDFAttr (DAS &das, const string &varname, const vector< string > &anv)
 
void change_das_mod08_scale_offset (DAS &das, HDFSP::File *spf)
 
int check_special_eosfile (const string &filename, string &grid_name, int32 sdfd, int32 fileid)
 
void hdfeos_delete_buffer (void *buffer)
 
yy_buffer_state * hdfeos_scan_string (const char *str)
 
void * hdfeos_string (const char *yy_str)
 
void hdfeos_switch_to_buffer (void *new_buffer)
 
int hdfeosparse (libdap::parser_arg *arg)
 
template<class T >
string num2string (T n)
 
void read_das (DAS &das, const string &filename)
 
bool read_das_hdfhybrid (DAS &das, const string &filename, int32 sdfd, int32 fileid, HDFSP::File **h4filepptr)
 
bool read_das_hdfsp (DAS &das, const string &filename, int32 sdfd, int32 fileid, HDFSP::File **h4filepptr)
 
void read_das_sds (DAS &das, const string &filename, int32 sdfd, bool ecs_metadata, HDFSP::File **h4fileptr)
 
bool read_das_special_eos2 (DAS &das, const string &filename, int32 sdid, int32 fileid, bool ecs_metadata, HDFSP::File **h4filepptr)
 
bool read_das_special_eos2_core (DAS &das, HDFSP::File *spf, const string &filename, bool ecs_metadata)
 
void read_dds (DDS &dds, const string &filename)
 
bool read_dds_hdfhybrid (DDS &dds, const string &filename, int32 sdfd, int32 fileid, HDFSP::File *h4file)
 
bool read_dds_hdfsp (DDS &dds, const string &filename, int32 sdfd, int32 fileid, HDFSP::File *h4file)
 
void read_dds_sds (DDS &dds, const string &filename, int32 sdfd, HDFSP::File *h4file, bool dds_set_cache)
 
bool read_dds_special_1d_grid (DDS &dds, HDFSP::File *spf, const string &filename, int32 sdfd, bool can_cache)
 
void read_dds_spfields (DDS &dds, const string &filename, const int sdfd, HDFSP::SDField *spsds, SPType sptype)
 
void read_dds_spvdfields (DDS &dds, const string &filename, const int fileid, int32 vdref, int32 numrec, HDFSP::VDField *spvd)
 

Detailed Description

DAP attributes and structure description generation code.

Definition in file hdfdesc.cc.

Macro Definition Documentation

◆ HANDLE_CASE [1/3]

#define HANDLE_CASE (   tid,
  type 
)
Value:
case tid: \
bt = new (type)((*it_g)->getNewName(),filename); \
break;

◆ HANDLE_CASE [2/3]

#define HANDLE_CASE (   tid,
  type 
)
Value:
case tid: \
bt = new (type)(spsds->getNewName(),filename); \
break;

◆ HANDLE_CASE [3/3]

#define HANDLE_CASE (   tid,
  type 
)
Value:
case tid: \
bt = new (type)(spvd->getNewName(),filename); \
break;