bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDF5_DataMemCache.h
1
2// This file is part of the hdf5 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
16class HDF5DataMemCache : public libdap::DapObj {
17private:
18#if 0
19 //string varname;
20#endif
21 std::vector <char> databuf;
22public:
23 HDF5DataMemCache() = default;
24#if 0
25 //HDF5DataMemCache(const string &name) {varname = name; }
26 //HDF5DataMemCache(const HDF5DataMemCache & h5datacache);
27 //const string get_varname() {return varname;}
28#endif
29 size_t get_var_buf_size() const {return databuf.size();}
30#if 0
31 //void get_var_buf(vector<char>&var_buf) { var_buf = databuf;}
32#endif
33 void* get_var_buf() { return databuf.data();}
34#if 0
35 //void set_varname(const string& name) {varname = name; }
36#endif
37 void set_databuf(const std::vector<char> &buf){databuf = buf;}
38 ~HDF5DataMemCache() override = default;
39 void dump(std::ostream &strm) const override;
40
41};
42
43#endif
44
45
46