OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
hdfistream_sds Class Reference

#include <hcstream.h>

Inheritance diagram for hdfistream_sds:
Inheritance graph
Collaboration diagram for hdfistream_sds:
Collaboration graph

Classes

struct  slab
 

Public Member Functions

void _init (const string filename="")
 
virtual bool bos (void) const
 
virtual void close (void)
 
virtual bool eo_attr (void) const
 
virtual bool eo_dim (void) const
 
virtual bool eos (void) const
 
vector< array_ceget_map_ce ()
 
 hdfistream_sds (const string filename="")
 
 hdfistream_sds (const hdfistream_sds &)
 
virtual int index (void) const
 
bool is_map_ce_set ()
 
virtual void open (const char *filename=0)
 
void operator= (const hdfistream_sds &)
 
hdfistream_sdsoperator>> (hdf_attr &ha)
 
hdfistream_sdsoperator>> (vector< hdf_attr > &hav)
 
hdfistream_sdsoperator>> (hdf_sds &hs)
 
hdfistream_sdsoperator>> (vector< hdf_sds > &hsv)
 
hdfistream_sdsoperator>> (hdf_dim &hd)
 
hdfistream_sdsoperator>> (vector< hdf_dim > &hdv)
 
virtual void rewind (void)
 
virtual void seek (int index=0)
 
virtual void seek (const char *name)
 
virtual void seek_next (void)
 
virtual void seek_ref (int ref)
 
void set_map_ce (const vector< array_ce > &a_ce)
 
void setmeta (bool val)
 
void setslab (vector< int >start, vector< int >edge, vector< int >stride, bool reduce_rank=false)
 
void setslab (int *start, int *edge, int *stride, bool reduce_rank=false)
 
void unsetslab (void)
 
virtual ~hdfistream_sds (void)
 

Public Attributes

int32 _file_id
 
string _filename
 
int _index
 

Protected Member Functions

void _close_sds (void)
 
void _del (void)
 
void _get_fileinfo (void)
 
void _get_sdsinfo (void)
 
void _init (void)
 
void _rewind (void)
 
void _seek_arr (int index)
 
void _seek_arr (const string &name)
 
void _seek_arr_ref (int ref)
 
void _seek_next_arr (void)
 

Protected Attributes

int32 _attr_index
 
int32 _dim_index
 
bool _map_ce_set
 
vector< array_ce_map_ce_vec
 
bool _meta
 
int32 _nattrs
 
int32 _nfattrs
 
int32 _nsds
 
int32 _rank
 
int32 _sds_id
 
struct hdfistream_sds::slab _slab
 

Static Protected Attributes

static const string format = "format"
 
static const string long_name = "long_name"
 
static const string units = "units"
 

Detailed Description

Definition at line 84 of file hcstream.h.

Constructor & Destructor Documentation

hdfistream_sds::hdfistream_sds ( const string  filename = "")

Definition at line 214 of file sds.cc.

References hdfistream_obj::_filename, _init(), and open().

Here is the call graph for this function:

hdfistream_sds::hdfistream_sds ( const hdfistream_sds )
inline

Definition at line 88 of file hcstream.h.

References THROW.

virtual hdfistream_sds::~hdfistream_sds ( void  )
inlinevirtual

Definition at line 91 of file hcstream.h.

References _del().

Here is the call graph for this function:

Member Function Documentation

void hdfistream_sds::_close_sds ( void  )
protected

Definition at line 117 of file sds.cc.

References _attr_index, _dim_index, hdfistream_obj::_index, _nattrs, _rank, and _sds_id.

Referenced by _seek_arr(), _seek_arr_ref(), close(), rewind(), seek(), and seek_ref().

void hdfistream_sds::_del ( void  )
inlineprotected

Definition at line 136 of file hcstream.h.

References close().

Referenced by ~hdfistream_sds().

Here is the call graph for this function:

void hdfistream_sds::_get_fileinfo ( void  )
protected

Definition at line 93 of file sds.cc.

References hdfistream_obj::_file_id, _nfattrs, _nsds, and THROW.

Referenced by open().

void hdfistream_sds::_get_sdsinfo ( void  )
protected

Definition at line 101 of file sds.cc.

References _nattrs, _rank, _sds_id, hdfclass::MAXDIMS, hdfclass::MAXSTR, and THROW.

Referenced by seek(), seek_next(), and seek_ref().

void hdfistream_obj::_init ( const string  filename = "")
inlineinherited
void hdfistream_sds::_init ( void  )
protected
void hdfistream_sds::_rewind ( void  )
inlineprotected

Definition at line 146 of file hcstream.h.

