|
typedef grbl::LineType | LineType |
|
typedef std::pair< std::string, std::string > | Message |
|
typedef std::pair< int, std::string > | Setting |
|
Definition at line 48 of file GrblParser.hpp.
◆ getLineType()
LineType grbl::GrblParser::getLineType |
( |
const std::string & |
line | ) |
|
|
static |
detect line type
- Parameters
-
- Returns
- line type
Definition at line 51 of file GrblParser.cpp.
◆ parseBuildInfo()
incremental parsing of build-info
- Parameters
-
| line | line to parse |
[out] | info | BuildInfo to populate |
- Returns
- true if some data was parsed
Definition at line 209 of file GrblParser.cpp.
◆ parseErrorReply()
bool grbl::GrblParser::parseErrorReply |
( |
const std::string & |
line, |
|
|
grbl::ErrorCode & |
errorCode |
|
) |
| |
|
static |
parse an error message
- Parameters
-
line | line to parse |
errorCode | parsed code |
- Returns
- true if parsed
Definition at line 103 of file GrblParser.cpp.
◆ parseMessage()
bool grbl::GrblParser::parseMessage |
( |
const std::string & |
line, |
|
|
Message & |
message |
|
) |
| |
|
static |
parse message
separate topic from payload
- Parameters
-
line | line to parse |
message | parsed message |
- Returns
- true if parsed
Definition at line 75 of file GrblParser.cpp.
◆ parsePinInfo()
bool grbl::GrblParser::parsePinInfo |
( |
const std::string & |
line, |
|
|
PinInfo & |
info |
|
) |
| |
|
static |
incremental parsing of pins description
- Parameters
-
[in] | line | line to parse |
[out] | info | PinInfo to populate |
pinInfo messages use the following syntax: \[PIN:[<port>]<pin>,<function>[,description]\]
the port
and description
being optional
- Returns
- true if some data was parsed
Definition at line 335 of file GrblParser.cpp.
◆ parseSetting()
bool grbl::GrblParser::parseSetting |
( |
const std::string & |
line, |
|
|
Setting & |
setting |
|
) |
| |
|
static |
parse a setting message
- Parameters
-
line | line to parse |
setting | parsed setting |
- Returns
- true if parsed
Definition at line 89 of file GrblParser.cpp.
◆ parseSettingDesc()
bool grbl::GrblParser::parseSettingDesc |
( |
const std::string & |
line, |
|
|
SettingDesc & |
desc |
|
) |
| |
|
static |
incremental parsing of setting description
- Parameters
-
- Returns
- true if some data was parsed
Definition at line 295 of file GrblParser.cpp.
◆ parseSettingGroup()
bool grbl::GrblParser::parseSettingGroup |
( |
const std::string & |
line, |
|
|
SettingGroup & |
group |
|
) |
| |
|
static |
incremental parsing of settingGroup
- Parameters
-
- Returns
- true if some data was parsed
Definition at line 261 of file GrblParser.cpp.
◆ parseState()
bool grbl::GrblParser::parseState |
( |
const std::string & |
line, |
|
|
State & |
state |
|
) |
| |
|
static |
parse a state message
- Parameters
-
[in] | line | line to parse |
[out] | state | parsed state |
- Returns
- true if parsed
Definition at line 117 of file GrblParser.cpp.
The documentation for this class was generated from the following files:
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/util/grbl/GrblParser.hpp
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/util/grbl/GrblParser.cpp