Class MHO_ControlTokenProcessor.
More...
#include <MHO_ControlTokenProcessor.hh>
◆ MHO_ControlTokenProcessor()
hops::MHO_ControlTokenProcessor::MHO_ControlTokenProcessor |
( |
| ) |
|
◆ ~MHO_ControlTokenProcessor()
hops::MHO_ControlTokenProcessor::~MHO_ControlTokenProcessor |
( |
| ) |
|
|
virtual |
◆ ProcessBool()
Processes a boolean token and returns its value as mho_json.
- Parameters
-
token | Input boolean token to process. |
- Returns
- mho_json representation of the boolean token's value.
◆ ProcessFixedLengthListString()
mho_json hops::MHO_ControlTokenProcessor::ProcessFixedLengthListString |
( |
const std::vector< MHO_Token > & |
tokens | ) |
|
Process a fixed-length list string from tokens and return as mho_json.
- Parameters
-
- Returns
- mho_json object containing values from input tokens.
◆ ProcessInt()
Processes an integer token and converts it to a json value.
- Parameters
-
- Returns
- Json representation of the integer value from the token.
◆ ProcessListInt()
mho_json hops::MHO_ControlTokenProcessor::ProcessListInt |
( |
const std::vector< MHO_Token > & |
tokens | ) |
|
Processes a list of tokens as integers and returns them as an mho_json object.
- Parameters
-
tokens | Input vector of MHO_Token objects to process |
- Returns
- mho_json object containing the processed integer values
◆ ProcessListReal()
mho_json hops::MHO_ControlTokenProcessor::ProcessListReal |
( |
const std::vector< MHO_Token > & |
tokens | ) |
|
Processes a list of tokens as real numbers and returns them as JSON.
- Parameters
-
- Returns
- JSON object containing processed real number values.
◆ ProcessListString()
mho_json hops::MHO_ControlTokenProcessor::ProcessListString |
( |
const std::vector< MHO_Token > & |
tokens | ) |
|
Processes a list of (string) tokens and converts them into an mho_json object.
- Parameters
-
- Returns
- mho_json object containing values from input tokens
◆ ProcessReal()
Processes a real (number) token and converts it to an mho_json value.
- Parameters
-
token | Input MHO_Token containing a real number. |
- Returns
- mho_json representation of the input token's value if conversion succeeds, otherwise empty.
◆ ProcessString()
Processes a given MHO_Token and returns its associated JSON data.
- Parameters
-
token | Input token containing value to be processed. |
- Returns
- mho_json representing the processed token's value.
The documentation for this class was generated from the following files: