Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab - helloworld
Manage
Activity
Members
Labels
Plan
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Assistance Systems
01_Tools
gitlab - helloworld
Commits
9edaba65
Commit
9edaba65
authored
2 years ago
by
Severin Landwein
Browse files
Options
Downloads
Patches
Plain Diff
split header and source
parent
1476f1ae
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
class_for_demonstration.cpp
+11
-0
11 additions, 0 deletions
class_for_demonstration.cpp
class_for_demonstration.h
+5
-2
5 additions, 2 deletions
class_for_demonstration.h
with
16 additions
and
2 deletions
class_for_demonstration.cpp
+
11
−
0
View file @
9edaba65
...
@@ -12,14 +12,25 @@ uint8_t ClassForDemonstration::get_member_1() {
...
@@ -12,14 +12,25 @@ uint8_t ClassForDemonstration::get_member_1() {
return
member_example_1
;
return
member_example_1
;
}
}
uint8_t
ClassForDemonstration
::
getMember2
()
{
return
memberExample2
;
}
void
ClassForDemonstration
::
set_member_1
(
uint8_t
value
)
{
void
ClassForDemonstration
::
set_member_1
(
uint8_t
value
)
{
member_example_1
=
value
;
member_example_1
=
value
;
}
}
void
ClassForDemonstration
::
setMember2
(
uint8_t
value
)
{
memberExample2
=
value
;
}
void
ClassForDemonstration
::
serial_out_object
(
Stream
&
stream
)
{
void
ClassForDemonstration
::
serial_out_object
(
Stream
&
stream
)
{
stream
.
print
(
get_member_1
());
stream
.
print
(
get_member_1
());
stream
.
print
(
"
\t
"
);
stream
.
print
(
getMember2
());
}
}
void
ClassForDemonstration
::
fill_object
()
{
void
ClassForDemonstration
::
fill_object
()
{
set_member_1
(
millis
());
set_member_1
(
millis
());
setMember2
(
millis
());
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
class_for_demonstration.h
+
5
−
2
View file @
9edaba65
...
@@ -9,10 +9,13 @@ class ClassForDemonstration
...
@@ -9,10 +9,13 @@ class ClassForDemonstration
{
{
private:
private:
uint8_t
member_example_1
;
uint8_t
member_example_1
;
uint8_t
memberExample2
;
public:
public:
uint8_t
get_member_1
()
{
return
member_example_1
;
};
uint8_t
get_member_1
();
void
set_member_1
(
uint8_t
aValue
)
{
member_example_1
=
aValue
;
};
uint8_t
getMember2
();
void
set_member_1
(
uint8_t
value
);
void
setMember2
(
uint8
value
);
void
serial_out_object
(
Stream
&
stream
);
void
serial_out_object
(
Stream
&
stream
);
void
fill_object
();
void
fill_object
();
};
};
...
...
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