|
bes Updated for version 3.20.10
|
DAP attributes and structure description generation code. More...
#include "config.h"#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 <libdap/DDS.h>#include <libdap/DAS.h>#include <libdap/escaping.h>#include <libdap/parser.h>#include <libdap/InternalErr.h>#include <libdap/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) |
DAP attributes and structure description generation code.
Definition in file hdfdesc.cc.
| #define ATTR_STRING_QUOTE_FIX |
Definition at line 154 of file hdfdesc.cc.
| #define HANDLE_CASE | ( | tid, | |
| type | |||
| ) |
| #define HANDLE_CASE | ( | tid, | |
| type | |||
| ) |
| #define HANDLE_CASE | ( | tid, | |
| type | |||
| ) |
| #define SIGNED_BYTE_TO_INT32 1 |
Definition at line 108 of file hdfdesc.cc.
| void AddHDFAttr | ( | DAS & | das, |
| const string & | varname, | ||
| const vector< hdf_attr > & | hav | ||
| ) |
Definition at line 4143 of file hdfdesc.cc.
| void AddHDFAttr | ( | DAS & | das, |
| const string & | varname, | ||
| const vector< string > & | anv | ||
| ) |
Definition at line 4237 of file hdfdesc.cc.
| void change_das_mod08_scale_offset | ( | DAS & | das, |
| HDFSP::File * | spf | ||
| ) |
Definition at line 2739 of file hdfdesc.cc.
| int check_special_eosfile | ( | const string & | filename, |
| string & | grid_name, | ||
| int32 | sdfd, | ||
| int32 | fileid | ||
| ) |
Definition at line 3468 of file hdfdesc.cc.
| string num2string | ( | T | n | ) |
Definition at line 156 of file hdfdesc.cc.
| void read_das | ( | DAS & | das, |
| const string & | filename | ||
| ) |
Definition at line 3777 of file hdfdesc.cc.
| bool read_das_hdfsp | ( | DAS & | das, |
| const string & | filename, | ||
| int32 | sdfd, | ||
| int32 | fileid, | ||
| HDFSP::File ** | h4filepptr | ||
| ) |
Definition at line 2003 of file hdfdesc.cc.
| void read_das_sds | ( | DAS & | das, |
| const string & | filename, | ||
| int32 | sdfd, | ||
| bool | ecs_metadata, | ||
| HDFSP::File ** | h4fileptr | ||
| ) |
Definition at line 3734 of file hdfdesc.cc.
| bool read_das_special_eos2 | ( | DAS & | das, |
| const string & | filename, | ||
| int32 | sdid, | ||
| int32 | fileid, | ||
| bool | ecs_metadata, | ||
| HDFSP::File ** | h4filepptr | ||
| ) |
Definition at line 2494 of file hdfdesc.cc.
| bool read_das_special_eos2_core | ( | DAS & | das, |
| HDFSP::File * | spf, | ||
| const string & | filename, | ||
| bool | ecs_metadata | ||
| ) |
Definition at line 2543 of file hdfdesc.cc.
| void read_dds | ( | DDS & | dds, |
| const string & | filename | ||
| ) |
Definition at line 3764 of file hdfdesc.cc.
| bool read_dds_hdfsp | ( | DDS & | dds, |
| const string & | filename, | ||
| int32 | sdfd, | ||
| int32 | fileid, | ||
| HDFSP::File * | h4file | ||
| ) |
Definition at line 1938 of file hdfdesc.cc.
| void read_dds_sds | ( | DDS & | dds, |
| const string & | filename, | ||
| int32 | sdfd, | ||
| HDFSP::File * | h4file, | ||
| bool | dds_set_cache | ||
| ) |
Definition at line 3755 of file hdfdesc.cc.
| bool read_dds_special_1d_grid | ( | DDS & | dds, |
| HDFSP::File * | spf, | ||
| const string & | filename, | ||
| int32 | sdfd, | ||
| bool | can_cache | ||
| ) |
Definition at line 2818 of file hdfdesc.cc.
| void read_dds_spfields | ( | DDS & | dds, |
| const string & | filename, | ||
| const int | sdfd, | ||
| HDFSP::SDField * | spsds, | ||
| SPType | sptype | ||
| ) |
Definition at line 3059 of file hdfdesc.cc.
| void read_dds_spvdfields | ( | DDS & | dds, |
| const string & | filename, | ||
| const int | fileid, | ||
| int32 | vdref, | ||
| int32 | numrec, | ||
| HDFSP::VDField * | spvd | ||
| ) |
Definition at line 3337 of file hdfdesc.cc.