Supports the case where the packet command stores SDL clauses directly.
More...
#include <SdlInlinePacketInterface.h>
Supports the case where the packet command stores SDL clauses directly.
◆ SdlInlinePacketInterface() [1/2]
ph::SdlInlinePacketInterface::SdlInlinePacketInterface |
( |
| ) |
|
◆ SdlInlinePacketInterface() [2/2]
ph::SdlInlinePacketInterface::SdlInlinePacketInterface |
( |
int | clauseIndentAmount, |
|
|
char | clauseIndentChar ) |
- Parameters
-
clauseIndentAmount | Controls how much to indent each clause during clause generation. Possible values: -1 = No indentation. All clauses are on the same line. 0 = No indentation. Each clause will be placed on a new line. >0 = Indent each clause by the specified amount of clauseIndentChar . |
clauseIndentChar | Character used for indentation during clause generation. Must be a whitespace. |
◆ generate()
Turn all data in the clauses
into a packet command.
- Parameters
-
| targetClass | The class current packet is being generated for. Null if unavailable. |
| targetName | The target's name current packet is being generated for. Empty if unavailable. |
| targetInstance | Pointer to the instance current packet is being generated for. Null if unavailable. |
[out] | out_packetCommand | Generated packet command. Results are appended. |
Implements ph::SdlDataPacketInterface.
◆ parse()
Turn a packet command into out_clauses
.
- Parameters
-
| targetClass | The class current packet is being parsed for. Null if unavailable. |
| targetName | The target's name current packet is being parsed for. Empty if unavailable. |
| targetInstance | Pointer to the instance current packet is being parsed for. Null if unavailable. |
[out] | out_clauses | Parsed clauses. Results are appended and will be used for initializing the target instance. |
Implements ph::SdlDataPacketInterface.
The documentation for this class was generated from the following files: