Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Astri Packet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BIAS
Packets
Astri Packet
Commits
a0b43b3a
Commit
a0b43b3a
authored
1 year ago
by
Valerio Pastore
Browse files
Options
Downloads
Patches
Plain Diff
added copy constructor
parent
98e2ac79
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deps/Base-DAQ
+1
-1
1 addition, 1 deletion
deps/Base-DAQ
include/PacketStructureJson.h
+6
-4
6 additions, 4 deletions
include/PacketStructureJson.h
with
7 additions
and
5 deletions
Base-DAQ
@
4ab0a2d1
Compare
840f0fa1
...
4ab0a2d1
Subproject commit
840f0fa1970e363716386175149aecf60e82c996
Subproject commit
4ab0a2d1455b3f285bba05e54c732772ad6852ac
This diff is collapsed.
Click to expand it.
include/PacketStructureJson.h
+
6
−
4
View file @
a0b43b3a
...
...
@@ -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
){
}
};
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment