Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
HdfProxyFactory.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#pragma once
20
21#include "../eml2_0/HdfProxy.h"
22
23namespace 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
74 DLL_IMPORT_OR_EXPORT virtual EML2_NS::AbstractHdfProxy* make(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title,
75 const std::string & packageDirAbsolutePath, const std::string & externalFilePath,
76 COMMON_NS::DataObjectRepository::openingMode hdfPermissionAccess = COMMON_NS::DataObjectRepository::openingMode::READ_ONLY);
77
78 };
79}
This class wraps an Energistics Data Object Reference whatever its version is.
Definition DataObjectReference.h:50
An HDF5 file proxy factory.
Definition HdfProxyFactory.h:27
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(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference *fromGsoap)
Definition HdfProxyFactory.h:51
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