References _attr_index, _dim_index, and hdfistream_obj::_index.

Referenced by _seek_arr(), and rewind().

void hdfistream_sds::_seek_arr ( int  index)
protected

Definition at line 152 of file sds.cc.

References hdfistream_obj::_index, _nsds, _rewind(), and _seek_next_arr().

Referenced by seek().

Here is the call graph for this function:

void hdfistream_sds::_seek_arr ( const string &  name)
protected

Definition at line 160 of file sds.cc.

References _close_sds(), hdfistream_obj::_file_id, hdfistream_obj::_index, _sds_id, BESDEBUG, hdfistream_obj::index(), and THROW.

Here is the call graph for this function:

void hdfistream_sds::_seek_arr_ref ( int  ref)
protected

Definition at line 185 of file sds.cc.

References _close_sds(), hdfistream_obj::_file_id, hdfistream_obj::_index, _sds_id, BESDEBUG, hdfistream_obj::index(), and THROW.

Referenced by seek_ref().

Here is the call graph for this function:

void hdfistream_sds::_seek_next_arr ( void  )
protected

Definition at line 128 of file sds.cc.

References _attr_index, _dim_index, hdfistream_obj::_file_id, hdfistream_obj::_index, _nsds, _sds_id, BESDEBUG, and THROW.

Referenced by _seek_arr(), and seek_next().

bool hdfistream_sds::bos ( void  ) const
virtual

Implements hdfistream_obj.

Definition at line 239 of file sds.cc.

References hdfistream_obj::_filename, hdfistream_obj::_index, _nsds, and THROW.

Referenced by eo_attr(), eo_dim(), eos(), operator>>(), seek(), and seek_ref().

void hdfistream_sds::close ( void  )
virtual

Implements hdfistream_obj.

Definition at line 305 of file sds.cc.

References _close_sds(), hdfistream_obj::_file_id, _nfattrs, _nsds, and BESDEBUG.

Referenced by _del(), and open().

Here is the call graph for this function:

bool hdfistream_sds::eo_attr ( void  ) const
virtual

Definition at line 253 of file sds.cc.

References _attr_index, hdfistream_obj::_filename, _nattrs, _nfattrs, bos(), eos(), and THROW.

Referenced by operator>>().

Here is the call graph for this function:

bool hdfistream_sds::eo_dim ( void  ) const
virtual

Definition at line 269 of file sds.cc.

References _dim_index, hdfistream_obj::_filename, _rank, bos(), eos(), and THROW.

Referenced by operator>>().

Here is the call graph for this function:

bool hdfistream_sds::eos ( void  ) const
virtual

Implements hdfistream_obj.

Definition at line 224 of file sds.cc.

References hdfistream_obj::_filename, hdfistream_obj::_index, _nsds, bos(), and THROW.

Referenced by eo_attr(), eo_dim(), operator>>(), seek(), seek_next(), and seek_ref().

Here is the call graph for this function:

vector< array_ce > hdfistream_sds::get_map_ce ( )
inline

Definition at line 122 of file hcstream.h.

References _map_ce_vec.

Referenced by operator>>().

virtual int hdfistream_obj::index ( void  ) const
inlinevirtualinherited
bool hdfistream_sds::is_map_ce_set ( )
inline

Definition at line 125 of file hcstream.h.

References _map_ce_set.

Referenced by operator>>().

void hdfistream_sds::open ( const char *  filename = 0)
virtual

Implements hdfistream_obj.

Definition at line 284 of file sds.cc.

References hdfistream_obj::_file_id, hdfistream_obj::_filename, _get_fileinfo(), BESDEBUG, close(), rewind(), and THROW.

Referenced by hdfistream_sds().

Here is the call graph for this function:

void hdfistream_sds::operator= ( const hdfistream_sds )
inline

Definition at line 94 of file hcstream.h.

References THROW.

hdfistream_sds & hdfistream_sds::operator>> ( hdf_attr ha)

Definition at line 658 of file sds.cc.

References _attr_index, hdfistream_obj::_file_id, hdfistream_obj::_filename, _sds_id, bos(), eo_attr(), hdfclass::MAXSTR, min(), hdf_attr::name, THROW, and hdf_attr::values.

Here is the call graph for this function:

hdfistream_sds & hdfistream_sds::operator>> ( vector< hdf_attr > &  hav)

Definition at line 737 of file sds.cc.

References eo_attr().

Here is the call graph for this function:

hdfistream_sds & hdfistream_sds::operator>> ( vector< hdf_sds > &  hsv)

Definition at line 726 of file sds.cc.

References eos().

Here is the call graph for this function:

hdfistream_sds & hdfistream_sds::operator>> ( vector< hdf_dim > &  hdv)

Definition at line 748 of file sds.cc.

References eo_dim().

Here is the call graph for this function:

void hdfistream_sds::rewind ( void  )
virtual

Implements hdfistream_obj.

Definition at line 339 of file sds.cc.

References _close_sds(), hdfistream_obj::_filename, _rewind(), and THROW.

Referenced by open().

Here is the call graph for this function:

void hdfistream_sds::seek ( int  index = 0)
virtual

Implements hdfistream_obj.

Definition at line 317 of file sds.cc.

References _close_sds(), hdfistream_obj::_filename, _get_sdsinfo(), _seek_arr(), bos(), eos(), and THROW.

Referenced by operator>>().

Here is the call graph for this function:

void hdfistream_sds::seek ( const char *  name)
virtual

Definition at line 328 of file sds.cc.

References _close_sds(), hdfistream_obj::_filename, _get_sdsinfo(), _seek_arr(), bos(), eos(), and THROW.

Here is the call graph for this function:

void hdfistream_sds::seek_next ( void  )
virtual

Implements hdfistream_obj.

Definition at line 348 of file sds.cc.

References hdfistream_obj::_filename, _get_sdsinfo(), _seek_next_arr(), eos(), and THROW.

Referenced by operator>>().

Here is the call graph for this function:

void hdfistream_sds::seek_ref ( int  ref)
virtual

Definition at line 358 of file sds.cc.

References _close_sds(), hdfistream_obj::_filename, _get_sdsinfo(), _seek_arr_ref(), bos(), eos(), and THROW.

Here is the call graph for this function:

void hdfistream_sds::set_map_ce ( const vector< array_ce > &  a_ce)
inline

Definition at line 118 of file hcstream.h.

References _map_ce_set, and _map_ce_vec.

void hdfistream_sds::setmeta ( bool  val)
inline

Definition at line 108 of file hcstream.h.

References _meta.

void hdfistream_sds::setslab ( vector< int >  start,
vector< int >  edge,
vector< int >  stride,
bool  reduce_rank = false 
)
void hdfistream_sds::setslab ( int *  start,
int *  edge,
int *  stride,
bool  reduce_rank = false 
)
void hdfistream_sds::unsetslab ( void  )
inline

Definition at line 115 of file hcstream.h.

References _slab, hdfistream_sds::slab::reduce_rank, and hdfistream_sds::slab::set.

Member Data Documentation

int32 hdfistream_sds::_attr_index
protected

Definition at line 155 of file hcstream.h.

Referenced by _close_sds(), _init(), _rewind(), _seek_next_arr(), eo_attr(), and operator>>().

int32 hdfistream_sds::_dim_index
protected

Definition at line 156 of file hcstream.h.

Referenced by _close_sds(), _init(), _rewind(), _seek_next_arr(), eo_dim(), and operator>>().

bool hdfistream_sds::_map_ce_set
protected

Definition at line 181 of file hcstream.h.

Referenced by _init(), is_map_ce_set(), and set_map_ce().

vector< array_ce > hdfistream_sds::_map_ce_vec
protected

Definition at line 180 of file hcstream.h.

Referenced by get_map_ce(), and set_map_ce().

bool hdfistream_sds::_meta
protected

Definition at line 161 of file hcstream.h.

Referenced by _init(), operator>>(), and setmeta().

int32 hdfistream_sds::_nattrs
protected

Definition at line 158 of file hcstream.h.

Referenced by _close_sds(), _get_sdsinfo(), _init(), and eo_attr().

int32 hdfistream_sds::_nfattrs
protected

Definition at line 160 of file hcstream.h.

Referenced by _get_fileinfo(), _init(), close(), and eo_attr().

int32 hdfistream_sds::_nsds
protected

Definition at line 159 of file hcstream.h.

Referenced by _get_fileinfo(), _init(), _seek_arr(), _seek_next_arr(), bos(), close(), and eos().

int32 hdfistream_sds::_rank
protected

Definition at line 157 of file hcstream.h.

Referenced by _close_sds(), _get_sdsinfo(), _init(), and eo_dim().

int32 hdfistream_sds::_sds_id
protected
struct hdfistream_sds::slab hdfistream_sds::_slab
protected

Referenced by _init(), operator>>(), setslab(), and unsetslab().

const string hdfistream_sds::format = "format"
staticprotected

Definition at line 153 of file hcstream.h.

const string hdfistream_sds::long_name = "long_name"
staticprotected

Definition at line 151 of file hcstream.h.

const string hdfistream_sds::units = "units"
staticprotected

Definition at line 152 of file hcstream.h.


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