preCICE
v3.1.2
Loading...
Searching...
No Matches
src
com
CommunicationFactory.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
stdexcept
>
4
#include <
string
>
5
#include "
com/SharedPointer.hpp
"
6
7
namespace
precice
{
8
namespace
com {
9
class
CommunicationFactory
{
10
11
public
:
12
virtual
~CommunicationFactory
(){};
13
14
virtual
PtrCommunication
newCommunication
() = 0;
15
16
virtual
std::string
addressDirectory
()
17
{
18
throw
std::runtime_error
(
"Not available!"
);
19
}
20
};
21
}
// namespace com
22
}
// namespace precice
std::string
precice::com::CommunicationFactory
Definition
CommunicationFactory.hpp:9
precice::com::CommunicationFactory::~CommunicationFactory
virtual ~CommunicationFactory()
Definition
CommunicationFactory.hpp:12
precice::com::CommunicationFactory::addressDirectory
virtual std::string addressDirectory()
Definition
CommunicationFactory.hpp:16
precice::com::CommunicationFactory::newCommunication
virtual PtrCommunication newCommunication()=0
SharedPointer.hpp
precice
Main namespace of the precice library.
Definition
Acceleration.cpp:5
std::runtime_error
std::shared_ptr< Communication >
stdexcept
string