ImageMetaData Class Reference

#include <metadata.h>

List of all members.

Detailed Description

Image meta data.

Definition at line 354 of file metadata.h.

Public Member Functions

 ImageMetaData ()
 Default constructor.
 ImageMetaData (std::istream &i)
 Construct & load.
void setFormat (uint32_t format)
void setWidth (uint32_t width)
void setHeight (uint32_t height)
void setCreated (uint32_t created)
void setComment (const char *comment)
uint32_t getFormat () const
uint32_t getWidth () const
uint32_t getHeight () const
std::string getComment () const
uint32_t getCreated () const

Private Member Functions

 ~ImageMetaData ()
 ImageMetaData (const ImageMetaData &)
 Copying forbidden.
ImageMetaDataoperator= (const ImageMetaData &)
 Assign forbidden.

Private Attributes

uint32_t m_format
 Format, e.g png/jpg etc.
uint32_t m_width
 Image width.
uint32_t m_height
 Image height.
char * m_comment
 Image comment.
uint32_t m_created
 Image creation date.


class MetaData
std::ostream & operator<< (std::ostream &o, const ImageMetaData &imd)
 Output operator for streams.
void test_imagedata ()
 In testsuite.

Constructor & Destructor Documentation

ImageMetaData::ImageMetaData  ) 

Default constructor.

Definition at line 588 of file metadata.cpp.

ImageMetaData::ImageMetaData std::istream &  i  ) 

Construct & load.

Definition at line 593 of file metadata.cpp.

References logError(), logTrace(), logWarning(), m_comment, m_created, m_format, m_height, m_width, CGComm::OP_IMD_COMMENT, CGComm::OP_IMD_DATE, CGComm::OP_IMD_FORMAT, CGComm::OP_IMD_HEIGHT, CGComm::OP_IMD_WIDTH, setComment(), and TRACE_MD.

Here is the call graph for this function:

ImageMetaData::~ImageMetaData  )  [inline, private]

Definition at line 385 of file metadata.h.

ImageMetaData::ImageMetaData const ImageMetaData  )  [private]

Copying forbidden.

Member Function Documentation

std::string ImageMetaData::getComment  )  const [inline]

Definition at line 379 of file metadata.h.

uint32_t ImageMetaData::getCreated  )  const [inline]

Definition at line 380 of file metadata.h.

uint32_t ImageMetaData::getFormat  )  const [inline]

Definition at line 376 of file metadata.h.

uint32_t ImageMetaData::getHeight  )  const [inline]

Definition at line 378 of file metadata.h.

uint32_t ImageMetaData::getWidth  )  const [inline]

Definition at line 377 of file metadata.h.

ImageMetaData& ImageMetaData::operator= const ImageMetaData  )  [private]

Assign forbidden.

void ImageMetaData::setComment const char *  comment  )  [inline]

Definition at line 367 of file metadata.h.

References Utils::copyString().

Referenced by ImageMetaData().

Here is the call graph for this function:

void ImageMetaData::setCreated uint32_t  created  )  [inline]

Definition at line 366 of file metadata.h.

void ImageMetaData::setFormat uint32_t  format  )  [inline]

Definition at line 363 of file metadata.h.

void ImageMetaData::setHeight uint32_t  height  )  [inline]

Definition at line 365 of file metadata.h.

void ImageMetaData::setWidth uint32_t  width  )  [inline]

Definition at line 364 of file metadata.h.

Friends And Related Function Documentation

friend class MetaData [friend]

Definition at line 384 of file metadata.h.

std::ostream& operator<< std::ostream &  o,
const ImageMetaData imd

Output operator for streams.

Definition at line 667 of file metadata.cpp.

void test_imagedata  )  [friend]

In testsuite.

Member Data Documentation

char* ImageMetaData::m_comment [private]

Image comment.

Definition at line 394 of file metadata.h.

Referenced by ImageMetaData().

uint32_t ImageMetaData::m_created [private]

Image creation date.

Definition at line 395 of file metadata.h.

Referenced by ImageMetaData().

uint32_t ImageMetaData::m_format [private]

Format, e.g png/jpg etc.

Definition at line 391 of file metadata.h.

Referenced by ImageMetaData().

uint32_t ImageMetaData::m_height [private]

Image height.

Definition at line 393 of file metadata.h.

Referenced by ImageMetaData().

uint32_t ImageMetaData::m_width [private]

Image width.

Definition at line 392 of file metadata.h.

Referenced by ImageMetaData().

The documentation for this class was generated from the following files: