bes Updated for version 3.20.10
HDF5_DataMemCache.h
1
2// This file is part of the hdf4 data handler for the OPeNDAP data server.
3//
4// Author: Kent Yang <myang6@hdfgroup.org>
5// Copyright (c) 2010-2012 The HDF Group
6
7#ifndef HDF5_DATA_MEM_CACHE_H_
8#define HDF5_DATA_MEM_CACHE_H_
9
10
11#include <libdap/DapObj.h>
12#include <libdap/InternalErr.h>
13#include<vector>
14#include<string>
15
16//using namespace libdap;
17//using namespace std;
18
24class HDF5DataMemCache : public libdap::DapObj {
25private:
26 //string varname;
27 std::vector <char> databuf;
28public:
30#if 0
31 //HDF5DataMemCache(const string &name) {varname = name; }
32 //HDF5DataMemCache(const HDF5DataMemCache & h5datacache);
33 //const string get_varname() {return varname;}
34#endif
35 size_t get_var_buf_size() {return databuf.size();}
36#if 0
37 //void get_var_buf(vector<char>&var_buf) { var_buf = databuf;}
38#endif
39 void* get_var_buf() { return &databuf[0];}
40#if 0
41 //void set_varname(const string& name) {varname = name; }
42#endif
43 void set_databuf(std::vector<char> &buf){databuf = buf;}
44 virtual ~HDF5DataMemCache() { };
45 virtual void dump(std::ostream &strm) const;
46
47};
48
49#endif
50
51
52