libCZI
Reading and Writing CZI documents made easy
|
#include <libCZI_Site.h>
Public Member Functions | |
virtual bool | IsEnabled (int logLevel)=0 |
virtual void | Log (int level, const char *szMsg)=0 |
virtual std::shared_ptr< IDecoder > | GetDecoder (ImageDecoderType type, const char *arguments)=0 |
virtual std::shared_ptr< libCZI::IBitmapData > | CreateBitmap (libCZI::PixelType pixeltype, std::uint32_t width, std::uint32_t height, std::uint32_t stride=0, std::uint32_t extraRows=0, std::uint32_t extraColumns=0)=0 |
void | Log (int level, const std::string &str) |
void | Log (int level, std::stringstream &ss) |
Interface for the Site-object. It is intented for customizing the library (by injecting a custom implementation of this interface).
|
pure virtual |
Creates a bitmap object. All internal bitmap allocations are done with this method, and overloading this method allows to use an externally controlled memory management to be injected.
pixeltype | The pixeltype of the newly allocated bitmap. |
width | The width of the newly allocated bitmap. |
height | The height of the newly allocated bitmap. |
stride | The stride of the newly allocated bitmap. If <= 0, then the method may choose an appropriate stride on its own. If a stride >0 is given here, then we expect that the newly created bitmap adheres to it. |
extraRows | The extra rows (not currently used, will always be 0). |
extraColumns | The extra columns (not currently used, will always be 0). |
|
pure virtual |
Gets a decoder object.
type | The type. |
arguments | The arguments. |
|
pure virtual |
Query if the specified logging level is enabled. In the case that constructing the message to be logged takes a significant amount of resources (i. e. time or memory), this method should be called before in order to determine whether the output is required at all. This also means that this method may be called very frequently, so implementors should take care that it executes reasonably fast.
logLevel | The logging level. |
|
pure virtual |
Output the specified string at the specified logging level.
level | The logging level. |
szMsg | The message to be logged. |
|
inline |
Output the specified string at the specified logging level.
level | The level. |
str | The string. |
|
inline |
Output the specified stringstream object at the specified logging level.
level | The level. | |
[in] | ss | The stringstream object. |