diff --git a/Design-Patterns/Creational-Patterns/factory-method/CMakeLists.txt b/Design-Patterns/Creational-Patterns/factory-method/CMakeLists.txt index 1471723..0a62753 100644 --- a/Design-Patterns/Creational-Patterns/factory-method/CMakeLists.txt +++ b/Design-Patterns/Creational-Patterns/factory-method/CMakeLists.txt @@ -1,8 +1,21 @@ # Create an executable for the pattern -add_executable(factory-method_main main.cpp "example1/Document.h" "example1/PDFDocument.h" "example1/Client.h" "example1/AdobeAcrobatClient.h" "example2/Burger.h" "example2/BeefBurger.h" "example2/VeggieBurger.h" "example2/Restaurant.h" "example2/BeefRestaurant.h" "example2/VeggieRestaurant.h" "example3/Message.h" "example3/TextMessage.h" "example3/JsonMessage.h" "example3/MessageFactory.h" "example3/JsonMessageFactory.h" "example3/TextMessageFactory.h") +#add_executable(factory-method_main main.cpp "example1/Document.h" "example1/PDFDocument.h" "example1/Client.h" "example1/AdobeAcrobatClient.h" "example2/Burger.h" "example2/BeefBurger.h" "example2/VeggieBurger.h" "example2/Restaurant.h" "example2/BeefRestaurant.h" "example2/VeggieRestaurant.h" "example3/Message.h" "example3/TextMessage.h" "example3/JsonMessage.h" "example3/MessageFactory.h" "example3/JsonMessageFactory.h" "example3/TextMessageFactory.h" "example4/Manipulator.h" "example4/LineManipulator.h" "example4/TextManipulator.h" "example4/TextManipulator.cpp" "example4/LineManipulator.cpp" "example4/Figure.h" "example4/LineFigure.h") -# Include directories if needed -target_include_directories(factory-method_main PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + +# Define the executable +add_executable(factory-method_main + main.cpp + "example4/TextManipulator.cpp" + "example4/LineManipulator.cpp" +) +# Include directories for the headers +target_include_directories(factory-method_main PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + "example1" + "example2" + "example3" + "example4" +) #add sub directories add_subdirectory("example1") diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/Figure.h b/Design-Patterns/Creational-Patterns/factory-method/example4/Figure.h new file mode 100644 index 0000000..0e1925f --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/Figure.h @@ -0,0 +1,16 @@ +#pragma once +#include "Manipulator.h" +#include +//abstract creator(factory) +//Figure == ManipulatorFactory +class Figure { +protected: + virtual std::unique_ptr createManipulator() = 0; +public: + virtual ~Figure() = default; + std::unique_ptr getManipulator() { + auto figure = createManipulator(); + return figure; + } + +}; diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/LineFigure.h b/Design-Patterns/Creational-Patterns/factory-method/example4/LineFigure.h new file mode 100644 index 0000000..3b04289 --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/LineFigure.h @@ -0,0 +1,12 @@ +#pragma once +#include "Figure.h" +#include "LineManipulator.h" + +//concrete factory +// LineFigure == LineManipulatorFactory +class LineFigure : public Figure { +public: + std::unique_ptr createManipulator() override { + return std::make_unique(); + } +}; \ No newline at end of file diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/LineManipulator.cpp b/Design-Patterns/Creational-Patterns/factory-method/example4/LineManipulator.cpp new file mode 100644 index 0000000..34823bb --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/LineManipulator.cpp @@ -0,0 +1,32 @@ +#include "LineManipulator.h" +#include + +LineManipulator::LineManipulator(int width, const std::string& color) + : lineWidth(width), lineColor(color) { +} +//implementing pure virtual methods that we override from parent +void LineManipulator::downClick() { + std::cout << "LineManipulator: downClick called with line width = " + << lineWidth << ", color = " << lineColor << std::endl; +} +void LineManipulator::upClick() { + std::cout << "LineManipulator: upClick called with line width = " + << lineWidth << ", color = " << lineColor << std::endl; +} +void LineManipulator::drag() { + std::cout << "LineManipulator: drag called with line width = " + << lineWidth << ", color = " << lineColor << std::endl; +} +//getter setters +int LineManipulator::getLineWidth() const { + return lineWidth; +} +void LineManipulator::setLineWidth(int width) { + lineWidth = width; +} +std::string LineManipulator::getLineColor() const { + return lineColor; +} +void LineManipulator::setLineColor(const std::string& color) { + lineColor = color; +} \ No newline at end of file diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/LineManipulator.h b/Design-Patterns/Creational-Patterns/factory-method/example4/LineManipulator.h new file mode 100644 index 0000000..c6af16e --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/LineManipulator.h @@ -0,0 +1,22 @@ +#pragma once +#include "Manipulator.h" +#include + +//concrete product +class LineManipulator : public Manipulator { +private: + int lineWidth; + std::string lineColor; +public: + LineManipulator() : lineWidth(1), lineColor("black") {} + LineManipulator(int width, const std::string& color); + + void downClick() override; + void drag() override; + void upClick() override; + + int getLineWidth() const; + std::string getLineColor() const; + void setLineWidth(int width); + void setLineColor(const std::string& color); +}; \ No newline at end of file diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/Manipulator.h b/Design-Patterns/Creational-Patterns/factory-method/example4/Manipulator.h new file mode 100644 index 0000000..ba6c001 --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/Manipulator.h @@ -0,0 +1,10 @@ +#pragma once +#include +//abstract product +class Manipulator { +public: + virtual ~Manipulator() = default; + virtual void downClick() = 0; + virtual void drag() = 0; + virtual void upClick() = 0; +}; \ No newline at end of file diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/TextFigure.h b/Design-Patterns/Creational-Patterns/factory-method/example4/TextFigure.h new file mode 100644 index 0000000..7318019 --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/TextFigure.h @@ -0,0 +1,12 @@ +#pragma once +#include "Figure.h" +#include "TextManipulator.h" + +//concrete factory +// TextFigure == LineManipulatorFactory +class TextFigure : public Figure { +public: + std::unique_ptr createManipulator() override { + return std::make_unique(); + } +}; \ No newline at end of file diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/TextManipulator.cpp b/Design-Patterns/Creational-Patterns/factory-method/example4/TextManipulator.cpp new file mode 100644 index 0000000..152dc2d --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/TextManipulator.cpp @@ -0,0 +1,37 @@ +#include "TextManipulator.h" +#include + +// Constructor +TextManipulator::TextManipulator(int width, const std::string& color) + : textWidth(width), textColor(color) { +} + +//implementing pure virtual methods that we override from parent +void TextManipulator::downClick() { + std::cout << "TextManipulator: downClick called with text width = " + << textWidth << ", color = " << textColor << std::endl; +} +void TextManipulator::drag() { + std::cout << "TextManipulator: drag called with text width = " + << textWidth << ", color = " << textColor << std::endl; +} +void TextManipulator::upClick() { + std::cout << "TextManipulator: upClick called with text width = " + << textWidth << ", color = " << textColor << std::endl; +} + +//getter setter +int TextManipulator::getTextWidth() const { + return textWidth; +} + +std::string TextManipulator::getTextColor() const { + return textColor; +} +void TextManipulator::setTextWidth(int width) { + textWidth = width; +} + +void TextManipulator::setTextColor(const std::string& color) { + textColor = color; +} diff --git a/Design-Patterns/Creational-Patterns/factory-method/example4/TextManipulator.h b/Design-Patterns/Creational-Patterns/factory-method/example4/TextManipulator.h new file mode 100644 index 0000000..957f846 --- /dev/null +++ b/Design-Patterns/Creational-Patterns/factory-method/example4/TextManipulator.h @@ -0,0 +1,22 @@ +#pragma once +#include "Manipulator.h" +#include + +//concrete product +class TextManipulator : public Manipulator { +private: + int textWidth; + std::string textColor; +public: + TextManipulator() : textWidth(5), textColor("black") {} + TextManipulator(int width, const std::string& color); + + void downClick() override; + void drag() override; + void upClick() override; + + int getTextWidth() const; + std::string getTextColor() const; + void setTextWidth(int width); + void setTextColor(const std::string& color); +}; \ No newline at end of file diff --git a/Design-Patterns/Creational-Patterns/factory-method/main.cpp b/Design-Patterns/Creational-Patterns/factory-method/main.cpp index 753161a..771fcd5 100644 --- a/Design-Patterns/Creational-Patterns/factory-method/main.cpp +++ b/Design-Patterns/Creational-Patterns/factory-method/main.cpp @@ -5,6 +5,9 @@ #include #include #include +#include +#include +#include int main() { @@ -40,6 +43,28 @@ int main() { std::unique_ptr jsonMsg = jsonFactory->getMessage(); std::cout << "JSON Message Content: " << jsonMsg->getContent() << std::endl; + std::cout << "--------------" << std::endl; + std::cout << "--Example 4 ->" << std::endl; + std::cout << "--------------" << std::endl; + + //ex4 + std::unique_ptr
textFigure = std::make_unique(); //Factory for TextManipulator + std::unique_ptr textManipulator = textFigure->getManipulator(); + textManipulator->downClick(); + textManipulator->upClick(); + textManipulator->drag(); + + std::unique_ptr
lineFigure = std::make_unique(); //Factory for TextManipulator + std::unique_ptr lineManipulator = lineFigure->getManipulator(); + lineManipulator->downClick(); + lineManipulator->upClick(); + lineManipulator->drag(); + + std::cout << "--------------" << std::endl; + std::cout << "--Example 5 ->" << std::endl; + std::cout << "--------------" << std::endl; + + //ex5 return 0; } \ No newline at end of file diff --git a/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-89ff72fdb5ac853beca2.json b/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-aa40aafc7b0a6c8fbc21.json similarity index 99% rename from out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-89ff72fdb5ac853beca2.json rename to out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-aa40aafc7b0a6c8fbc21.json index e3f1eb8..8c1514c 100644 --- a/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-89ff72fdb5ac853beca2.json +++ b/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-aa40aafc7b0a6c8fbc21.json @@ -486,7 +486,7 @@ { "directoryIndex" : 3, "id" : "factory-method_main::@6fe980a8ea798b5fefc6", - "jsonFile" : "target-factory-method_main-Debug-8f7fb5ba4e87ac899890.json", + "jsonFile" : "target-factory-method_main-Debug-d8aae8f1d699f2ad1e35.json", "name" : "factory-method_main", "projectIndex" : 0 } diff --git a/out/build/x64-debug/.cmake/api/v1/reply/index-2024-12-09T23-57-41-0420.json b/out/build/x64-debug/.cmake/api/v1/reply/index-2024-12-10T20-48-28-0009.json similarity index 95% rename from out/build/x64-debug/.cmake/api/v1/reply/index-2024-12-09T23-57-41-0420.json rename to out/build/x64-debug/.cmake/api/v1/reply/index-2024-12-10T20-48-28-0009.json index 1239a80..17f9ace 100644 --- a/out/build/x64-debug/.cmake/api/v1/reply/index-2024-12-09T23-57-41-0420.json +++ b/out/build/x64-debug/.cmake/api/v1/reply/index-2024-12-10T20-48-28-0009.json @@ -26,7 +26,7 @@ "objects" : [ { - "jsonFile" : "codemodel-v2-89ff72fdb5ac853beca2.json", + "jsonFile" : "codemodel-v2-aa40aafc7b0a6c8fbc21.json", "kind" : "codemodel", "version" : { @@ -108,7 +108,7 @@ } }, { - "jsonFile" : "codemodel-v2-89ff72fdb5ac853beca2.json", + "jsonFile" : "codemodel-v2-aa40aafc7b0a6c8fbc21.json", "kind" : "codemodel", "version" : { diff --git a/out/build/x64-debug/.cmake/api/v1/reply/target-factory-method_main-Debug-8f7fb5ba4e87ac899890.json b/out/build/x64-debug/.cmake/api/v1/reply/target-factory-method_main-Debug-8f7fb5ba4e87ac899890.json deleted file mode 100644 index 922e438..0000000 --- a/out/build/x64-debug/.cmake/api/v1/reply/target-factory-method_main-Debug-8f7fb5ba4e87ac899890.json +++ /dev/null @@ -1,222 +0,0 @@ -{ - "artifacts" : - [ - { - "path" : "Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe" - }, - { - "path" : "Design-Patterns/Creational-Patterns/factory-method/factory-method_main.pdb" - } - ], - "backtrace" : 1, - "backtraceGraph" : - { - "commands" : - [ - "add_executable", - "target_include_directories" - ], - "files" : - [ - "Design-Patterns/Creational-Patterns/factory-method/CMakeLists.txt" - ], - "nodes" : - [ - { - "file" : 0 - }, - { - "command" : 0, - "file" : 0, - "line" : 2, - "parent" : 0 - }, - { - "command" : 1, - "file" : 0, - "line" : 5, - "parent" : 0 - } - ] - }, - "compileGroups" : - [ - { - "compileCommandFragments" : - [ - { - "fragment" : "/DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++latest -ZI" - } - ], - "includes" : - [ - { - "backtrace" : 2, - "path" : "C:/CppWorkspace-VisualStudio2022/CPP-Study/Design-Patterns/Creational-Patterns/factory-method" - } - ], - "language" : "CXX", - "languageStandard" : - { - "backtraces" : - [ - 1 - ], - "standard" : "23" - }, - "sourceIndexes" : - [ - 0 - ] - } - ], - "id" : "factory-method_main::@6fe980a8ea798b5fefc6", - "link" : - { - "commandFragments" : - [ - { - "fragment" : "/DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -ZI", - "role" : "flags" - }, - { - "fragment" : "/machine:x64 /debug /INCREMENTAL /subsystem:console", - "role" : "flags" - }, - { - "fragment" : "kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib", - "role" : "libraries" - } - ], - "language" : "CXX" - }, - "name" : "factory-method_main", - "nameOnDisk" : "factory-method_main.exe", - "paths" : - { - "build" : "Design-Patterns/Creational-Patterns/factory-method", - "source" : "Design-Patterns/Creational-Patterns/factory-method" - }, - "sourceGroups" : - [ - { - "name" : "Source Files", - "sourceIndexes" : - [ - 0 - ] - }, - { - "name" : "Header Files", - "sourceIndexes" : - [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16 - ] - } - ], - "sources" : - [ - { - "backtrace" : 1, - "compileGroupIndex" : 0, - "path" : "Design-Patterns/Creational-Patterns/factory-method/main.cpp", - "sourceGroupIndex" : 0 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example1/Document.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example1/PDFDocument.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example1/Client.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example1/AdobeAcrobatClient.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example2/Burger.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example2/BeefBurger.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example2/VeggieBurger.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example2/Restaurant.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example2/BeefRestaurant.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example2/VeggieRestaurant.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example3/Message.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example3/TextMessage.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example3/JsonMessage.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example3/MessageFactory.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example3/JsonMessageFactory.h", - "sourceGroupIndex" : 1 - }, - { - "backtrace" : 1, - "path" : "Design-Patterns/Creational-Patterns/factory-method/example3/TextMessageFactory.h", - "sourceGroupIndex" : 1 - } - ], - "type" : "EXECUTABLE" -} diff --git a/out/build/x64-debug/.cmake/api/v1/reply/target-factory-method_main-Debug-d8aae8f1d699f2ad1e35.json b/out/build/x64-debug/.cmake/api/v1/reply/target-factory-method_main-Debug-d8aae8f1d699f2ad1e35.json new file mode 100644 index 0000000..17461fa --- /dev/null +++ b/out/build/x64-debug/.cmake/api/v1/reply/target-factory-method_main-Debug-d8aae8f1d699f2ad1e35.json @@ -0,0 +1,152 @@ +{ + "artifacts" : + [ + { + "path" : "Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe" + }, + { + "path" : "Design-Patterns/Creational-Patterns/factory-method/factory-method_main.pdb" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_include_directories" + ], + "files" : + [ + "Design-Patterns/Creational-Patterns/factory-method/CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 6, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 12, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "/DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++latest -ZI" + } + ], + "includes" : + [ + { + "backtrace" : 2, + "path" : "C:/CppWorkspace-VisualStudio2022/CPP-Study/Design-Patterns/Creational-Patterns/factory-method" + }, + { + "backtrace" : 2, + "path" : "C:/CppWorkspace-VisualStudio2022/CPP-Study/Design-Patterns/Creational-Patterns/factory-method/example1" + }, + { + "backtrace" : 2, + "path" : "C:/CppWorkspace-VisualStudio2022/CPP-Study/Design-Patterns/Creational-Patterns/factory-method/example2" + }, + { + "backtrace" : 2, + "path" : "C:/CppWorkspace-VisualStudio2022/CPP-Study/Design-Patterns/Creational-Patterns/factory-method/example3" + }, + { + "backtrace" : 2, + "path" : "C:/CppWorkspace-VisualStudio2022/CPP-Study/Design-Patterns/Creational-Patterns/factory-method/example4" + } + ], + "language" : "CXX", + "languageStandard" : + { + "backtraces" : + [ + 1 + ], + "standard" : "23" + }, + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "id" : "factory-method_main::@6fe980a8ea798b5fefc6", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "/DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -ZI", + "role" : "flags" + }, + { + "fragment" : "/machine:x64 /debug /INCREMENTAL /subsystem:console", + "role" : "flags" + }, + { + "fragment" : "kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib", + "role" : "libraries" + } + ], + "language" : "CXX" + }, + "name" : "factory-method_main", + "nameOnDisk" : "factory-method_main.exe", + "paths" : + { + "build" : "Design-Patterns/Creational-Patterns/factory-method", + "source" : "Design-Patterns/Creational-Patterns/factory-method" + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "Design-Patterns/Creational-Patterns/factory-method/main.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "Design-Patterns/Creational-Patterns/factory-method/example4/TextManipulator.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "Design-Patterns/Creational-Patterns/factory-method/example4/LineManipulator.cpp", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git a/out/build/x64-debug/.ninja_deps b/out/build/x64-debug/.ninja_deps index 074ffbc..125cd47 100644 Binary files a/out/build/x64-debug/.ninja_deps and b/out/build/x64-debug/.ninja_deps differ diff --git a/out/build/x64-debug/.ninja_log b/out/build/x64-debug/.ninja_log index eb93283..0c62684 100644 --- a/out/build/x64-debug/.ninja_log +++ b/out/build/x64-debug/.ninja_log @@ -1,6 +1,6 @@ # ninja log v6 -28 1296 7554917318103190 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj fc641149412c99b4 -1297 1788 7554917330784524 Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe 166c072041b9d082 +28 1046 7555666282520924 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj fc641149412c99b4 +1002 1287 7554919082828968 Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe 52d1494729622180 29 908 7553969914862826 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example1/Document.cpp.obj 323cb293c90e11ab 50 906 7554051339358266 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example2/Restaurant.cpp.obj 7d348ffaee59eaf6 29 1246 7553989937789601 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example1/PDFDocument.cpp.obj 22885b2aa076c6e8 @@ -9,5 +9,11 @@ 43 1457 7554051339288253 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example2/BeefBurger.cpp.obj a8382f1d82c717e8 47 1445 7554051339328257 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example2/VeggieBurger.cpp.obj 9f009e3db401478c 59 1461 7554051339438285 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example2/VeggieRestaurant.cpp.obj a583cbf6c2e80abc -29 1002 7554919073098797 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj fc641149412c99b4 -1002 1287 7554919082828968 Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe 52d1494729622180 +33 966 7555666282560932 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/TextManipulator.cpp.obj 3193abd532361fdb +29 53 7555666272465633 clean 8c45b54705a541e8 +27 964 7555669140642665 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/TextManipulator.cpp.obj d832c11dfeb9103d +22 1054 7555669140602663 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj d5b14dfa9b7dbcd7 +36 964 7555669421246013 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/LineManipulator.cpp.obj 7bc48c6c1d3613cc +965 1181 7555669430540024 Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe 762729113dcc3ee8 +21 1008 7555669823731057 Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj d5b14dfa9b7dbcd7 +1009 1212 7555669833611025 Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe 762729113dcc3ee8 diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/LineManipulator.cpp.obj b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/LineManipulator.cpp.obj new file mode 100644 index 0000000..101abfe Binary files /dev/null and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/LineManipulator.cpp.obj differ diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/TextManipulator.cpp.obj b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/TextManipulator.cpp.obj new file mode 100644 index 0000000..719ed50 Binary files /dev/null and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/example4/TextManipulator.cpp.obj differ diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj index 88cf765..de4036b 100644 Binary files a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/main.cpp.obj differ diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.idb b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.idb index 21d8802..a2d7298 100644 Binary files a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.idb and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.idb differ diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.pdb b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.pdb index 47ba1bf..db50bde 100644 Binary files a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.pdb and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/CMakeFiles/factory-method_main.dir/vc140.pdb differ diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe index dac413d..dd58202 100644 Binary files a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.exe differ diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.ilk b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.ilk index 34c4eb3..9cd1b8e 100644 Binary files a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.ilk and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.ilk differ diff --git a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.pdb b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.pdb index eec7c39..fd7501e 100644 Binary files a/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.pdb and b/out/build/x64-debug/Design-Patterns/Creational-Patterns/factory-method/factory-method_main.pdb differ diff --git a/out/build/x64-debug/Testing/Temporary/LastTest.log b/out/build/x64-debug/Testing/Temporary/LastTest.log index a8c3789..f085538 100644 --- a/out/build/x64-debug/Testing/Temporary/LastTest.log +++ b/out/build/x64-debug/Testing/Temporary/LastTest.log @@ -1,3 +1,3 @@ -Start testing: Dec 10 02:57 T�rkiye Standart Saati +Start testing: Dec 10 23:48 T�rkiye Standart Saati ---------------------------------------------------------- -End testing: Dec 10 02:57 T�rkiye Standart Saati +End testing: Dec 10 23:48 T�rkiye Standart Saati diff --git a/out/build/x64-debug/build.ninja b/out/build/x64-debug/build.ninja index 253a64e..ce92e83 100644 --- a/out/build/x64-debug/build.ninja +++ b/out/build/x64-debug/build.ninja @@ -135,12 +135,28 @@ build cmake_object_order_depends_target_factory-method_main: phony || . build Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\main.cpp.obj: CXX_COMPILER__factory-method_main_unscanned_Debug C$:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\main.cpp || cmake_object_order_depends_target_factory-method_main FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++latest -ZI - INCLUDES = -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method + INCLUDES = -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example1 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example2 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example3 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example4 OBJECT_DIR = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir OBJECT_FILE_DIR = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir TARGET_COMPILE_PDB = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\ TARGET_PDB = Design-Patterns\Creational-Patterns\factory-method\factory-method_main.pdb +build Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\example4\TextManipulator.cpp.obj: CXX_COMPILER__factory-method_main_unscanned_Debug C$:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example4\TextManipulator.cpp || cmake_object_order_depends_target_factory-method_main + FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++latest -ZI + INCLUDES = -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example1 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example2 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example3 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example4 + OBJECT_DIR = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir + OBJECT_FILE_DIR = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\example4 + TARGET_COMPILE_PDB = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\ + TARGET_PDB = Design-Patterns\Creational-Patterns\factory-method\factory-method_main.pdb + +build Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\example4\LineManipulator.cpp.obj: CXX_COMPILER__factory-method_main_unscanned_Debug C$:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example4\LineManipulator.cpp || cmake_object_order_depends_target_factory-method_main + FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -std:c++latest -ZI + INCLUDES = -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example1 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example2 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example3 -IC:\CppWorkspace-VisualStudio2022\CPP-Study\Design-Patterns\Creational-Patterns\factory-method\example4 + OBJECT_DIR = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir + OBJECT_FILE_DIR = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\example4 + TARGET_COMPILE_PDB = Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\ + TARGET_PDB = Design-Patterns\Creational-Patterns\factory-method\factory-method_main.pdb + # ============================================================================= # Link build statements for EXECUTABLE target factory-method_main @@ -149,7 +165,7 @@ build Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-meth ############################################# # Link the executable Design-Patterns\Creational-Patterns\factory-method\factory-method_main.exe -build Design-Patterns\Creational-Patterns\factory-method\factory-method_main.exe: CXX_EXECUTABLE_LINKER__factory-method_main_Debug Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\main.cpp.obj +build Design-Patterns\Creational-Patterns\factory-method\factory-method_main.exe: CXX_EXECUTABLE_LINKER__factory-method_main_Debug Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\main.cpp.obj Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\example4\TextManipulator.cpp.obj Design-Patterns\Creational-Patterns\factory-method\CMakeFiles\factory-method_main.dir\example4\LineManipulator.cpp.obj FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Ob0 /Od /RTC1 -ZI LINK_FLAGS = /machine:x64 /debug /INCREMENTAL /subsystem:console LINK_LIBRARIES = kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib