14 type(type), name(name), identifier(identifier)
32 std::optional<std::string> type,
33 std::optional<std::string> name);
36 std::optional<std::string> type,
37 std::optional<std::string> name,
38 std::shared_ptr<SlaveProfile> profile);
44 std::optional<std::string>
getType()
const;
46 std::optional<std::string>
getName()
const;
50 void print(std::stringstream& s,
int indention)
const override;
56 std::optional<std::string> type;
57 std::optional<std::string> name;
58 bool identifierRead =
false;
std::optional< std::string > getType() const
virtual ~SlaveConfig()=default
bool checkAllItemsRead(std::vector< std::string > &errors) const override
This method is called once the device has read the configuration data it needs.
SlaveIdentifierConfig & getIdentifier()
void onParsingFinished() override
This method is called when the config is completely read form the HardwareConfig file.
void print(std::stringstream &s, int indention) const override
Print this configuration.
SlaveConfig(SlaveIdentifierConfig identifier, std::optional< std::string > type, std::optional< std::string > name)
std::optional< std::string > getName() const
Data structure holding the information necessary to create a SlaveIdentifier.
SlaveIdentifierConfig & getIdentifier()
SlaveProfile(SlaveIdentifierConfig identifier, std::string type, std::string name)