github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/include/Magick++/CoderInfo.h (about)

     1  // This may look like C code, but it is really -*- C++ -*-
     2  //
     3  // Copyright Bob Friesenhahn, 2001-2010
     4  //
     5  // CoderInfo Definition
     6  //
     7  // Container for image format support information.
     8  //
     9  
    10  #if !defined (Magick_CoderInfo_header)
    11  #define Magick_CoderInfo_header
    12  
    13  #include "Magick++/Include.h"
    14  #include <string>
    15  
    16  namespace Magick
    17  {
    18    class MagickDLLDecl CoderInfo
    19    {
    20    public:
    21  
    22      enum MatchType {
    23        AnyMatch,         // match any coder
    24        TrueMatch,        // match coder if true
    25        FalseMatch        // match coder if false
    26      };
    27  
    28      // Default constructor
    29      CoderInfo ( void );
    30  
    31      // Copy constructor
    32      CoderInfo ( const CoderInfo &coder_ );
    33  
    34      // Construct with coder name
    35      CoderInfo ( const std::string &name_ );
    36  
    37      // Destructor
    38      ~CoderInfo ( void );
    39  
    40      // Format name
    41      std::string name( void ) const;
    42  
    43      // Format description
    44      std::string description( void ) const;
    45  
    46      // Format is readable
    47      bool isReadable( void ) const;
    48  
    49      // Format is writeable
    50      bool isWritable( void ) const;
    51  
    52      // Format supports multiple frames
    53      bool isMultiFrame( void ) const;
    54  
    55      // Assignment operator
    56      CoderInfo& operator= (const CoderInfo &coder_ );
    57  
    58      //
    59      // Implemementation methods
    60      //
    61      CoderInfo ( const MagickLib::MagickInfo *magickInfo_ );
    62  
    63    private:
    64  
    65      std::string         _name;
    66      std::string         _description;
    67      bool                _isReadable;
    68      bool                _isWritable;
    69      bool                _isMultiFrame;
    70  
    71    };
    72  } // namespace Magick
    73  
    74  //
    75  // Inlines
    76  //
    77  
    78  
    79  #endif // Magick_CoderInfo_header