Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
HdfProxyFactory.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 "../eml2_0/HdfProxy.h"
22 
23 namespace COMMON_NS
24 {
27  {
28  public:
29 
31  DLL_IMPORT_OR_EXPORT virtual ~HdfProxyFactory() = default;
32 
42  DLL_IMPORT_OR_EXPORT virtual EML2_NS::AbstractHdfProxy* make(const DataObjectReference& dor);
43 
51  DLL_IMPORT_OR_EXPORT virtual EML2_NS::AbstractHdfProxy* make(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference* fromGsoap) {
52  return new EML2_0_NS::HdfProxy(fromGsoap);
53  }
54 
62  DLL_IMPORT_OR_EXPORT virtual EML2_NS::AbstractHdfProxy* make(gsoap_eml2_3::_eml23__EpcExternalPartReference* fromGsoap);
63 
83  DLL_IMPORT_OR_EXPORT virtual EML2_NS::AbstractHdfProxy* make(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title,
84  const std::string & packageDirAbsolutePath, const std::string & externalFilePath,
85  COMMON_NS::DataObjectRepository::openingMode hdfPermissionAccess = COMMON_NS::DataObjectRepository::openingMode::READ_ONLY);
86 
87  };
88 }
This class wraps an Energistics Data Object Reference whatever its version is.
Definition: DataObjectReference.h:43
An HDF5 file proxy factory.
Definition: HdfProxyFactory.h:27
virtual eml2::AbstractHdfProxy * make(gsoap_eml2_3::_eml23__EpcExternalPartReference *fromGsoap)
virtual eml2::AbstractHdfProxy * make(const DataObjectReference &dor)
Creates an instance of HDF5 file proxy. Only to be used in partial transfer context.
virtual eml2::AbstractHdfProxy * make(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, const std::string &packageDirAbsolutePath, const std::string &externalFilePath, common::DataObjectRepository::openingMode hdfPermissionAccess=common::DataObjectRepository::openingMode::READ_ONLY)
Creates an instance of HDF5 file proxy for serialization purpose.
virtual ~HdfProxyFactory()=default
virtual eml2::AbstractHdfProxy * make(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference *fromGsoap)
Definition: HdfProxyFactory.h:51