MofileReader
moFileInfo Struct Reference

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

#include <moFileReader.hpp>

+ Collaboration diagram for moFileInfo:

Public Types

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

Public Member Functions

 moFileInfo ()
 Constructor. More...
 

Public Attributes

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

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.

Definition at line 232 of file moFileReader.hpp.

Member Typedef Documentation

◆ moTranslationPairList

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

Definition at line 235 of file moFileReader.hpp.

Constructor & Destructor Documentation

◆ moFileInfo()

moFileInfo::moFileInfo ( )
inline

Constructor.

Definition at line 238 of file moFileReader.hpp.

Member Data Documentation

◆ m_fileVersion

int moFileInfo::m_fileVersion

The File Version, 0 atm according to the manpage.

Definition at line 248 of file moFileReader.hpp.

◆ m_magicNumber

int moFileInfo::m_magicNumber

The Magic Number, compare it to g_MagicNumber.

Definition at line 245 of file moFileReader.hpp.

◆ m_numStrings

int moFileInfo::m_numStrings

Number of Strings in the .mo-file.

Definition at line 251 of file moFileReader.hpp.

◆ m_offsetHashtable

int moFileInfo::m_offsetHashtable

The Offset of the Hashtable.

Definition at line 263 of file moFileReader.hpp.

◆ m_offsetOriginal

int moFileInfo::m_offsetOriginal

Offset of the Table of the Original Strings.

Definition at line 254 of file moFileReader.hpp.

◆ m_offsetTranslation

int moFileInfo::m_offsetTranslation

Offset of the Table of the Translated Strings.

Definition at line 257 of file moFileReader.hpp.

◆ m_reversed

bool moFileInfo::m_reversed

Tells you if the bytes are reversed.

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

Definition at line 268 of file moFileReader.hpp.

◆ m_sizeHashtable

int moFileInfo::m_sizeHashtable

Size of 1 Entry in the Hashtable.

Definition at line 260 of file moFileReader.hpp.

◆ m_translationPairInformation

moTranslationPairList moFileInfo::m_translationPairInformation

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

Definition at line 271 of file moFileReader.hpp.


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