www/api/Magick++/CoderInfo_8h_source.html
| Magick++ 7.1.0 |
CoderInfo.h
Go to the documentation of this file.
1 // This may look like C code, but it is really -*- C++ -*-
2 //
3 // Copyright Bob Friesenhahn, 2001, 2002
4 //
5 // Copyright @ 2013 ImageMagick Studio LLC, a non-profit organization
6 // dedicated to making software imaging solutions freely available.
7 //
8 // CoderInfo Definition
9 //
10 // Container for image format support information.
11 //
12
13 #if !defined (Magick_CoderInfo_header)
14 #define Magick_CoderInfo_header 1
15
16 #include "Magick++/Include.h"
17 #include <string>
18
19 namespace Magick
20 {
21class MagickPPExport CoderInfo
22 {
23public:
24
26AnyMatch, // match any coder
27TrueMatch, // match coder if true
28 FalseMatch // match coder if false
29 };
30
31// Default constructor
32CoderInfo(void);
33
34// Copy constructor
35CoderInfo(const CoderInfo &coder_);
36
37// Construct with coder name
38CoderInfo(const std::string &name_);
39
40// Destructor
41 ~CoderInfo(void);
42
43// Assignment operator
44CoderInfo& operator=(const CoderInfo &coder_);
45
46// Format can read multi-threaded
47bool canReadMultithreaded(void) const;
48
49// Format can write multi-threaded
50bool canWriteMultithreaded(void) const;
51
52// Format description
53 std::string description(void) const;
54
55// Format supports multiple frames
56bool isMultiFrame(void) const;
57
58// Format is readable
59bool isReadable(void) const;
60
61// Format is writeable
62bool isWritable(void) const;
63
64// Format mime type
65 std::string mimeType(void) const;
66
67// Name of the module
68 std::string module(void) const;
69
70// Format name
71 std::string name(void) const;
72
73// Unregisters this coder
74bool unregister(void) const;
75
76private:
77bool _decoderThreadSupport;
78 std::string _description;
79bool _encoderThreadSupport;
80bool _isMultiFrame;
81bool _isReadable;
82bool _isWritable;
83 std::string _mimeType;
84 std::string _module;
85 std::string _name;
86 };
87
88 } // namespace Magick
89
90 #endif // Magick_CoderInfo_header
#define MagickPPExport
Definition: Include.h:297
Definition: CoderInfo.h:26
Definition: CoderInfo.h:27
Definition: Blob.h:17
MatchType
Definition: CoderInfo.h:25
Definition: CoderInfo.h:21