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
HdfProxyMPI.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 <mpi.h>
22
23#include "HdfProxy.h"
24
25namespace EML2_0_NS
26{
28 class HdfProxyMPI final : public EML2_NS::HdfProxy
29 {
30 public:
31
37 DLL_IMPORT_OR_EXPORT HdfProxyMPI(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : EML2_NS::HdfProxy(partialObject) {}
38
44 DLL_IMPORT_OR_EXPORT HdfProxyMPI(const COMMON_NS::DataObjectReference& dor) : EML2_NS::HdfProxy(dor) {}
45
60 HdfProxyMPI(COMMON_NS::DataObjectRepository * repo, const std::string & guid, const std::string & title,
61 const std::string & packageDirAbsolutePath, const std::string & externalFilePath,
62 COMMON_NS::DataObjectRepository::openingMode hdfPermissionAccess = COMMON_NS::DataObjectRepository::openingMode::READ_ONLY) :
63 EML2_NS::HdfProxy(packageDirAbsolutePath, externalFilePath, hdfPermissionAccess)
64 {
65 initGsoapProxy(repo, guid, title, 20);
66 }
67
75 DLL_IMPORT_OR_EXPORT HdfProxyMPI(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference* fromGsoap) :
76 EML2_NS::HdfProxy(fromGsoap) {}
77
79 ~HdfProxyMPI() = default;
80
82 void open() final;
83
87 void setMPICommunicator(MPI_Comm communicator) { mpi_comm = communicator; }
88
94
99
103 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "eml20";
104
108 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
109
110 private:
112 MPI_Comm mpi_comm = MPI_COMM_WORLD;
113 };
114}
Definition HdfProxy.h:27
Definition HdfProxyMPI.h:29
HdfProxyMPI(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)
Definition HdfProxyMPI.h:60
HdfProxyMPI(const common ::DataObjectReference &dor)
Constructor.
Definition HdfProxyMPI.h:44
void open() final
HdfProxyMPI(gsoap_resqml2_0_1::_eml20__EpcExternalPartReference *fromGsoap)
Definition HdfProxyMPI.h:75
~HdfProxyMPI()=default
HdfProxyMPI(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition HdfProxyMPI.h:37
void setIndependentIO()
Set IO to independent (default)
void setCollectiveIO()
Set IO to collective.
std::string getXmlNamespace() const final
Definition HdfProxyMPI.h:108