Main Page   Namespaces   Classes ( Hierarchy )   Functions & Members  

moFileLib::moFileInfo Struct Reference

Describes the "Header" of a .mo-File. More...

#include <moFileReader.h>

Collaboration diagram for moFileLib::moFileInfo:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::deque
< moTranslationPairInformation
moTranslationPairList
 Type for the list of all Translation-Pair-Descriptions.

Public Member Functions

 moFileInfo ()
 Constructor.

Public Attributes

int m_magicNumber
 The Magic Number, compare it to g_MagicNumber.
int m_fileVersion
 The File Version, 0 atm according to the manpage.
int m_numStrings
 Number of Strings in the .mo-file.
int m_offsetOriginal
 Offset of the Table of the Original Strings.
int m_offsetTranslation
 Offset of the Table of the Translated Strings.
int m_sizeHashtable
 Size of 1 Entry in the Hashtable.
int m_offsetHashtable
 The Offset of the Hashtable.
bool m_reversed
 Tells you if the bytes are reversed.
moTranslationPairList m_translationPairInformation
 A list containing offset and length of the strings in the file.


Detailed Description

Describes the "Header" of a .mo-File.

The File info keeps the header of a .mo-file and a list of the string-descriptions. The typedef is for the type of the string-list. The constructor ensures, that all members get a nice initial value.


Member Typedef Documentation

Type for the list of all Translation-Pair-Descriptions.


Constructor & Destructor Documentation

moFileLib::moFileInfo::moFileInfo (  )  [inline]

Constructor.


Member Data Documentation

The File Version, 0 atm according to the manpage.

The Magic Number, compare it to g_MagicNumber.

Number of Strings in the .mo-file.

The Offset of the Hashtable.

Offset of the Table of the Original Strings.

Offset of the Table of the Translated Strings.

Tells you if the bytes are reversed.

Note:
When this is true, the bytes are reversed and the Magic number is like g_MagicReversed

Size of 1 Entry in the Hashtable.

A list containing offset and length of the strings in the file.


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

Generated on 17 Jan 2009 for moFileReader by Doxygen1.5.7.1