TraveSim Adapters
0.1
Protobuf adapters for TraveSim project
replacer_configurer.hpp
Go to the documentation of this file.
1
/**
2
* @file replacer_configurer.hpp
3
*
4
* @author Lucas Haug <lucas.haug@thuneratz.org>
5
*
6
* @brief Configurer for the Replacer
7
*
8
* @date 06/2021
9
*
10
* @copyright MIT License - Copyright (c) 2021 ThundeRatz
11
*
12
*/
13
14
#include <iostream>
15
16
#include <travesim_adapters/ReplacerConfig.h>
17
18
#include "
travesim_adapters/configurers/adapter_configurer.hpp
"
19
20
#ifndef __REPLACER_CONFIGURER_H__
21
#define __REPLACER_CONFIGURER_H__
22
23
namespace
travesim
{
24
/**
25
* @brief ReplacerConfigurer class definition
26
*/
27
28
class
ReplacerConfigurer
:
29
public
AdapterConfigurer
<travesim_adapters::ReplacerConfig> {
30
public
:
31
/**
32
* @brief Construct a new ReplacerConfigurer object
33
*/
34
ReplacerConfigurer
(
void
);
35
36
/**
37
* @brief Get the replacer configured address
38
*
39
* @return std::string address string
40
*/
41
std::string
get_address
(
void
);
42
43
/**
44
* @brief Get the replacer configured port
45
*
46
* @return uint16_t port number
47
*/
48
uint16_t
get_port
(
void
);
49
50
/**
51
* @brief Get the specific_source config
52
*
53
* @return true if specific source is enabled, false otherwise
54
*/
55
bool
get_specific_source
(
void
);
56
57
/**
58
* @brief Output stream operator overloading
59
*/
60
friend
std::ostream&
operator <<
(std::ostream& output,
const
ReplacerConfigurer
& repl_conf);
61
};
62
}
// namespace travesim
63
64
#endif // __REPLACER_CONFIGURER_H__
travesim::ReplacerConfigurer::get_address
std::string get_address(void)
Get the replacer configured address.
Definition:
replacer_configurer.cpp:32
travesim::ReplacerConfigurer::operator<<
friend std::ostream & operator<<(std::ostream &output, const ReplacerConfigurer &repl_conf)
Output stream operator overloading.
Definition:
replacer_configurer.cpp:58
travesim::ReplacerConfigurer::get_specific_source
bool get_specific_source(void)
Get the specific_source config.
Definition:
replacer_configurer.cpp:53
travesim
Definition:
adapter_configurer.hpp:29
travesim::ReplacerConfigurer::get_port
uint16_t get_port(void)
Get the replacer configured port.
Definition:
replacer_configurer.cpp:48
travesim::ReplacerConfigurer
ReplacerConfigurer class definition.
Definition:
replacer_configurer.hpp:28
adapter_configurer.hpp
Template configurer for an adapter.
travesim::AdapterConfigurer
Definition:
adapter_configurer.hpp:35
travesim::ReplacerConfigurer::ReplacerConfigurer
ReplacerConfigurer(void)
Construct a new ReplacerConfigurer object.
Definition:
replacer_configurer.cpp:28
include
travesim_adapters
configurers
replacer_configurer.hpp
Generated on Tue Jul 20 2021 14:16:27 for TraveSim Adapters by
1.8.15