MMDevice 70
Public Member Functions | Static Public Member Functions | List of all members
MetadataTag Class Referenceabstract

#include <ImageMetadata.h>

Inheritance diagram for MetadataTag:
MetadataArrayTag MetadataSingleTag

Public Member Functions

 MetadataTag (const char *name, const char *device, bool readOnly)
 
const std::string & GetDevice () const
 
const std::string & GetName () const
 
const std::string GetQualifiedName () const
 
bool IsReadOnly () const
 
void SetDevice (const char *device)
 
void SetName (const char *name)
 
void SetReadOnly (bool ro)
 
virtual const MetadataSingleTagToSingleTag () const
 
virtual const MetadataArrayTagToArrayTag () const
 
virtual MetadataTagClone ()=0
 
virtual std::string Serialize ()=0
 
virtual bool Restore (const char *stream)=0
 
virtual bool Restore (std::istringstream &is)=0
 

Static Public Member Functions

static std::string ReadLine (std::istringstream &is)
 

Detailed Description

Image information tags - metadata.

Member Function Documentation

◆ ToArrayTag()

virtual const MetadataArrayTag * MetadataTag::ToArrayTag ( ) const
inlinevirtual

Equivalent of dynamic_cast<MetadataArrayTag*>(this), but does not use RTTI.

See also
ToSingleTag

Reimplemented in MetadataArrayTag.

◆ ToSingleTag()

virtual const MetadataSingleTag * MetadataTag::ToSingleTag ( ) const
inlinevirtual

Equivalent of dynamic_cast<MetadataSingleTag*>(this), but does not use RTTI. This makes it safe against multiple definitions when using dynamic libraries on Linux (original cause: JVM uses dlopen with RTLD_LOCAL when loading libraries.

Reimplemented in MetadataSingleTag.


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