Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
HdfProxyROS3Factory.h
1 /*-----------------------------------------------------------------------
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"; you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 -----------------------------------------------------------------------*/
19 #pragma once
20 
21 #include "HdfProxyFactory.h"
22 
23 #include "../eml2_0/HdfProxyROS3.h"
24 
25 namespace COMMON_NS
26 {
32  {
33  public:
34 
36  std::string secret_id;
38  std::string secret_key;
39 
42 
44  ~HdfProxyROS3Factory() = default;
45 
54  virtual EML2_NS::AbstractHdfProxy* make(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) {
55  return new EML2_0_NS::HdfProxyROS3(partialObject, secret_id, secret_key);
56  }
57 
66  virtual EML2_NS::AbstractHdfProxy* make(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference* fromGsoap) {
67  return new EML2_0_NS::HdfProxyROS3(fromGsoap, secret_id, secret_key);
68  }
69  };
70 }
An HDF5 file proxy factory.
Definition: HdfProxyFactory.h:27
A proxy factory for an HDF5 file located on an Amazon S3 cloud. Here, HDF5 file access is read only.
Definition: HdfProxyROS3Factory.h:32
std::string secret_key
Definition: HdfProxyROS3Factory.h:38
virtual eml2::AbstractHdfProxy * make(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference *fromGsoap)
Definition: HdfProxyROS3Factory.h:66
virtual eml2::AbstractHdfProxy * make(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition: HdfProxyROS3Factory.h:54
HdfProxyROS3Factory()
Definition: HdfProxyROS3Factory.h:41
std::string secret_id
Definition: HdfProxyROS3Factory.h:36