|
19 | 19 |
|
20 | 20 | #pragma once |
21 | 21 |
|
22 | | -#include <memory> |
23 | | -#include <string> |
24 | | - |
25 | | -#include <cpp_utils/event/FileWatcherHandler.hpp> |
26 | | -#include <cpp_utils/event/PeriodicEventHandler.hpp> |
27 | | -#include <cpp_utils/exception/ConfigurationException.hpp> |
28 | | -#include <cpp_utils/exception/InitializationException.hpp> |
29 | | -#include <cpp_utils/logging/BaseLogConfiguration.hpp> |
30 | | -#include <cpp_utils/logging/StdLogConsumer.hpp> |
31 | | -#include <cpp_utils/ReturnCode.hpp> |
32 | | -#include <cpp_utils/time/time_utils.hpp> |
33 | | - |
34 | | -#include <ddspipe_core/logging/DdsLogConsumer.hpp> |
35 | | - |
36 | 22 | #include <ddsenabler_yaml/EnablerConfiguration.hpp> |
37 | 23 |
|
38 | 24 | #include <ddsenabler/CallbackSet.hpp> |
39 | 25 | #include <ddsenabler/DDSEnabler.hpp> |
40 | 26 |
|
| 27 | +#include <ddsenabler/library/library_dll.h> |
| 28 | + |
41 | 29 | namespace eprosima { |
42 | 30 | namespace ddsenabler { |
43 | 31 |
|
| 32 | +/** |
| 33 | + * @brief Create a DDS Enabler instance from a configuration file path. |
| 34 | + * |
| 35 | + * @param configuration_path Path to the configuration file. |
| 36 | + * @param callbacks Set of callbacks to be used by the DDS Enabler. |
| 37 | + * @param enabler Output parameter to hold the created DDS Enabler instance. |
| 38 | + * @return true if the DDS Enabler was created successfully, false otherwise. |
| 39 | + */ |
| 40 | +DDSENABLER_DllAPI |
44 | 41 | bool create_dds_enabler( |
45 | | - const char* ddsEnablerConfigFile, |
| 42 | + const char* configuration_path, |
46 | 43 | const CallbackSet& callbacks, |
47 | 44 | std::shared_ptr<DDSEnabler>& enabler); |
48 | | - |
| 45 | +/** |
| 46 | + * @brief Create a DDS Enabler instance from a configuration object. |
| 47 | + * |
| 48 | + * @param configuration DDS Enabler configuration object. |
| 49 | + * @param callbacks Set of callbacks to be used by the DDS Enabler. |
| 50 | + * @param enabler Output parameter to hold the created DDS Enabler instance. |
| 51 | + * @return true if the DDS Enabler was created successfully, false otherwise. |
| 52 | + */ |
| 53 | +DDSENABLER_DllAPI |
49 | 54 | bool create_dds_enabler( |
50 | 55 | yaml::EnablerConfiguration configuration, |
51 | 56 | const CallbackSet& callbacks, |
|
0 commit comments