OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
heos5cfdap.cc File Reference

Map and generate DDS and DAS for the CF option for HDF-EOS5 products. More...

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
#include <sstream>
#include <BESLog.h>
#include <BESDebug.h>
#include "parser.h"
#include "heos5cfdap.h"
#include "h5cfdaputil.h"
#include "HDF5CFByte.h"
#include "HDF5CFUInt16.h"
#include "HDF5CFInt16.h"
#include "HDF5CFUInt32.h"
#include "HDF5CFInt32.h"
#include "HDF5CFFloat32.h"
#include "HDF5CFFloat64.h"
#include "HDF5CFStr.h"
#include "HDF5CFArray.h"
#include "HDFEOS5CFMissLLArray.h"
#include "HDFEOS5CFMissNonLLCVArray.h"
#include "HDFEOS5CFSpecialCVArray.h"
#include "he5dds.tab.hh"
#include "HE5Checker.h"
#include "he5das.tab.hh"
Include dependency graph for heos5cfdap.cc:

Go to the source code of this file.

Macros

#define HANDLE_CASE(tid, type)
 

Functions

void gen_dap_oneeos5cvar_dds (DDS &dds, const HDF5CF::EOS5CVar *cvar, const hid_t file_id, const string &filename)
 
void gen_eos5_cfdas (DAS &das, hid_t file_id, HDF5CF::EOS5File *f)
 
void gen_eos5_cfdds (DDS &dds, HDF5CF::EOS5File *f)
 
int get_metadata_num (const string &meta_str)
 
yy_buffer_state * he5das_scan_string (const char *str)
 Buffer state for NASA EOS metadata scanner. More...
 
int he5daslex_destroy ()
 
int he5dasparse (libdap::parser_arg *arg)
 
yy_buffer_state * he5dds_scan_string (const char *str)
 
int he5ddslex_destroy ()
 
int he5ddsparse (HE5Parser *he5parser)
 
void map_eos5_cfdas (DAS &das, hid_t file_id, const string &filename)
 
void map_eos5_cfdds (DDS &dds, hid_t file_id, const string &filename)
 
void read_ecs_metadata (hid_t s_file_id, string &total_strmeta_value, string &total_coremeta_value, string &total_archmeta_value, string &total_xmlmeta_value, string &total_submeta_value, string &total_prometa_value, string &total_othermeta_value, bool s_st_only)
 

Detailed Description

Map and generate DDS and DAS for the CF option for HDF-EOS5 products.

This file also includes a function to retrieve ECS metadata in C++ string forms.

Author
Muqun Yang myang.nosp@m.6@hd.nosp@m.fgrou.nosp@m.p.or.nosp@m.g

Definition in file heos5cfdap.cc.

Macro Definition Documentation

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

Referenced by gen_dap_oneeos5cvar_dds().

Function Documentation

void gen_eos5_cfdds ( DDS &  dds,
HDF5CF::EOS5File f 
)
int get_metadata_num ( const string &  meta_str)

Definition at line 1572 of file heos5cfdap.cc.

Referenced by read_ecs_metadata().

yy_buffer_state* he5das_scan_string ( const char *  str)

Buffer state for NASA EOS metadata scanner.

Referenced by gen_eos5_cfdas().

int he5daslex_destroy ( void  )

Definition at line 2019 of file lex.he5das.cc.

References he5das_delete_buffer(), he5dasfree(), he5daspop_buffer_state(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by gen_eos5_cfdas().

Here is the call graph for this function:

int he5dasparse ( libdap::parser_arg *  arg)

Referenced by gen_eos5_cfdas().

yy_buffer_state* he5dds_scan_string ( const char *  str)

Referenced by map_eos5_cfdas(), and map_eos5_cfdds().

int he5ddslex_destroy ( void  )

Definition at line 2187 of file lex.he5dds.cc.

References he5dds_delete_buffer(), he5ddsfree(), he5ddspop_buffer_state(), NULL, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by map_eos5_cfdas(), and map_eos5_cfdds().

Here is the call graph for this function:

int he5ddsparse ( HE5Parser he5parser)

Referenced by map_eos5_cfdas(), and map_eos5_cfdds().

void read_ecs_metadata ( hid_t  s_file_id,
string &  total_strmeta_value,
string &  total_coremeta_value,
string &  total_archmeta_value,
string &  total_xmlmeta_value,
string &  total_submeta_value,
string &  total_prometa_value,
string &  total_othermeta_value,
bool  s_st_only 
)

Definition at line 795 of file heos5cfdap.cc.

References ArchivedMeta, CoreMeta, get_metadata_num(), NULL, OtherMeta, ProductMeta, StructMeta, SubsetMeta, and XMLMeta.

Referenced by gen_eos5_cfdas(), map_eos5_cfdas(), and map_eos5_cfdds().

Here is the call graph for this function: