comparison OrthancServer/UnitTestsSources/SizeOfTests.cpp @ 4520:f5cb0c0ffbed

added unit test OrthancFramework.SizeOf to dump sizeof all the public classes in the Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Feb 2021 18:30:31 +0100
parents
children 350a22c094f2
comparison
equal deleted inserted replaced
4519:a3c6678aa7b1 4520:f5cb0c0ffbed
1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2021 Osimis S.A., Belgium
6 *
7 * This program is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * as published by the Free Software Foundation, either version 3 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this program. If not, see
19 * <http://www.gnu.org/licenses/>.
20 **/
21
22
23 #include "PrecompiledHeadersUnitTests.h"
24 #include <gtest/gtest.h>
25
26 #include "../../OrthancFramework/Sources/Cache/ICachePageProvider.h"
27 #include "../../OrthancFramework/Sources/Cache/ICacheable.h"
28 #include "../../OrthancFramework/Sources/Cache/LeastRecentlyUsedIndex.h"
29 #include "../../OrthancFramework/Sources/Cache/MemoryCache.h"
30 #include "../../OrthancFramework/Sources/Cache/MemoryObjectCache.h"
31 #include "../../OrthancFramework/Sources/Cache/MemoryStringCache.h"
32 #include "../../OrthancFramework/Sources/Cache/SharedArchive.h"
33 #include "../../OrthancFramework/Sources/ChunkedBuffer.h"
34 #include "../../OrthancFramework/Sources/Compatibility.h"
35 #include "../../OrthancFramework/Sources/Compression/DeflateBaseCompressor.h"
36 #include "../../OrthancFramework/Sources/Compression/GzipCompressor.h"
37 #include "../../OrthancFramework/Sources/Compression/HierarchicalZipWriter.h"
38 #include "../../OrthancFramework/Sources/Compression/IBufferCompressor.h"
39 #include "../../OrthancFramework/Sources/Compression/ZipReader.h"
40 #include "../../OrthancFramework/Sources/Compression/ZipWriter.h"
41 #include "../../OrthancFramework/Sources/Compression/ZlibCompressor.h"
42 #include "../../OrthancFramework/Sources/DicomFormat/DicomArray.h"
43 #include "../../OrthancFramework/Sources/DicomFormat/DicomElement.h"
44 #include "../../OrthancFramework/Sources/DicomFormat/DicomImageInformation.h"
45 #include "../../OrthancFramework/Sources/DicomFormat/DicomInstanceHasher.h"
46 #include "../../OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.h"
47 #include "../../OrthancFramework/Sources/DicomFormat/DicomMap.h"
48 #include "../../OrthancFramework/Sources/DicomFormat/DicomStreamReader.h"
49 #include "../../OrthancFramework/Sources/DicomFormat/DicomTag.h"
50 #include "../../OrthancFramework/Sources/DicomFormat/DicomValue.h"
51 #include "../../OrthancFramework/Sources/DicomFormat/StreamBlockReader.h"
52 #include "../../OrthancFramework/Sources/DicomNetworking/DicomAssociation.h"
53 #include "../../OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.h"
54 #include "../../OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.h"
55 #include "../../OrthancFramework/Sources/DicomNetworking/DicomFindAnswers.h"
56 #include "../../OrthancFramework/Sources/DicomNetworking/DicomServer.h"
57 #include "../../OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.h"
58 #include "../../OrthancFramework/Sources/DicomNetworking/IApplicationEntityFilter.h"
59 #include "../../OrthancFramework/Sources/DicomNetworking/IFindRequestHandler.h"
60 #include "../../OrthancFramework/Sources/DicomNetworking/IFindRequestHandlerFactory.h"
61 #include "../../OrthancFramework/Sources/DicomNetworking/IGetRequestHandler.h"
62 #include "../../OrthancFramework/Sources/DicomNetworking/IGetRequestHandlerFactory.h"
63 #include "../../OrthancFramework/Sources/DicomNetworking/IMoveRequestHandler.h"
64 #include "../../OrthancFramework/Sources/DicomNetworking/IMoveRequestHandlerFactory.h"
65 #include "../../OrthancFramework/Sources/DicomNetworking/IStorageCommitmentRequestHandler.h"
66 #include "../../OrthancFramework/Sources/DicomNetworking/IStorageCommitmentRequestHandlerFactory.h"
67 #include "../../OrthancFramework/Sources/DicomNetworking/IStoreRequestHandler.h"
68 #include "../../OrthancFramework/Sources/DicomNetworking/IStoreRequestHandlerFactory.h"
69 #include "../../OrthancFramework/Sources/DicomNetworking/IWorklistRequestHandler.h"
70 #include "../../OrthancFramework/Sources/DicomNetworking/IWorklistRequestHandlerFactory.h"
71 #include "../../OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.h"
72 #include "../../OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.h"
73 #include "../../OrthancFramework/Sources/DicomNetworking/Internals/FindScp.h"
74 #include "../../OrthancFramework/Sources/DicomNetworking/Internals/GetScp.h"
75 #include "../../OrthancFramework/Sources/DicomNetworking/Internals/MoveScp.h"
76 #include "../../OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.h"
77 #include "../../OrthancFramework/Sources/DicomNetworking/NetworkingCompatibility.h"
78 #include "../../OrthancFramework/Sources/DicomNetworking/RemoteModalityParameters.h"
79 #include "../../OrthancFramework/Sources/DicomNetworking/TimeoutDicomConnectionManager.h"
80 #include "../../OrthancFramework/Sources/DicomParsing/DcmtkTranscoder.h"
81 #include "../../OrthancFramework/Sources/DicomParsing/DicomDirWriter.h"
82 #include "../../OrthancFramework/Sources/DicomParsing/DicomModification.h"
83 #include "../../OrthancFramework/Sources/DicomParsing/DicomWebJsonVisitor.h"
84 #include "../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.h"
85 #include "../../OrthancFramework/Sources/DicomParsing/IDicomTranscoder.h"
86 #include "../../OrthancFramework/Sources/DicomParsing/ITagVisitor.h"
87 #include "../../OrthancFramework/Sources/DicomParsing/Internals/DicomFrameIndex.h"
88 #include "../../OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.h"
89 #include "../../OrthancFramework/Sources/DicomParsing/MemoryBufferTranscoder.h"
90 #include "../../OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h"
91 #include "../../OrthancFramework/Sources/DicomParsing/ParsedDicomDir.h"
92 #include "../../OrthancFramework/Sources/DicomParsing/ParsedDicomFile.h"
93 #include "../../OrthancFramework/Sources/DicomParsing/ToDcmtkBridge.h"
94 #include "../../OrthancFramework/Sources/Endianness.h"
95 #include "../../OrthancFramework/Sources/EnumerationDictionary.h"
96 #include "../../OrthancFramework/Sources/Enumerations.h"
97 #include "../../OrthancFramework/Sources/FileBuffer.h"
98 #include "../../OrthancFramework/Sources/FileStorage/FileInfo.h"
99 #include "../../OrthancFramework/Sources/FileStorage/FilesystemStorage.h"
100 #include "../../OrthancFramework/Sources/FileStorage/IStorageArea.h"
101 #include "../../OrthancFramework/Sources/FileStorage/MemoryStorageArea.h"
102 #include "../../OrthancFramework/Sources/FileStorage/StorageAccessor.h"
103 #include "../../OrthancFramework/Sources/HttpClient.h"
104 #include "../../OrthancFramework/Sources/HttpServer/BufferHttpSender.h"
105 #include "../../OrthancFramework/Sources/HttpServer/FilesystemHttpHandler.h"
106 #include "../../OrthancFramework/Sources/HttpServer/FilesystemHttpSender.h"
107 #include "../../OrthancFramework/Sources/HttpServer/HttpContentNegociation.h"
108 #include "../../OrthancFramework/Sources/HttpServer/HttpFileSender.h"
109 #include "../../OrthancFramework/Sources/HttpServer/HttpOutput.h"
110 #include "../../OrthancFramework/Sources/HttpServer/HttpServer.h"
111 #include "../../OrthancFramework/Sources/HttpServer/HttpStreamTranscoder.h"
112 #include "../../OrthancFramework/Sources/HttpServer/HttpToolbox.h"
113 #include "../../OrthancFramework/Sources/HttpServer/IHttpHandler.h"
114 #include "../../OrthancFramework/Sources/HttpServer/IHttpOutputStream.h"
115 #include "../../OrthancFramework/Sources/HttpServer/IHttpStreamAnswer.h"
116 #include "../../OrthancFramework/Sources/HttpServer/IIncomingHttpRequestFilter.h"
117 #include "../../OrthancFramework/Sources/HttpServer/IWebDavBucket.h"
118 #include "../../OrthancFramework/Sources/HttpServer/MultipartStreamReader.h"
119 #include "../../OrthancFramework/Sources/HttpServer/StringHttpOutput.h"
120 #include "../../OrthancFramework/Sources/HttpServer/StringMatcher.h"
121 #include "../../OrthancFramework/Sources/HttpServer/WebDavStorage.h"
122 #include "../../OrthancFramework/Sources/IDynamicObject.h"
123 #include "../../OrthancFramework/Sources/IMemoryBuffer.h"
124 #include "../../OrthancFramework/Sources/Images/Font.h"
125 #include "../../OrthancFramework/Sources/Images/FontRegistry.h"
126 #include "../../OrthancFramework/Sources/Images/IImageWriter.h"
127 #include "../../OrthancFramework/Sources/Images/Image.h"
128 #include "../../OrthancFramework/Sources/Images/ImageAccessor.h"
129 #include "../../OrthancFramework/Sources/Images/ImageBuffer.h"
130 #include "../../OrthancFramework/Sources/Images/ImageProcessing.h"
131 #include "../../OrthancFramework/Sources/Images/ImageTraits.h"
132 #include "../../OrthancFramework/Sources/Images/JpegErrorManager.h"
133 #include "../../OrthancFramework/Sources/Images/JpegReader.h"
134 #include "../../OrthancFramework/Sources/Images/JpegWriter.h"
135 #include "../../OrthancFramework/Sources/Images/PamReader.h"
136 #include "../../OrthancFramework/Sources/Images/PamWriter.h"
137 #include "../../OrthancFramework/Sources/Images/PixelTraits.h"
138 #include "../../OrthancFramework/Sources/Images/PngReader.h"
139 #include "../../OrthancFramework/Sources/Images/PngWriter.h"
140 #include "../../OrthancFramework/Sources/JobsEngine/GenericJobUnserializer.h"
141 #include "../../OrthancFramework/Sources/JobsEngine/IJob.h"
142 #include "../../OrthancFramework/Sources/JobsEngine/IJobUnserializer.h"
143 #include "../../OrthancFramework/Sources/JobsEngine/JobInfo.h"
144 #include "../../OrthancFramework/Sources/JobsEngine/JobStatus.h"
145 #include "../../OrthancFramework/Sources/JobsEngine/JobStepResult.h"
146 #include "../../OrthancFramework/Sources/JobsEngine/JobsEngine.h"
147 #include "../../OrthancFramework/Sources/JobsEngine/JobsRegistry.h"
148 #include "../../OrthancFramework/Sources/JobsEngine/Operations/IJobOperation.h"
149 #include "../../OrthancFramework/Sources/JobsEngine/Operations/IJobOperationValue.h"
150 #include "../../OrthancFramework/Sources/JobsEngine/Operations/JobOperationValues.h"
151 #include "../../OrthancFramework/Sources/JobsEngine/Operations/LogJobOperation.h"
152 #include "../../OrthancFramework/Sources/JobsEngine/Operations/NullOperationValue.h"
153 #include "../../OrthancFramework/Sources/JobsEngine/Operations/SequenceOfOperationsJob.h"
154 #include "../../OrthancFramework/Sources/JobsEngine/Operations/StringOperationValue.h"
155 #include "../../OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h"
156 #include "../../OrthancFramework/Sources/JobsEngine/SetOfInstancesJob.h"
157 #include "../../OrthancFramework/Sources/Logging.h"
158 #include "../../OrthancFramework/Sources/Lua/LuaContext.h"
159 #include "../../OrthancFramework/Sources/Lua/LuaFunctionCall.h"
160 #include "../../OrthancFramework/Sources/MallocMemoryBuffer.h"
161 #include "../../OrthancFramework/Sources/MetricsRegistry.h"
162 #include "../../OrthancFramework/Sources/MultiThreading/IRunnableBySteps.h"
163 #include "../../OrthancFramework/Sources/MultiThreading/RunnableWorkersPool.h"
164 #include "../../OrthancFramework/Sources/MultiThreading/Semaphore.h"
165 #include "../../OrthancFramework/Sources/MultiThreading/SharedMessageQueue.h"
166 #include "../../OrthancFramework/Sources/OrthancException.h"
167 #include "../../OrthancFramework/Sources/OrthancFramework.h"
168 #include "../../OrthancFramework/Sources/RestApi/RestApi.h"
169 #include "../../OrthancFramework/Sources/RestApi/RestApiCall.h"
170 #include "../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.h"
171 #include "../../OrthancFramework/Sources/RestApi/RestApiDeleteCall.h"
172 #include "../../OrthancFramework/Sources/RestApi/RestApiGetCall.h"
173 #include "../../OrthancFramework/Sources/RestApi/RestApiHierarchy.h"
174 #include "../../OrthancFramework/Sources/RestApi/RestApiOutput.h"
175 #include "../../OrthancFramework/Sources/RestApi/RestApiPath.h"
176 #include "../../OrthancFramework/Sources/RestApi/RestApiPostCall.h"
177 #include "../../OrthancFramework/Sources/RestApi/RestApiPutCall.h"
178 #include "../../OrthancFramework/Sources/SQLite/Connection.h"
179 #include "../../OrthancFramework/Sources/SQLite/FunctionContext.h"
180 #include "../../OrthancFramework/Sources/SQLite/IScalarFunction.h"
181 #include "../../OrthancFramework/Sources/SQLite/ITransaction.h"
182 #include "../../OrthancFramework/Sources/SQLite/NonCopyable.h"
183 #include "../../OrthancFramework/Sources/SQLite/OrthancSQLiteException.h"
184 #include "../../OrthancFramework/Sources/SQLite/SQLiteTypes.h"
185 #include "../../OrthancFramework/Sources/SQLite/Statement.h"
186 #include "../../OrthancFramework/Sources/SQLite/StatementId.h"
187 #include "../../OrthancFramework/Sources/SQLite/StatementReference.h"
188 #include "../../OrthancFramework/Sources/SQLite/Transaction.h"
189 #include "../../OrthancFramework/Sources/SerializationToolbox.h"
190 #include "../../OrthancFramework/Sources/SharedLibrary.h"
191 #include "../../OrthancFramework/Sources/StringMemoryBuffer.h"
192 #include "../../OrthancFramework/Sources/SystemToolbox.h"
193 #include "../../OrthancFramework/Sources/TemporaryFile.h"
194 #include "../../OrthancFramework/Sources/Toolbox.h"
195 #include "../../OrthancFramework/Sources/WebServiceParameters.h"
196
197
198 TEST(OrthancFramework, SizeOf)
199 {
200 #include "SizeOfTests.impl.h"
201 }