OKlibrary  0.2.1.6
OKlib::Messages Namespace Reference

Module for objects representing units of meaning. More...

Namespaces

namespace  demo
namespace  messages
namespace  Utilities
 

Components for creating standard message objects.


Classes

class  LanguageName
 Functor to translate language names into language constants. More...
class  L
 L<language>, where language is an element of Languages, is a tagging class representing this language. More...
struct  L< en_US >
struct  L< en_CA >
struct  L< en_AU >
struct  L< fr_FR >
struct  L< fr_CH >
struct  L< fr_CA >
struct  L< de_DE >
struct  L< de_AT >
struct  L< de_CH >
class  S
 S<level>, where level is an element of Strata, is a tagging class representing this level. More...
struct  S< Full >
struct  S< Extensive >
class  MessagesLines
 Basic messages class, extending MessagesBase by additionally providing virtual functions for line-start and line-end. More...
class  MessagesPrePost
 Extends MessagesLines by managing two strings for prefixing and postfixing lines. More...
class  MessagesBase
 The polymorphic base class for message classes. More...

Enumerations

enum  Languages { BOOST_PP_SEQ_ENUM = (OKLIB_LANGUAGES) }
 Constants of type int for all languages. More...
enum  Strata { BOOST_PP_SEQ_ENUM = (OKLIB_LANGUAGES) }
 Constants of type int for the levels. More...

Functions

std::ostream & operator<< (std::ostream &out, const MessagesBase &m)

Variables

const unsigned int number_of_languages = BOOST_PP_SEQ_SIZE(OKLIB_LANGUAGES)
 Number of available languages.
const char *const Locales [] = { BOOST_PP_SEQ_ENUM(OKLIB_QUOTED_SEQUENCE) }
 Array of c-strings, mapping language (indices) to names of locales.
const unsigned int number_of_levels = BOOST_PP_SEQ_SIZE(OKLIB_STRATA)

Detailed Description

Module for objects representing units of meaning.


Enumeration Type Documentation

Constants of type int for all languages.

The first member is the default language en_GB with value 0.

Enumerator:
BOOST_PP_SEQ_ENUM 

Definition at line 67 of file Languages.hpp.

Constants of type int for the levels.

Enumerated type, whose elements are named according to OKLIB_STRATA. The first member is the default level Basic with value 0.

Enumerator:
BOOST_PP_SEQ_ENUM 

Definition at line 52 of file Levels.hpp.


Function Documentation

std::ostream& OKlib::Messages::operator<< ( std::ostream &  out,
const MessagesBase &  m 
) [inline]

Definition at line 121 of file MessagesBase.hpp.

References OKlib::Messages::MessagesBase::print().


Variable Documentation

Array of c-strings, mapping language (indices) to names of locales.

Definition at line 78 of file Languages.hpp.

Referenced by OKlib::Messages::MessagesBase::set().

const unsigned int OKlib::Messages::number_of_languages = BOOST_PP_SEQ_SIZE(OKLIB_LANGUAGES)

Number of available languages.

The indices of the available languages are 0, ..., number_of_languages-1.

Definition at line 58 of file Languages.hpp.

Referenced by main().

const unsigned int OKlib::Messages::number_of_levels = BOOST_PP_SEQ_SIZE(OKLIB_STRATA)

Definition at line 42 of file Levels.hpp.

Referenced by main().