Skip to content
Snippets Groups Projects
Commit a0b43b3a authored by Valerio Pastore's avatar Valerio Pastore
Browse files

added copy constructor

parent 98e2ac79
No related branches found
No related tags found
No related merge requests found
Subproject commit 840f0fa1970e363716386175149aecf60e82c996
Subproject commit 4ab0a2d1455b3f285bba05e54c732772ad6852ac
......@@ -16,16 +16,18 @@ namespace inaf::oasbo::Packets {
class PacketStructureJson : public inaf::oasbo::PacketLib::BasePacketStructure {
private:
std::vector<std::tuple<uint, std::string, uint>> structure;
protected:
std::vector<std::tuple<uint, std::string, uint>> convertToTupleVector(const nlohmann::ordered_json &data,
uint &count);
public:
std::vector<std::tuple<uint, std::string, uint>> readStructureFromSource(
std::string source) override;
PacketStructureJson(std::string source){
updateStructure(source);
PacketStructureJson(std::string source) : BasePacketStructure(source){
updateStructure(this->source);
}
PacketStructureJson(PacketStructureJson &other) : BasePacketStructure(other){
}
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment