Public Member Functions | Private Types | Private Member Functions | Private Attributes

hud::FontMap Class Reference

Font map. More...

#include <_src_hud_font.hh>

List of all members.

Public Member Functions

 DEFINE_GetInstance (FontMap) Font GetFont(const string &fontName) const
Font GetDefaultFont (void) const
bool ParseFont (std::ifstream &conf)

Private Types

typedef std::map< string, FontFontMapType

Private Member Functions

 FontMap (void)
 ~FontMap ()

Private Attributes

CLASS_VAR FontMapmsInstance
FontMapType mFontMap
string mDefaultFontName

Detailed Description

Font map.

A map of font parameters is built at startup by reading a configuration file (.conf). Font names are mapped to the hidden parameters of the Font class.


Member Typedef Documentation

typedef std::map<string,Font> hud::FontMap::FontMapType [private]

Constructor & Destructor Documentation

hud::FontMap::FontMap ( void   )  [private]

ctor/dtor.

hud::FontMap::~FontMap (  )  [private]

Member Function Documentation

hud::FontMap::DEFINE_GetInstance ( FontMap   )  const
Font hud::FontMap::GetDefaultFont ( void   )  const

Get default font in font map.

bool hud::FontMap::ParseFont ( std::ifstream &  conf  ) 

Parse font from .conf file via C++ stream.

Precondition:
Field with "font" keyword was already read from stream.

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11