Go to the documentation of this file.
77 std::optional<int>
param_int(
char paramLetter)
const
84 return std::stoi(*strValue);
106 return std::stod(*strValue);
std::optional< std::string > param_string(char paramLetter) const
Get the value of a parameter as a string.
std::optional< int > param_int(char paramLetter) const
Get the value of a parameter as an integer.
void setCode(const std::string code)
Set the G-code command.
std::map< char, std::string > parameters
GCodeCommand()=default
Default constructor for the GCodeCommand class.
std::map< char, std::string > getParameters() const
Get the parameters associated with the G-code command.
GCodeCommand(const std::string &cmd)
Constructor for the GCodeCommand class.
void addParameter(char letter, const std::string &value)
Method to add a parameter to the G-code command.
std::optional< double > param_double(char paramLetter) const
Get the value of a parameter as a double.
std::string getCode() const
Get the G-code command.
This page is part of the
OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak
Bořek Patzák
Project e-mail:
oofem@fsv.cvut.cz
Generated at for OOFEM by
doxygen
1.15.0 written by Dimitri van Heesch,
© 1997-2011