comparison Core/Enumerations.h @ 1495:fbe40117eb21

improve the performance of the internal logger
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Aug 2015 18:19:32 +0200
parents ac4efabeb80c
children 7962563129c9
comparison
equal deleted inserted replaced
1494:a13581480b1f 1495:fbe40117eb21
74 ErrorCode_IncompatibleImageSize, 74 ErrorCode_IncompatibleImageSize,
75 ErrorCode_SharedLibrary, 75 ErrorCode_SharedLibrary,
76 ErrorCode_Plugin 76 ErrorCode_Plugin
77 }; 77 };
78 78
79 enum LogLevel
80 {
81 LogLevel_Error,
82 LogLevel_Warning,
83 LogLevel_Info,
84 LogLevel_Trace
85 };
86
79 87
80 /** 88 /**
81 * {summary}{The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.} 89 * {summary}{The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.}
82 **/ 90 **/
83 enum PixelFormat 91 enum PixelFormat
328 336
329 const char* EnumerationToString(Encoding encoding); 337 const char* EnumerationToString(Encoding encoding);
330 338
331 const char* EnumerationToString(PhotometricInterpretation photometric); 339 const char* EnumerationToString(PhotometricInterpretation photometric);
332 340
341 const char* EnumerationToString(LogLevel level);
342
333 Encoding StringToEncoding(const char* encoding); 343 Encoding StringToEncoding(const char* encoding);
334 344
335 ResourceType StringToResourceType(const char* type); 345 ResourceType StringToResourceType(const char* type);
336 346
337 ImageFormat StringToImageFormat(const char* format); 347 ImageFormat StringToImageFormat(const char* format);
348
349 LogLevel StringToLogLevel(const char* format);
338 350
339 unsigned int GetBytesPerPixel(PixelFormat format); 351 unsigned int GetBytesPerPixel(PixelFormat format);
340 352
341 bool GetDicomEncoding(Encoding& encoding, 353 bool GetDicomEncoding(Encoding& encoding,
342 const char* specificCharacterSet); 354 const char* specificCharacterSet);