From 9edaba6588d7789e9dec7fcc174a46727d6c2ffc Mon Sep 17 00:00:00 2001
From: "severin.landwein" <Severin.Landwein@th-koeln.de>
Date: Tue, 3 May 2022 12:46:21 +0200
Subject: [PATCH] split header and source

---
 class_for_demonstration.cpp | 11 +++++++++++
 class_for_demonstration.h   |  7 +++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/class_for_demonstration.cpp b/class_for_demonstration.cpp
index d22b43b..022faad 100644
--- a/class_for_demonstration.cpp
+++ b/class_for_demonstration.cpp
@@ -12,14 +12,25 @@ uint8_t ClassForDemonstration::get_member_1() {
     return member_example_1;
 }
 
+uint8_t ClassForDemonstration::getMember2() {
+    return memberExample2;
+}
+
 void ClassForDemonstration::set_member_1(uint8_t value) {
     member_example_1 = value;
 }
 
+void ClassForDemonstration::setMember2(uint8_t value) {
+    memberExample2 = value;
+}
+
 void ClassForDemonstration::serial_out_object(Stream &stream) {
     stream.print(get_member_1());
+    stream.print("\t");
+    stream.print(getMember2());
 }
 
 void ClassForDemonstration::fill_object() {
     set_member_1(millis());
+    setMember2(millis());
 }
\ No newline at end of file
diff --git a/class_for_demonstration.h b/class_for_demonstration.h
index be008a1..26b1bf3 100644
--- a/class_for_demonstration.h
+++ b/class_for_demonstration.h
@@ -9,10 +9,13 @@ class ClassForDemonstration
 {
 private:
     uint8_t member_example_1;
+    uint8_t memberExample2;
 
 public:
-    uint8_t get_member_1() { return member_example_1; };
-    void set_member_1(uint8_t aValue) { member_example_1 = aValue; };
+    uint8_t get_member_1();
+    uint8_t getMember2();
+    void set_member_1(uint8_t value);
+    void setMember2(uint8 value);
     void serial_out_object(Stream &stream);
     void fill_object();
 };
-- 
GitLab