OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Translation::Storage Class Reference

#include <translation.hpp>

Collaboration diagram for Translation::Storage:

Public Member Functions

 Storage ()
 
void loadTranslationData (const Files::Collections &dataFileCollections, const std::string &esmFileName)
 
std::string translateCellName (const std::string &cellName) const
 
std::string topicID (const std::string &phrase) const
 
std::string topicStandardForm (const std::string &phrase) const
 
void setEncoder (ToUTF8::Utf8Encoder *encoder)
 
bool hasTranslation () const
 

Private Types

typedef std::map< std::string,
std::string > 
ContainerType
 

Private Member Functions

void loadData (ContainerType &container, const std::string &fileNameNoExtension, const std::string &extension, const Files::Collections &dataFileCollections)
 
void loadDataFromStream (ContainerType &container, std::istream &stream)
 

Private Attributes

ToUTF8::Utf8EncodermEncoder
 
ContainerType mCellNamesTranslations
 
ContainerType mTopicIDs
 
ContainerType mPhraseForms
 

Member Typedef Documentation

typedef std::map<std::string, std::string> Translation::Storage::ContainerType
private

Constructor & Destructor Documentation

Translation::Storage::Storage ( )

Member Function Documentation

bool Translation::Storage::hasTranslation ( ) const

Here is the caller graph for this function:

void Translation::Storage::loadData ( ContainerType container,
const std::string &  fileNameNoExtension,
const std::string &  extension,
const Files::Collections dataFileCollections 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void Translation::Storage::loadDataFromStream ( ContainerType container,
std::istream &  stream 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void Translation::Storage::loadTranslationData ( const Files::Collections dataFileCollections,
const std::string &  esmFileName 
)

Here is the call graph for this function:

void Translation::Storage::setEncoder ( ToUTF8::Utf8Encoder encoder)
std::string Translation::Storage::topicID ( const std::string &  phrase) const

Here is the call graph for this function:

std::string Translation::Storage::topicStandardForm ( const std::string &  phrase) const

Here is the caller graph for this function:

std::string Translation::Storage::translateCellName ( const std::string &  cellName) const

Here is the caller graph for this function:

Member Data Documentation

ContainerType Translation::Storage::mCellNamesTranslations
private
ToUTF8::Utf8Encoder* Translation::Storage::mEncoder
private
ContainerType Translation::Storage::mPhraseForms
private
ContainerType Translation::Storage::mTopicIDs
private

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