Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QExifValue Class Reference
[QtBaseModule]

The QExifValue class represents data types found in EXIF image headers. More...

    #include <QExifValue>

This class is under development and is subject to change.

Public Types

  • enum TextEncoding { NoEncoding, AsciiEncoding, JisEncoding, UnicodeEncoding, UndefinedEncoding }
  • enum Type { Byte, Ascii, Short, Long, ..., SignedRational }

Public Functions


Detailed Description

The QExifValue class represents data types found in EXIF image headers.

Tag values in EXIF headers are stored as arrays of a limited number of data types. QExifValue encapsulates a union of these types and provides conversions to and from appropriate Qt types.

String encoding

Most tags with string values in EXIF headers are ASCII encoded and have the Ascii value type, but some tags allow other encodings. In this case the value type is Undefined and the encoding of the text is given by the encoding function().

Date-time values

Date-time values in EXIF headers are stored in ASCII encoded strings of the form yyyy:MM:dd HH:mm:ss. Constructing a QExifValue from a QDateTime will perform this conversion and likewise an appropriately formed QExifValue can be converted to a QDateTime using the toDateTime() function.

See also QExifImageHeader.


Member Type Documentation

enum QExifValue::TextEncoding

Enumerates the encodings of text strings in EXIF values of Undefined type.

ConstantValueDescription
QExifValue::NoEncoding0An ASCII string of Ascii type.
QExifValue::AsciiEncoding1An ASCII string of Undefined type.
QExifValue::JisEncoding2A JIS X208-1990 string of Undefined type.
QExifValue::UnicodeEncoding3A Unicode string of Undefined type.
QExifValue::UndefinedEncoding4An unspecified string encoding of Undefined type. Assumed to be the local 8-bit encoding.

enum QExifValue::Type

Enumerates the possible types of EXIF values.

ConstantValueDescription
QExifValue::Byte1An unsigned 8 bit integer.
QExifValue::Ascii2A null terminated ascii string.
QExifValue::Short3An unsigned 16 bit integer.
QExifValue::Long4An unsigned 32 bit integer.
QExifValue::Rational5Two unsigned 32 bit integers, representing a the numerator and denominator of an unsigned rational number.
QExifValue::Undefined7An array of 8 bit integers.
QExifValue::SignedLong9A signed 32 bit integer.
QExifValue::SignedRational10Two signed 32 bit integers representing the numerator and denominator of a signed rational number.


Member Function Documentation

QExifValue::QExifValue ()

Constructs a null QExifValue.

QExifValue::QExifValue ( quint8 value )

Constructs a QExifValue with a value of type Byte.

QExifValue::QExifValue ( const QVector<quint8> & values )

Constructs a QExifValue with an array of values of type Byte.

QExifValue::QExifValue ( const QString & value, TextEncoding encoding = NoEncoding )

Constructs a QExifValue with a value of type Ascii or Undefined.

If the encoding is NoEncoding the value will be of type Ascii, otherwise it will be Undefined and the string encoded using the given encoding.

QExifValue::QExifValue ( quint16 value )

Constructs a QExifValue with a value of type Short.

QExifValue::QExifValue ( const QVector<quint16> & values )

Constructs a QExifValue with an array of values of type Short.

QExifValue::QExifValue ( quint32 value )

Constructs a QExifValue with a value of type Long.

QExifValue::QExifValue ( const QVector<quint32> & values )

Constructs a QExifValue with an array of values of type Long.

QExifValue::QExifValue ( const QExifURational & value )

Constructs a QExifValue with a value of type Rational.

QExifValue::QExifValue ( const QVector<QExifURational> & values )

Constructs a QExifValue with an array of values of type Rational.

QExifValue::QExifValue ( const QByteArray & value )

Constructs a QExifValue with a value of type Undefined.

QExifValue::QExifValue ( qint32 value )

Constructs a QExifValue with a value of type SignedLong.

QExifValue::QExifValue ( const QVector<qint32> & values )

Constructs a QExifValue with an array of values of type SignedLong.

QExifValue::QExifValue ( const QExifSRational & value )

Constructs a QExifValue with a value of type SignedRational.

QExifValue::QExifValue ( const QVector<QExifSRational> & values )

Constructs a QExifValue with an array of values of type SignedRational.

QExifValue::QExifValue ( const QDateTime & value )

Constructs a QExifValue of type Ascii with an ascii string formatted from a date-time value.

Date-times are stored as strings in the format yyyy:MM:dd HH:mm:ss.

