From 50fb7a3ac2f5643bff6ab8604182a8a48defbe20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1z=20Zengin?= Date: Sun, 7 Sep 2025 21:53:59 +0300 Subject: [PATCH] Updated Library Documentation (markdown) --- Library-Documentation.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Library-Documentation.md b/Library-Documentation.md index 3f19068..85ef74d 100644 --- a/Library-Documentation.md +++ b/Library-Documentation.md @@ -167,8 +167,10 @@ namespace LoggingProperties { void set(std::string_view name, std::string_view file); void setProgramName(std::string_view name); void setLogFile(std::string_view file); -void setPrinting(int state); -void setLoggingState(int state); // Disable/enable logging +template +void setPrinting(); +template +void setLoggingState(); // Disable/enable logging void reset(); } // namespace LoggingProperties @@ -235,9 +237,9 @@ class garbageCollector { public: ~garbageCollector(); - void delAfterProgress(char *&_ptr); // Delete allocated char variables after function - void delAfterProgress(uint8_t *&_ptr); // Delete allocated uint8_t variables after funtion - void delFileAfterProgress(const std::string &path); // Delete input file after function + template + void delAfterProgress(T *_ptr); // Delete allocated variables after function + void delFileAfterProgress(const std::string &_path); // Delete input file after function void closeAfterProgress(FILE *&_fp); // Close input file pointers after function void closeAfterProgress(DIR *&_dp); // Close input directory pointers after function void closeAfterProgress(int _fd); // Close input file descriptor after function @@ -291,7 +293,7 @@ int main(int argc, char** argv) { auto *buffer = new char[4096]; // Allocate memory collector.delAfterProgrss(buffer); - // You can do the same with uint8_t + // You can do the same with other types (int, etc.) return 0; }