Powered by Pair ImageMagick logo
Image Magick
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

Magick::CoderInfo Class Reference

#include <CoderInfo.h>

Collaboration diagram for Magick::CoderInfo:

Collaboration graph
[legend]

Public Types

enum  MatchType { AnyMatch, TrueMatch, FalseMatch }
enum  MatchType { AnyMatch, TrueMatch, FalseMatch }

Public Member Functions

 CoderInfo (const std::string &name_)
 ~CoderInfo (void)
std::string name (void) const
std::string description (void) const
bool isReadable (void) const
bool isWritable (void) const
bool isMultiFrame (void) const
 CoderInfo (const MagickLib::MagickInfo *magickInfo_)
 CoderInfo (const std::string &name_)
 ~CoderInfo (void)
std::string name (void) const
std::string description (void) const
bool isReadable (void) const
bool isWritable (void) const
bool isMultiFrame (void) const
 CoderInfo (const MagickLib::MagickInfo *magickInfo_)

Private Member Functions

 CoderInfo (void)
CoderInfooperator= (const CoderInfo &coder_)
 CoderInfo (void)
CoderInfooperator= (const CoderInfo &coder_)

Private Attributes

std::string _name
std::string _description
bool _isReadable
bool _isWritable
bool _isMultiFrame

Member Enumeration Documentation

enum Magick::CoderInfo::MatchType
 

Enumeration values:
AnyMatch 
TrueMatch 
FalseMatch 

Definition at line 22 of file CoderInfo.h.

00022 { 00023 AnyMatch, // match any coder 00024 TrueMatch, // match coder if true 00025 FalseMatch // match coder if false 00026 };

enum Magick::CoderInfo::MatchType
 

Enumeration values:
AnyMatch 
TrueMatch 
FalseMatch 

Definition at line 22 of file CoderInfo.h.

00022 { 00023 AnyMatch, // match any coder 00024 TrueMatch, // match coder if true 00025 FalseMatch // match coder if false 00026 };


Constructor & Destructor Documentation

Magick::CoderInfo::CoderInfo const std::string &  name_  ) 
 

Definition at line 16 of file CoderInfo.cpp.

References _description, _isMultiFrame, _isReadable, _isWritable, _name, ExceptionInfo, GetExceptionInfo(), GetMagickInfo(), OptionError, Magick::throwException(), and Magick::throwExceptionExplicit().

00017 : _name(), 00018 _description(), 00019 _isReadable(false), 00020 _isWritable(false), 00021 _isMultiFrame(false) 00022 { 00023 ExceptionInfo exceptionInfo; 00024 GetExceptionInfo( &exceptionInfo ); 00025 const Magick::MagickInfo *magickInfo = GetMagickInfo( name_.c_str(), &exceptionInfo ); 00026 throwException( exceptionInfo ); 00027 if( magickInfo == 0 ) 00028 { 00029 throwExceptionExplicit(OptionError, "Coder not found", name_.c_str() ); 00030 } 00031 else 00032 { 00033 _name = string(magickInfo->name); 00034 _description = string(magickInfo->description); 00035 _isReadable = ((magickInfo->decoder == 0) ? false : true); 00036 _isWritable = ((magickInfo->encoder == 0) ? false : true); 00037 _isMultiFrame = ((magickInfo->adjoin == 0) ? false : true); 00038 } 00039 }

Here is the call graph for this function:

Magick::CoderInfo::~CoderInfo void   ) 
 

Definition at line 41 of file CoderInfo.cpp.

00042 { 00043 // Nothing to do 00044 }

Magick::CoderInfo::CoderInfo const MagickLib::MagickInfo magickInfo_  ) 
 

Definition at line 77 of file CoderInfo.cpp.

References name.

00078 : _name(string(magickInfo_->name ? magickInfo_->name : "")), 00079 _description(string(magickInfo_->description ? magickInfo_->description : "")), 00080 _isReadable(magickInfo_->decoder ? true : false), 00081 _isWritable(magickInfo_->encoder ? true : false), 00082 _isMultiFrame(magickInfo_->adjoin ? true : false) 00083 { 00084 // Nothing more to do 00085 }

Magick::CoderInfo::CoderInfo void   )  [private]
 

Magick::CoderInfo::CoderInfo const std::string &  name_  ) 
 

Magick::CoderInfo::~CoderInfo void   ) 
 

Magick::CoderInfo::CoderInfo const MagickLib::MagickInfo magickInfo_  ) 
 

Magick::CoderInfo::CoderInfo void   )  [private]
 


Member Function Documentation

std::string Magick::CoderInfo::description void   )  const
 

std::string Magick::CoderInfo::description void   )  const
 

Definition at line 53 of file CoderInfo.cpp.

References _description.

00054 { 00055 return _description; 00056 }

bool Magick::CoderInfo::isMultiFrame void   )  const
 

bool Magick::CoderInfo::isMultiFrame void   )  const
 

Definition at line 71 of file CoderInfo.cpp.

References _isMultiFrame.

Referenced by Magick::coderInfoList().

00072 { 00073 return _isMultiFrame; 00074 }

bool Magick::CoderInfo::isReadable void   )  const
 

bool Magick::CoderInfo::isReadable void   )  const
 

Definition at line 59 of file CoderInfo.cpp.

References _isReadable.

Referenced by Magick::coderInfoList().

00060 { 00061 return _isReadable; 00062 }

bool Magick::CoderInfo::isWritable void   )  const
 

bool Magick::CoderInfo::isWritable void   )  const
 

Definition at line 65 of file CoderInfo.cpp.

References _isWritable.

Referenced by Magick::coderInfoList().

00066 { 00067 return _isWritable; 00068 }

std::string Magick::CoderInfo::name void   )  const
 

std::string Magick::CoderInfo::name void   )  const
 

Definition at line 47 of file CoderInfo.cpp.

References _name.

00048 { 00049 return _name; 00050 }

CoderInfo& Magick::CoderInfo::operator= const CoderInfo coder_  )  [private]
 

CoderInfo& Magick::CoderInfo::operator= const CoderInfo coder_  )  [private]
 


Field Documentation

std::string Magick::CoderInfo::_description [private]
 

Definition at line 63 of file CoderInfo.h.

Referenced by CoderInfo(), and description().

bool Magick::CoderInfo::_isMultiFrame [private]
 

Definition at line 66 of file CoderInfo.h.

Referenced by CoderInfo(), and isMultiFrame().

bool Magick::CoderInfo::_isReadable [private]
 

Definition at line 64 of file CoderInfo.h.

Referenced by CoderInfo(), and isReadable().

bool Magick::CoderInfo::_isWritable [private]
 

Definition at line 65 of file CoderInfo.h.

Referenced by CoderInfo(), and isWritable().

std::string Magick::CoderInfo::_name [private]
 

Definition at line 62 of file CoderInfo.h.

Referenced by CoderInfo(), and name().


The documentation for this class was generated from the following files:
Generated on Mon Oct 25 13:47:12 2004 for ImageMagick by doxygen 1.3.7
ImageMagick Copyright © 2004, ImageMagick Studio LLC