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 
19 
20 #ifndef __REPLACER_CONFIGURER_H__
21 #define __REPLACER_CONFIGURER_H__
22 
23 namespace travesim {
24 /**
25  * @brief ReplacerConfigurer class definition
26  */
27 
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__
std::string get_address(void)
Get the replacer configured address.
friend std::ostream & operator<<(std::ostream &output, const ReplacerConfigurer &repl_conf)
Output stream operator overloading.
bool get_specific_source(void)
Get the specific_source config.
uint16_t get_port(void)
Get the replacer configured port.
ReplacerConfigurer class definition.
Template configurer for an adapter.
ReplacerConfigurer(void)
Construct a new ReplacerConfigurer object.