Skip to content

Commit 488a95f

Browse files
authored
refactor: rename .hpp to .h and move include path to kcenon/pacs/ (#1055)
* refactor: rename .hpp to .h and move include path to kcenon/pacs/ - Move include/pacs/ to include/kcenon/pacs/, renaming all .hpp to .h - Rename remaining .hpp files in examples/, benchmarks/, samples/, tests/, and fuzz/ directories - Update all #include directives from pacs/ to kcenon/pacs/ prefix - Update all .hpp extensions to .h in include paths - Update Doxygen @file references and CMake file listings Total: 299 files renamed, ~2789 include directives updated across 774 source files. Closes #1053 * fix: rename missed query_builder.hpp to .h and fix stale .hpp comment refs The refactor script missed examples/query_scu/query_builder.hpp during the .hpp-to-.h migration, causing a macOS CI build failure with 'query_builder.h' file not found. Also updates stale .hpp references in documentation comments. * chore: update stats script to find .h instead of .hpp and refresh README The calculate-stats.sh script was still searching for *.hpp files after the extension migration, resulting in 0 header files being reported. Updated to search for *.h and regenerated README statistics. * fix: update storage boundary test paths after include path migration The check_storage_boundary.py test was using old paths (include/pacs/*.hpp) instead of the new paths (include/kcenon/pacs/*.h), causing the storage_boundary_guard test to fail on CI.
1 parent 0cb9978 commit 488a95f

777 files changed

Lines changed: 2743 additions & 2743 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,18 +482,18 @@ cmake --build build --target run_full_benchmarks
482482
|--------|-------|
483483
| **Header Files** | 282 files |
484484
| **Source Files** | 204 files |
485-
| **Header LOC** | ~83,600 lines |
486-
| **Source LOC** | ~115,000 lines |
485+
| **Header LOC** | ~76,800 lines |
486+
| **Source LOC** | ~110,100 lines |
487487
| **Example LOC** | ~35,600 lines |
488488
| **Test LOC** | ~85,300 lines |
489-
| **Total LOC** | ~319,500 lines |
489+
| **Total LOC** | ~307,800 lines |
490490
| **Test Files** | 180 files |
491491
| **Test Cases** | 2584+ tests |
492492
| **Example Programs** | 32 apps |
493493
| **Documentation** | 72 markdown files |
494-
| **CI/CD Workflows** | 13 workflows |
494+
| **CI/CD Workflows** | 14 workflows |
495495
| **Version** | 0.1.0 |
496-
| **Last Updated** | 2026-03-26 |
496+
| **Last Updated** | 2026-04-03 |
497497

498498
<!-- STATS_END -->
499499

benchmarks/simd_performance/byte_swap_benchmark.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* @see Issue #313 - Apply SIMD Optimization (Image Processing)
1010
*/
1111

12-
#include "simd_benchmark_common.hpp"
12+
#include "simd_benchmark_common.h"
1313

14-
#include "pacs/encoding/simd/simd_config.hpp"
15-
#include "pacs/encoding/simd/simd_utils.hpp"
14+
#include "kcenon/pacs/encoding/simd/simd_config.h"
15+
#include "kcenon/pacs/encoding/simd/simd_utils.h"
1616

1717
#include <catch2/catch_test_macros.hpp>
1818
#include <catch2/benchmark/catch_benchmark.hpp>

benchmarks/simd_performance/photometric_benchmark.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* @see Issue #313 - Apply SIMD Optimization (Image Processing)
1010
*/
1111

12-
#include "simd_benchmark_common.hpp"
13-
#include "pacs/encoding/simd/simd_photometric.hpp"
12+
#include "simd_benchmark_common.h"
13+
#include "kcenon/pacs/encoding/simd/simd_photometric.h"
1414

1515
#include <iostream>
1616
#include <vector>

benchmarks/simd_performance/rle_simd_benchmark.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* @see Issue #313 - Apply SIMD Optimization (Image Processing)
1010
*/
1111

12-
#include "simd_benchmark_common.hpp"
12+
#include "simd_benchmark_common.h"
1313

14-
#include "pacs/encoding/simd/simd_config.hpp"
15-
#include "pacs/encoding/simd/simd_rle.hpp"
14+
#include "kcenon/pacs/encoding/simd/simd_config.h"
15+
#include "kcenon/pacs/encoding/simd/simd_rle.h"
1616

1717
#include <catch2/catch_test_macros.hpp>
1818
#include <catch2/benchmark/catch_benchmark.hpp>

benchmarks/simd_performance/simd_benchmark_common.hpp renamed to benchmarks/simd_performance/simd_benchmark_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file simd_benchmark_common.hpp
2+
* @file simd_benchmark_common.h
33
* @brief Common utilities for SIMD performance benchmarks
44
*
55
* Provides data generators, timing utilities, and statistics accumulators
@@ -11,7 +11,7 @@
1111
#ifndef PACS_BENCHMARKS_SIMD_PERFORMANCE_SIMD_BENCHMARK_COMMON_HPP
1212
#define PACS_BENCHMARKS_SIMD_PERFORMANCE_SIMD_BENCHMARK_COMMON_HPP
1313

14-
#include "pacs/encoding/simd/simd_config.hpp"
14+
#include "kcenon/pacs/encoding/simd/simd_config.h"
1515

1616
#include <algorithm>
1717
#include <chrono>

benchmarks/simd_performance/windowing_benchmark.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* @see Issue #313 - Apply SIMD Optimization (Image Processing)
1111
*/
1212

13-
#include "simd_benchmark_common.hpp"
14-
#include "pacs/encoding/simd/simd_windowing.hpp"
13+
#include "simd_benchmark_common.h"
14+
#include "kcenon/pacs/encoding/simd/simd_windowing.h"
1515

1616
#include <iostream>
1717
#include <vector>

benchmarks/thread_performance/association_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @see Issue #154 - Establish performance baseline benchmarks for thread migration
1414
*/
1515

16-
#include "benchmark_common.hpp"
16+
#include "benchmark_common.h"
1717

1818
#include <catch2/catch_test_macros.hpp>
1919
#include <catch2/benchmark/catch_benchmark.hpp>

benchmarks/thread_performance/benchmark_common.hpp renamed to benchmarks/thread_performance/benchmark_common.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file benchmark_common.hpp
2+
* @file benchmark_common.h
33
* @brief Common utilities and fixtures for thread performance benchmarks
44
*
55
* Provides reusable server fixtures, timing utilities, and DICOM data
@@ -11,17 +11,17 @@
1111
#ifndef PACS_BENCHMARKS_THREAD_PERFORMANCE_BENCHMARK_COMMON_HPP
1212
#define PACS_BENCHMARKS_THREAD_PERFORMANCE_BENCHMARK_COMMON_HPP
1313

14-
#include "pacs/core/dicom_dataset.hpp"
15-
#include "pacs/core/dicom_element.hpp"
16-
#include "pacs/core/dicom_tag_constants.hpp"
17-
#include "pacs/encoding/vr_type.hpp"
18-
#include "pacs/network/association.hpp"
19-
#include "pacs/network/dicom_server.hpp"
20-
#include "pacs/network/dimse/dimse_message.hpp"
21-
#include "pacs/network/server_config.hpp"
22-
#include "pacs/services/storage_scp.hpp"
23-
#include "pacs/services/storage_scu.hpp"
24-
#include "pacs/services/verification_scp.hpp"
14+
#include "kcenon/pacs/core/dicom_dataset.h"
15+
#include "kcenon/pacs/core/dicom_element.h"
16+
#include "kcenon/pacs/core/dicom_tag_constants.h"
17+
#include "kcenon/pacs/encoding/vr_type.h"
18+
#include "kcenon/pacs/network/association.h"
19+
#include "kcenon/pacs/network/dicom_server.h"
20+
#include "kcenon/pacs/network/dimse/dimse_message.h"
21+
#include "kcenon/pacs/network/server_config.h"
22+
#include "kcenon/pacs/services/storage_scp.h"
23+
#include "kcenon/pacs/services/storage_scu.h"
24+
#include "kcenon/pacs/services/verification_scp.h"
2525

2626
#include <atomic>
2727
#include <chrono>

benchmarks/thread_performance/concurrent_load_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @see Issue #154 - Establish performance baseline benchmarks for thread migration
1515
*/
1616

17-
#include "benchmark_common.hpp"
17+
#include "benchmark_common.h"
1818

1919
#include <catch2/catch_test_macros.hpp>
2020
#include <catch2/benchmark/catch_benchmark.hpp>

benchmarks/thread_performance/shutdown_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @see Issue #154 - Establish performance baseline benchmarks for thread migration
1515
*/
1616

17-
#include "benchmark_common.hpp"
17+
#include "benchmark_common.h"
1818

1919
#include <catch2/catch_test_macros.hpp>
2020
#include <catch2/benchmark/catch_benchmark.hpp>

0 commit comments

Comments
 (0)