Skip to content

Commit

Permalink
feat: SCS Webserver
Browse files Browse the repository at this point in the history
dev: optimized library usage with smart-/shared pointers
  • Loading branch information
zbbamboo committed Nov 17, 2024
1 parent 1c558fe commit 2e11ee8
Show file tree
Hide file tree
Showing 29 changed files with 10,504 additions and 175 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="top" align="center">
<h1>files_photo-gallery</h1>

<p>QT6 CXX20 console app to convert photos and add Metadata to Database</p>
<p>QT6 CXX23 SCS to convert photos and add Metadata to Database</p>

[Report Issue](https://github.com/Zheng-Bote/qt_files_photo-gallery/issues) [Request Feature](https://github.com/Zheng-Bote/qt_files_photo-gallery/pulls)

Expand All @@ -14,10 +14,11 @@

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

**Table of Contents**

- [Description](#description)
- [Features](#features)
- [Features](#features)
- [Status](#status)
- [Application / Tool](#application--tool)
- [Documentation](#documentation)
Expand Down Expand Up @@ -78,7 +79,7 @@
![QT](https://img.shields.io/badge/Community-6-41CD52?logo=qt)
![CXX](https://img.shields.io/badge/C++-23-blue?logo=cplusplus)

QT6 C++23 console app to convert photos, collect Exif/IPTC and add metadata to DB.
QT6 C++23 Self Contained System (SCS) to convert photos, collect Exif/IPTC and add metadata to DB.

> The purpose of this tool is to run as a microservice to prepare photos for a web-based photo-gallery.
Expand All @@ -99,6 +100,7 @@ flowchart LR;

### Features

- [x] Webserver (SCS) for steering and managing
- [x] supports PostgreSQL (insert)
- [x] supports SQLite3 (incl. create tables, indexes, triggers; insert)
- [x] supports exports to SQL-file ("native", system-independent SQL; insert)
Expand Down Expand Up @@ -255,6 +257,7 @@ Plog - portable, simple and extensible C++ logging library
## folder structure

<!-- readme-tree start -->

```
.
├── .github
Expand Down Expand Up @@ -327,6 +330,7 @@ Plog - portable, simple and extensible C++ logging library
9 directories, 58 files
```

<!-- readme-tree end -->

<p align="right">(<a href="#top">back to top</a>)</p>
Expand Down
38 changes: 21 additions & 17 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ cmake_minimum_required(VERSION 3.23)

project(
files_photo-gallery
VERSION 0.1.8
VERSION 0.1.10
DESCRIPTION
"QT6 CXX23 console app to add photos to web-based photo-gallery"
"QT6 CXX23 SCS to add photos to photo-gallery"
HOMEPAGE_URL "https://github.com/Zheng-Bote/qt_files_photo-gallery"
LANGUAGES CXX)

Expand Down Expand Up @@ -52,19 +52,29 @@ else()
endif()

set(SRC_LIST main.cpp
includes/rz_photo-gallery_plugins.h
includes/rz_photo-gallery_plugins.hpp
includes/rz_webserver.hpp
includes/rz_snippets.hpp
includes/rz_snippets.cpp
includes/rz_qt_snippets.hpp
includes/rz_qt_snippets.cpp
includes/rz_do_thread.hpp
includes/rz_do_thread.cpp
includes/rz_options.hpp
includes/rz_filesystem.cpp
includes/rz_filesystem.hpp
includes/rz_output.cpp
includes/rz_output.h
includes/rz_output.hpp
includes/rz_inifile.cpp
includes/rz_inifile.h
includes/rz_string_lib.h
includes/rz_inifile.hpp
includes/rz_string_lib.hpp
includes/rz_pg_db.cpp
includes/rz_pg_db.h
includes/rz_pg_db.hpp
includes/rz_sqlite3_db.cpp
includes/rz_sqlite3_db.h
includes/rz_sqlite3_db.hpp
includes/rz_readdir.cpp
includes/rz_readdir.h
includes/rz_datetime.h
includes/rz_readdir.hpp
includes/rz_datetime.hpp
includes/rz_datetime.cpp
includes/rz_aes.h
includes/rz_aes.cpp
Expand All @@ -88,13 +98,7 @@ find_package(plog REQUIRED)
add_library(inicpp includes/inicpp.h)

# no need to list header files, but helpful for IDE
add_executable(${PROJECT_NAME} ${SRC_LIST}
includes/rz_snippets.h includes/rz_snippets.cpp
includes/rz_qt_snippets.h includes/rz_qt_snippets.cpp
includes/rz_filesystem.cpp
includes/rz_filesystem.h
includes/rz_options.hpp
includes/rz_do_thread.h includes/rz_do_thread.cpp)
add_executable(${PROJECT_NAME} ${SRC_LIST})

target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_23)
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
Expand Down
Loading

0 comments on commit 2e11ee8

Please sign in to comment.