/* * @brief Defines the communication file format * @file aman/config/CommunicationFileFormat.h * @author Sven Czarnian * @copyright Copyright 2021 Sven Czarnian * @license This project is published under the GNU General Public License v3 (GPLv3) */ #pragma once #include #include namespace aman { /** * @brief Defines the parser of communication configurations * @ingroup format * * All configuration entries need to be stored in 'AmanCommunication.txt'. * * The following entries of the configuration exist: * * * * * * * * * * * * * * * * * * * * *
Setting entries
NameDescriptionDefault valueUnit
URLDefines the URL to the backend.
PortDefines the port to access the backend.
UIDDefines the identifier to access the backend.
*/ class CommunicationFileFormat : public FileFormat { #ifndef DOXYGEN_IGNORE public: /** * @brief Initializes the communication file format */ CommunicationFileFormat(); /** * @brief Parses the set configuration file * @param[in] filename The path to the configuration file * @param[out] config The resulting configuration * @return True if the configuration file was valid, else false */ bool parse(const std::string& filename, Communication& config); #endif }; }