Packet create functions

This commit is contained in:
Dan Paulat 2021-12-28 16:51:23 -06:00
parent 95a3bb7cb7
commit 0ef21fd609
12 changed files with 95 additions and 0 deletions

View file

@ -35,6 +35,8 @@ public:
bool Parse(std::istream& is) override;
static std::shared_ptr<LinkedContourVectorPacket> Create(std::istream& is);
private:
std::unique_ptr<LinkedContourVectorPacketImpl> p;
};

View file

@ -34,6 +34,8 @@ public:
bool Parse(std::istream& is) override;
static std::shared_ptr<LinkedVectorPacket> Create(std::istream& is);
private:
std::unique_ptr<LinkedVectorPacketImpl> p;
};

View file

@ -34,6 +34,8 @@ public:
bool Parse(std::istream& is) override;
static std::shared_ptr<SetColorLevelPacket> Create(std::istream& is);
static constexpr size_t SIZE = 6u;
private:

View file

@ -35,6 +35,8 @@ public:
bool Parse(std::istream& is) override;
static std::shared_ptr<TextAndSpecialSymbolPacket> Create(std::istream& is);
private:
std::unique_ptr<TextAndSpecialSymbolPacketImpl> p;
};

View file

@ -35,6 +35,8 @@ public:
bool Parse(std::istream& is) override;
static std::shared_ptr<UnlinkedContourVectorPacket> Create(std::istream& is);
private:
std::unique_ptr<UnlinkedContourVectorPacketImpl> p;
};

View file

@ -34,6 +34,8 @@ public:
bool Parse(std::istream& is) override;
static std::shared_ptr<UnlinkedVectorPacket> Create(std::istream& is);
private:
std::unique_ptr<UnlinkedVectorPacketImpl> p;
};