Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PacketLib
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
Releases
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrea Bulgarelli
PacketLib
Commits
f6224601
Commit
f6224601
authored
12 years ago
by
Andrea Bulgarelli
Browse files
Options
Downloads
Patches
Plain Diff
set Field::value = 0 as predefined value and during the output stream generation.
parent
58bf130f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
packetlib.bbprojectd/bulgarelli.bbprojectsettings
+2164
-1642
2164 additions, 1642 deletions
packetlib.bbprojectd/bulgarelli.bbprojectsettings
src/Field.cpp
+1
-1
1 addition, 1 deletion
src/Field.cpp
src/PartOfPacket.cpp
+2
-1
2 additions, 1 deletion
src/PartOfPacket.cpp
version
+0
-1
0 additions, 1 deletion
version
with
2167 additions
and
1645 deletions
packetlib.bbprojectd/bulgarelli.bbprojectsettings
+
2164
−
1642
View file @
f6224601
This diff is collapsed.
Click to expand it.
src/Field.cpp
+
1
−
1
View file @
f6224601
...
...
@@ -13,7 +13,7 @@ static FieldType** filedTypeList = 0;
//##ModelId=3C0F6C1A0001
Field
::
Field
(
char
*
n
,
char
*
dim
,
char
*
prVal
,
int
count
)
:
progressiv
(
count
)
{
value
=
0
;
//create FieldType list
if
(
filedTypeList
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
src/PartOfPacket.cpp
+
2
−
1
View file @
f6224601
...
...
@@ -316,6 +316,7 @@ char** PartOfPacket::printValue(const char* addString)
//Field* f = (Field*) &(*iter);
Field
*
f
=
fields
[
i
];
//sprintf(s, "Name: %s Value: %d\n", f->name.c_str(), f->value);
//cout << "@ " << f->value << endl;
sprintf
(
s
,
"%d"
,
f
->
value
);
//s1 = "Name: ";
s1
=
""
;
...
...
@@ -402,7 +403,7 @@ ByteStream* PartOfPacket::generateStream(bool bigendian)
if
(
!
fields
[
i
]
->
thereIsPredefinedValue
())
wtemp
=
fields
[
i
]
->
value
;
else
wtemp
=
fields
[
i
]
->
getPredefinedValue
();
wtemp
=
fields
[
i
]
->
value
=
fields
[
i
]
->
getPredefinedValue
();
dimbit
=
fields
[
i
]
->
getDimension
();
shift
=
16
-
dimbit
-
posbit
;
if
(
shift
<
0
)
...
...
This diff is collapsed.
Click to expand it.
version
+
0
−
1
View file @
f6224601
1.3.8
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