#include <SdlCommandGenerator.h>
◆ SdlCommandGenerator() [1/2]
ph::SdlCommandGenerator::SdlCommandGenerator |
( |
TSpanView< const SdlClass * > | targetClasses | ) |
|
|
explicit |
◆ SdlCommandGenerator() [2/2]
ph::SdlCommandGenerator::SdlCommandGenerator |
( |
TSpanView< const SdlClass * > | targetClasses, |
|
|
const Path & | sceneWorkingDirectory ) |
◆ ~SdlCommandGenerator()
ph::SdlCommandGenerator::~SdlCommandGenerator |
( |
| ) |
|
|
virtualdefault |
◆ beginCommand()
Called when the generator starts producing a command.
- Parameters
-
- Returns
- Whether to generate command for this class. If
false
, this command will be skipped and endCommand()
will not be called.
Implemented in ph::SdlSceneFileWriter.
◆ clearStats()
void ph::SdlCommandGenerator::clearStats |
( |
| ) |
|
◆ commandGenerated()
virtual void ph::SdlCommandGenerator::commandGenerated |
( |
std::string_view | commandStr, |
|
|
const SdlOutputContext & | ctx ) |
|
protectedpure virtual |
Called when one or more commands are generated.
- Parameters
-
commandStr | The newly generated command(s). |
ctx | Context for the command. |
Implemented in ph::SdlSceneFileWriter.
◆ endCommand()
virtual void ph::SdlCommandGenerator::endCommand |
( |
| ) |
|
|
protectedpure virtual |
Called when the generator finishes producing a command. This is called last in the sequence of handler calls for a command. Will not be called on error or if the command is canceled (see beginCommand()
).
Implemented in ph::SdlSceneFileWriter.
◆ generateCachedNamedDataPacketCommand()
void ph::SdlCommandGenerator::generateCachedNamedDataPacketCommand |
( |
const SdlNamedOutputClauses & | namedClauses | ) |
|
◆ generateResourceCommand()
void ph::SdlCommandGenerator::generateResourceCommand |
( |
const ISdlResource * | resource, |
|
|
std::string_view | resourceName ) |
◆ generateVersionCommand()
void ph::SdlCommandGenerator::generateVersionCommand |
( |
const SemanticVersion & | version | ) |
|
◆ getPacketInterface()
◆ getSceneWorkingDirectory()
const Path & ph::SdlCommandGenerator::getSceneWorkingDirectory |
( |
| ) |
const |
|
inline |
◆ hasTarget()
bool ph::SdlCommandGenerator::hasTarget |
( |
const SdlClass * | clazz | ) |
const |
◆ numGeneratedCommands()
std::size_t ph::SdlCommandGenerator::numGeneratedCommands |
( |
| ) |
const |
|
inline |
◆ numGenerationErrors()
std::size_t ph::SdlCommandGenerator::numGenerationErrors |
( |
| ) |
const |
|
inline |
◆ saveResource()
Save target resource into output clauses.
- Parameters
-
| resource | The resource to save. |
| ctx | Context for the command. |
[out] | clauses | Buffer to append the generated clauses. |
Implemented in ph::SdlSceneFileWriter.
◆ setPacketInterface()
◆ setSceneWorkingDirectory()
void ph::SdlCommandGenerator::setSceneWorkingDirectory |
( |
const Path & | directory | ) |
|
The documentation for this class was generated from the following files: