This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfep_controller.h
54 lines (46 loc) · 2.24 KB
/
fep_controller.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
@copyright
@verbatim
Copyright @ 2019 Audi AG. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla
Public License, v. 2.0. If a copy of the MPL was not distributed
with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular file, then
You may include the notice in a location (such as a LICENSE file in a
relevant directory) where a recipient would be likely to look for such a notice.
You may add additional accurate notices of copyright ownership.
@endverbatim
*/
#pragma once
#include <string>
#include <fep_system/fep_system.h>
#include <fep_controller/fep_controller_export.h>
namespace fep3
{
namespace controller
{
/**
* Connects to a FEP System defined by a system sdk description
*
* @param [in] system_sdk_description_file The filepath to the system sdk description file
*
* @return Returns the connected system
* @throws std::runtime_error if @p system_sdk_description_file can not be found or read
* if the data model can not be created from @p system_sdk_description_file
*/
fep3::System FEP3_CONTROLLER_EXPORT connectSystem(const std::string& system_sdk_description_file);
/**
* Sets the properties configured by @p system_properties_file for the @p system
*
* @param [in] system The system for which the properties should be set
* @param [in] system_properties_file The filepath to the system properties file
*
* @throws std::runtime_error if @p system_properties_file can not be found or read
* if the data model can not be created from @p system_properties_file
* if the system @p system is not is state FS_IDLE
* if a participant can not be reached
*/
void FEP3_CONTROLLER_EXPORT configureSystemProperties(fep3::System& system,
const std::string& system_properties_file);
} // namespace controller
} // namespace fep