bpp-core  2.1.0
bpp::AbstractFontManager< CodeType > Class Template Reference

#include <Bpp/Graphics/Font/FontManager.h>

+ Inheritance diagram for bpp::AbstractFontManager< CodeType >:
+ Collaboration diagram for bpp::AbstractFontManager< CodeType >:

List of all members.

Public Member Functions

 AbstractFontManager ()
CodeType getCode (const Font &font) const throw (Exception)
const FontgetFont (int &code) const throw (Exception)
std::vector< CodeType > getCodes () const
std::vector< FontgetFonts () const
size_t getNumberOfFonts () const
virtual const FontgetFont (CodeType &code) const =0 throw (Exception)

Protected Member Functions

void registerFont_ (const Font &font, int code)

Private Attributes

std::vector< Fontfonts_
std::vector< CodeType > codes_

Detailed Description

template<class CodeType>
class bpp::AbstractFontManager< CodeType >

Definition at line 99 of file FontManager.h.


Constructor & Destructor Documentation

template<class CodeType>
bpp::AbstractFontManager< CodeType >::AbstractFontManager ( ) [inline]

Definition at line 107 of file FontManager.h.


Member Function Documentation

template<class CodeType>
CodeType bpp::AbstractFontManager< CodeType >::getCode ( const Font font) const throw (Exception) [inline, virtual]
Parameters:
fontThe font to look for.
Returns:
The code associated to a given font.

Implements bpp::FontManager< CodeType >.

Definition at line 110 of file FontManager.h.

template<class CodeType>
std::vector<CodeType> bpp::AbstractFontManager< CodeType >::getCodes ( ) const [inline, virtual]
Returns:
All valid codes.

Implements bpp::FontManager< CodeType >.

Definition at line 133 of file FontManager.h.

template<class CodeType>
virtual const Font& bpp::FontManager< CodeType >::getFont ( CodeType &  code) const throw (Exception) [pure virtual, inherited]
Parameters:
codeThe code to look for.
Returns:
The font associated to a given code.
Exceptions:
exceptionif the code is not valid.

Implemented in bpp::AbstractFontManager< int >.

template<class CodeType>
const Font& bpp::AbstractFontManager< CodeType >::getFont ( int &  code) const throw (Exception) [inline]

Definition at line 122 of file FontManager.h.

template<class CodeType>
std::vector<Font> bpp::AbstractFontManager< CodeType >::getFonts ( ) const [inline, virtual]
Returns:
All available fonts.

Implements bpp::FontManager< CodeType >.

Definition at line 134 of file FontManager.h.

template<class CodeType>
size_t bpp::AbstractFontManager< CodeType >::getNumberOfFonts ( ) const [inline, virtual]
Returns:
The total number of fonts available.

Implements bpp::FontManager< CodeType >.

Definition at line 135 of file FontManager.h.

template<class CodeType>
void bpp::AbstractFontManager< CodeType >::registerFont_ ( const Font font,
int  code 
) [inline, protected]

Definition at line 138 of file FontManager.h.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends