From 8505a8b30e4a98175d7f21404e859362c8de7b9b Mon Sep 17 00:00:00 2001 From: MaximodelCastillo Date: Tue, 29 Nov 2022 15:16:10 -0300 Subject: [PATCH 1/4] clasconfig --- .vscode/settings.json | 3 +++ class config | 18 ------------------ classconfig.h | 0 3 files changed, 3 insertions(+), 18 deletions(-) create mode 100644 .vscode/settings.json delete mode 100644 class config create mode 100644 classconfig.h diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..691a8f6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.errorSquiggles": "Disabled" +} \ No newline at end of file diff --git a/class config b/class config deleted file mode 100644 index ecab519..0000000 --- a/class config +++ /dev/null @@ -1,18 +0,0 @@ -class config{ - Type type - - config(){ - - type=new Type(); - - } - - void setType(char* value){ - - type->setType() - } - string getType(){ - type->getType(); - } - } - diff --git a/classconfig.h b/classconfig.h new file mode 100644 index 0000000..e69de29 From 4d341d7a9db954e534efb90f60ffd6303a93fcf3 Mon Sep 17 00:00:00 2001 From: MaximodelCastillo <111653854+MaximodelCastillo@users.noreply.github.com> Date: Tue, 29 Nov 2022 15:54:08 -0300 Subject: [PATCH 2/4] Update classconfig.h --- classconfig.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/classconfig.h b/classconfig.h index e69de29..ac696b6 100644 --- a/classconfig.h +++ b/classconfig.h @@ -0,0 +1,23 @@ +#ifndef config_h + +class configlibre +{ + configLib(); + char *printTest(); +}; +#endif + +class config{ + Type type; + config(){ + type=new Type(); + } + + void setType(char* value){ + type->setType() + + } + String getType{ + type->getType(); + } +}; From fb80a768867f8da53e392f792aa879ef339e4184 Mon Sep 17 00:00:00 2001 From: MaximodelCastillo <111653854+MaximodelCastillo@users.noreply.github.com> Date: Tue, 29 Nov 2022 15:54:57 -0300 Subject: [PATCH 3/4] Update class config.cpp --- lib/class config/class config.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/class config/class config.cpp b/lib/class config/class config.cpp index 4eaea6f..deee63c 100644 --- a/lib/class config/class config.cpp +++ b/lib/class config/class config.cpp @@ -11,25 +11,17 @@ void config: :setType(){ return type->setType(); } - class config{ - Type type; - config(){ - type=new Type(); - - } - + void setType(char* value){ type->setType() } String getType{ - type->getType(); - + type->getType(); } - -} +}; From ec5bb10d04eb28dada02be7e637cbd02cf630ed5 Mon Sep 17 00:00:00 2001 From: MaximodelCastillo <111653854+MaximodelCastillo@users.noreply.github.com> Date: Tue, 29 Nov 2022 20:30:35 -0300 Subject: [PATCH 4/4] Update class config.cpp --- lib/class config/class config.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/class config/class config.cpp b/lib/class config/class config.cpp index deee63c..4f24945 100644 --- a/lib/class config/class config.cpp +++ b/lib/class config/class config.cpp @@ -8,7 +8,7 @@ String config: :getType(){ } void config: :setType(){ - return type->setType(); + type->setType(); } class config{ @@ -18,10 +18,11 @@ class config{ } void setType(char* value){ - type->setType() + type->setType(); } String getType{ type->getType(); + return type; } };