ConnectionInfoGenerator.hpp 816 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef __HEPNOS_CONNECTION_INFO_GENERATOR_H
#define __HEPNOS_CONNECTION_INFO_GENERATOR_H

#include <string>
#include <memory>
#include <mpi.h>

namespace hepnos {

class ConnectionInfoGenerator {

private:

    class Impl;
    std::unique_ptr<Impl> m_impl;

public:

    ConnectionInfoGenerator(const std::string& address,
            uint16_t sdskv_provider_id,
            uint16_t bake_provider_id);
    ConnectionInfoGenerator(const ConnectionInfoGenerator&) = delete;
    ConnectionInfoGenerator(ConnectionInfoGenerator&&) = delete;
    ConnectionInfoGenerator& operator=(const ConnectionInfoGenerator&) = delete;
    ConnectionInfoGenerator& operator=(ConnectionInfoGenerator&&) = delete;
    ~ConnectionInfoGenerator();

    void generateFile(MPI_Comm comm, const std::string& filename) const;
};

}

#endif