OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
HDFSP::VDATA Class Reference

This class retrieves all information of one Vdata. More...

#include <HDFSP.h>

Collaboration diagram for HDFSP::VDATA:
Collaboration graph

Public Member Functions

const std::vector< Attribute * > & getAttributes () const
 Obtain Vdata attributes. More...
 
const std::vector< VDField * > & getFields () const
 Obtain Vdata fields. More...
 
const std::string & getName () const
 Obtain the original vdata name. More...
 
const std::string & getNewName () const
 Obtain new names(with the path and special characters and name clashing handlings) More...
 
int32 getObjRef () const
 Obtain Vdata reference number, this is necessary for retrieving Vdata information from HDF4. More...
 
bool getTreatAsAttrFlag () const
 Some Vdata fields are very large in size. Some Vdata fields are very small. So we map smaller Vdata fields to DAP attributes and map bigger Vdata fields to DAP variables. This flag is used for that. More...
 
void ReadAttributes (int32 vdata_id) throw (Exception)
 Retrieve all attributes of this Vdata. More...
 
 ~VDATA ()
 

Static Public Member Functions

static VDATARead (int32 vdata_id, int32 obj_ref) throw (Exception)
 Retrieve all information of this Vdata. More...
 

Protected Member Functions

 VDATA (int32 vdata_myid, int32 obj_ref)
 

Protected Attributes

std::vector< Attribute * > attrs
 Vdata attribute vectors. More...
 
std::string name
 Original vdata name. More...
 
std::string newname
 New name with path and CF compliant(no special characters and name clashing). More...
 
bool TreatAsAttrFlag
 Flag to map vdata fields to DAP variables or DAP attributes. More...
 
std::vector< VDField * > vdfields
 Vdata field vectors. More...
 
int32 vdref
 Vdata reference number. More...
 

Friends

class File
 

Detailed Description

This class retrieves all information of one Vdata.

Definition at line 642 of file HDFSP.h.

Constructor & Destructor Documentation

VDATA::~VDATA ( )

Definition at line 135 of file HDFSP.cc.

HDFSP::VDATA::VDATA ( int32  vdata_myid,
int32  obj_ref 
)
inlineprotected

Definition at line 693 of file HDFSP.h.

Member Function Documentation

const std::vector< Attribute * >& HDFSP::VDATA::getAttributes ( ) const
inline

Obtain Vdata attributes.

Definition at line 673 of file HDFSP.h.

References attrs.

const std::vector< VDField * >& HDFSP::VDATA::getFields ( ) const
inline
const std::string& HDFSP::VDATA::getName ( ) const
inline

Obtain the original vdata name.

Definition at line 661 of file HDFSP.h.

References name.

const std::string& HDFSP::VDATA::getNewName ( ) const
inline

Obtain new names(with the path and special characters and name clashing handlings)

Definition at line 655 of file HDFSP.h.

References newname.

int32 HDFSP::VDATA::getObjRef ( ) const
inline

Obtain Vdata reference number, this is necessary for retrieving Vdata information from HDF4.

Definition at line 687 of file HDFSP.h.

References vdref.

bool HDFSP::VDATA::getTreatAsAttrFlag ( ) const
inline

Some Vdata fields are very large in size. Some Vdata fields are very small. So we map smaller Vdata fields to DAP attributes and map bigger Vdata fields to DAP variables. This flag is used for that.

Definition at line 681 of file HDFSP.h.

References TreatAsAttrFlag.

Referenced by HDFSP::File::InsertOrigFieldPath_ReadVgVdata(), HDFSP::File::obtain_path(), HDFSP::File::obtain_vdata_path(), Read(), HDFSP::File::ReadHybridNonLoneVdatas(), and HDFSP::File::ReadLoneVdatas().

void VDATA::ReadAttributes ( int32  vdata_id)
throw (Exception
)

Retrieve all attributes of this Vdata.

Definition at line 2477 of file HDFSP.cc.

References HDFSP::Attribute::count, HDFCFUtil::get_CF_string(), HDFSP::Attribute::name, HDFSP::Attribute::newname, throw3, throw5, HDFSP::Attribute::type, and HDFSP::Attribute::value.

Referenced by Read().

Here is the call graph for this function:

Friends And Related Function Documentation

friend class File
friend

Definition at line 722 of file HDFSP.h.

Member Data Documentation

std::vector< Attribute * > HDFSP::VDATA::attrs
protected

Vdata attribute vectors.

Definition at line 709 of file HDFSP.h.

Referenced by getAttributes().

std::string HDFSP::VDATA::name
protected
std::string HDFSP::VDATA::newname
protected

New name with path and CF compliant(no special characters and name clashing).

Definition at line 700 of file HDFSP.h.

Referenced by getNewName(), HDFSP::File::InsertOrigFieldPath_ReadVgVdata(), HDFSP::File::obtain_path(), HDFSP::File::obtain_vdata_path(), Read(), HDFSP::File::ReadHybridNonLoneVdatas(), and HDFSP::File::ReadLoneVdatas().

bool HDFSP::VDATA::TreatAsAttrFlag
protected

Flag to map vdata fields to DAP variables or DAP attributes.

Definition at line 715 of file HDFSP.h.

Referenced by getTreatAsAttrFlag(), and Read().

std::vector< VDField * > HDFSP::VDATA::vdfields
protected

Vdata field vectors.

Definition at line 706 of file HDFSP.h.

Referenced by getFields(), and Read().

int32 HDFSP::VDATA::vdref
protected

Vdata reference number.

Definition at line 712 of file HDFSP.h.

Referenced by getObjRef(), and Read().


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