Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
DesignerDataPacketInterface.h
Go to the documentation of this file.
1#pragma once
2
3#include <SDL/SdlDataPacketInterface.h>
4
5#include <string>
6
7namespace ph { class SdlInputClause; }
8
9namespace ph::editor
10{
11
14class DesignerDataPacketInterface : public SdlDataPacketInterface
15{
16public:
18
19 void parse(
20 std::string_view packetCommand,
21 const SdlInputContext& ctx,
22 std::string_view targetName,
23 ISdlResource* targetInstance,
24 SdlInputClauses& out_clauses) const override;
25
26 void generate(
27 const SdlOutputClauses& clauses,
28 const SdlOutputContext& ctx,
29 std::string_view targetName,
30 const ISdlResource* targetInstance,
31 std::string& out_packetCommand) const override;
32
33private:
34 static void parseTextPacket(const std::string& text, SdlInputClauses& out_clauses);
35
36 static void parseSingleClause(
37 std::string_view valueInfoStr,
38 std::string_view valueStr,
39 SdlInputClause& out_clause);
40};
41
42}// end namespace ph::editor
std::string text
Definition ImguiEditorLog.cpp:23
Data packet format for the editor scene.
Definition DesignerDataPacketInterface.h:15
DesignerDataPacketInterface()
Definition DesignerDataPacketInterface.cpp:31
void generate(const SdlOutputClauses &clauses, const SdlOutputContext &ctx, std::string_view targetName, const ISdlResource *targetInstance, std::string &out_packetCommand) const override
Definition DesignerDataPacketInterface.cpp:84
void parse(std::string_view packetCommand, const SdlInputContext &ctx, std::string_view targetName, ISdlResource *targetInstance, SdlInputClauses &out_clauses) const override
Definition DesignerDataPacketInterface.cpp:35
Definition ph_editor.h:10
Definition ph_editor.h:5