QExifValue::QExifValue ( const QExifValue & other )

Constructs a copy of the QExifValue other.

QExifValue::~QExifValue ()

Destroys a QExifValue.

int QExifValue::count () const

Returns the number of elements in a QExifValue. For ascii strings this is the length of the string including the terminating null.

TextEncoding QExifValue::encoding () const

Returns the encoding of strings stored in Undefined values.

bool QExifValue::isNull () const

Returns true if a QExifValue has a null value and false otherwise.

quint8 QExifValue::toByte () const

Returns the value of a single element QExifValue of type Byte.

QByteArray QExifValue::toByteArray () const

Returns the value of a QExifValue of type Undefined.

QVector<quint8> QExifValue::toByteVector () const

Returns the value of a multiple element QExifValue of type Byte.

QDateTime QExifValue::toDateTime () const

Returns the value of QExifValue storing a date-time.

Date-times are stored as ascii strings in the format yyyy:MM:dd HH:mm:ss.

quint32 QExifValue::toLong () const

Returns the value of a single element QExifValue of type Byte, Short, Long, or SignedLong.

QVector<quint32> QExifValue::toLongVector () const

Returns the value of a multiple element QExifValue of type Long.

QExifURational QExifValue::toRational () const

Returns the value of a multiple element QExifValue of type Rational.

QVector<QExifURational> QExifValue::toRationalVector () const

Returns the value of a multiple element QExifValue of type Rational.

quint16 QExifValue::toShort () const

Returns the value of a single element QExifValue of type Byte or Short.

QVector<quint16> QExifValue::toShortVector () const

Returns the value of a single element QExifValue of type Short.

qint32 QExifValue::toSignedLong () const

Returns the value of a single element QExifValue of type Byte, Short, Long, or SignedLong.

QVector<qint32> QExifValue::toSignedLongVector () const

Returns the value of a multiple element QExifValue of type SignedLong.

QExifSRational QExifValue::toSignedRational () const

Returns the value of a single element QExifValue of type SignedRational.

QVector<QExifSRational> QExifValue::toSignedRationalVector () const

Returns the value of a multiple element QExifValue of type SignedRational.

QString QExifValue::toString () const

Returns the value of a QExifValue of type Ascii.

int QExifValue::type () const

Returns the type of a QExifValue.

QExifValue & QExifValue::operator= ( const QExifValue & other )

Assigns the value of other to a QExifValue.

bool QExifValue::operator== ( const QExifValue & other ) const

Compares a QExifValue to other. Returns true if they are the same value and false otherwise.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 73
  2. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 27
  3. Une nouvelle ère d'IHM 3D pour les automobiles, un concept proposé par Digia et implémenté avec Qt 3
  4. Qt Creator 2.5 est sorti en beta, l'EDI supporte maintenant plus de fonctionnalités de C++11 2
  5. Vingt sociétés montrent leurs décodeurs basés sur Qt au IPTV World Forum, en en exploitant diverses facettes (déclaratif, Web, widgets) 0
  6. PySide devient un add-on Qt et rejoint le Qt Project et le modèle d'open gouvernance 1
  7. Thread travailleur avec Qt en utilisant les signaux et les slots, un article de Christophe Dumez traduit par Thibaut Cuvelier 1
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 102
  2. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 51
  3. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 73
  4. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 27
  5. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 11
Page suivante
  1. Linus Torvalds : le "C++ est un langage horrible", en justifiant le choix du C pour le système de gestion de version Git 100
  2. Comment prendre en compte l'utilisateur dans vos applications ? Pour un développeur, « 90 % des utilisateurs sont des idiots » 229
  3. Quel est LE livre que tout développeur doit lire absolument ? Celui qui vous a le plus marqué et inspiré 96
  4. Apple cède et s'engage à payer des droits à Nokia, le conflit des brevets entre les deux firmes s'achève 158
  5. Nokia porte à nouveau plainte contre Apple pour violation de sept nouveaux brevets 158
  6. Quel est le code dont vous êtes le plus fier ? Pourquoi l'avez-vous écrit ? Et pourquoi vous a-t-il donné autant de satisfaction ? 83
  7. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 101
Page suivante

Le Qt Labs au hasard

Logo

Chaînes et SIMD, la revanche (de Latin1)

Les Qt Labs sont les laboratoires des développeurs de Qt, où ils peuvent partager des impressions sur le framework, son utilisation, ce que pourrait être son futur. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtextended4.4
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web