comparison Core/Images/FontRegistry.h @ 4031:e3b3af80732d

ServerResources, and moving EmbeddedResourceHttpHandler from Core to OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jun 2020 21:31:13 +0200
parents 100fbe970762
children
comparison
equal deleted inserted replaced
4030:100fbe970762 4031:e3b3af80732d
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "Font.h" 36 #include "Font.h"
37 37
38 #if !defined(ORTHANC_HAS_EMBEDDED_RESOURCES)
39 # error Macro ORTHANC_HAS_EMBEDDED_RESOURCES must be defined
40 #endif
41
42 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
43 # include <OrthancEmbeddedResources.h> // Autogenerated file
44 #endif
45
46 namespace Orthanc 38 namespace Orthanc
47 { 39 {
48 class ORTHANC_PUBLIC FontRegistry : public boost::noncopyable 40 class ORTHANC_PUBLIC FontRegistry : public boost::noncopyable
49 { 41 {
50 private: 42 private:
59 51
60 #if ORTHANC_SANDBOXED == 0 52 #if ORTHANC_SANDBOXED == 0
61 void AddFromFile(const std::string& path); 53 void AddFromFile(const std::string& path);
62 #endif 54 #endif
63 55
64 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
65 void AddFromResource(EmbeddedResources::FileResourceId resource);
66 #endif
67
68 size_t GetSize() const 56 size_t GetSize() const
69 { 57 {
70 return fonts_.size(); 58 return fonts_.size();
71 } 59 }
72 60