TraveSim Adapters  0.1
Protobuf adapters for TraveSim project
vision_configurer.hpp
Go to the documentation of this file.
1 /**
2  * @file vision_configurer.hpp
3  *
4  * @author Lucas Haug <lucas.haug@thuneratz.org>
5  *
6  * @brief Configurer for the vision
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/VisionConfig.h>
17 
19 
20 #ifndef __VISION_CONFIGURER_H__
21 #define __VISION_CONFIGURER_H__
22 
23 namespace travesim {
24 /**
25  * @brief VisionConfigurer class definition
26  */
27 
29  public AdapterConfigurer<travesim_adapters::VisionConfig> {
30  public:
31  /**
32  * @brief Construct a new VisionConfigurer object
33  */
34  VisionConfigurer(void);
35 
36  /**
37  * @brief Get the vision configured address
38  *
39  * @return std::string address string
40  */
41  std::string get_address(void);
42 
43  /**
44  * @brief Get the vision configured port
45  *
46  * @return uint16_t port number
47  */
48  uint16_t get_port(void);
49 
50  /**
51  * @brief Output stream operator overloading
52  */
53  friend std::ostream& operator <<(std::ostream& output, const VisionConfigurer& vision_conf);
54 };
55 } // namespace travesim
56 
57 #endif // __VISION_CONFIGURER_H__
uint16_t get_port(void)
Get the vision configured port.
friend std::ostream & operator<<(std::ostream &output, const VisionConfigurer &vision_conf)
Output stream operator overloading.
VisionConfigurer class definition.
Template configurer for an adapter.
VisionConfigurer(void)
Construct a new VisionConfigurer object.
std::string get_address(void)
Get the vision configured address.