zypp::TranslatedText::Impl Struct Reference

TranslatedText implementation. More...

List of all members.

Public Member Functions

 Impl ()
 Impl (const std::string &text, const Locale &lang)
 Impl (const std::list< std::string > &text, const Locale &lang)
bool empty () const
std::string text (const Locale &lang=Locale()) const
std::set< Localelocales () const
void setText (const std::string &text, const Locale &lang)
void setText (const std::list< std::string > &text, const Locale &lang)
Locale detectLanguage () const

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl.

Private Member Functions

Implclone () const
 clone for RWCOW_pointer

Private Attributes

std::map< Locale, std::string > translations

Friends

ImplrwcowClone (const Impl *rhs)


Detailed Description

TranslatedText implementation.

Definition at line 32 of file TranslatedText.cc.


Constructor & Destructor Documentation

zypp::TranslatedText::Impl::Impl  )  [inline]
 

Definition at line 34 of file TranslatedText.cc.

zypp::TranslatedText::Impl::Impl const std::string &  text,
const Locale lang
[inline]
 

Definition at line 37 of file TranslatedText.cc.

References setText().

zypp::TranslatedText::Impl::Impl const std::list< std::string > &  text,
const Locale lang
[inline]
 

Definition at line 40 of file TranslatedText.cc.

References setText().


Member Function Documentation

bool zypp::TranslatedText::Impl::empty  )  const [inline]
 

Definition at line 43 of file TranslatedText.cc.

References translations.

Referenced by text().

std::string zypp::TranslatedText::Impl::text const Locale lang = Locale()  )  const [inline]
 

Definition at line 48 of file TranslatedText.cc.

References empty(), and translations.

std::set<Locale> zypp::TranslatedText::Impl::locales  )  const [inline]
 

Definition at line 89 of file TranslatedText.cc.

References translations.

void zypp::TranslatedText::Impl::setText const std::string &  text,
const Locale lang
[inline]
 

Definition at line 99 of file TranslatedText.cc.

Referenced by Impl().

void zypp::TranslatedText::Impl::setText const std::list< std::string > &  text,
const Locale lang
[inline]
 

Definition at line 102 of file TranslatedText.cc.

References zypp::str::join().

Locale zypp::TranslatedText::Impl::detectLanguage  )  const [inline]
 

Todo:
Do it by accessing the global ZYpp.

Definition at line 106 of file TranslatedText.cc.

static shared_ptr<Impl> zypp::TranslatedText::Impl::nullimpl  )  [inline, static]
 

Offer default Impl.

Definition at line 116 of file TranslatedText.cc.

Impl* zypp::TranslatedText::Impl::clone  )  const [inline, private]
 

clone for RWCOW_pointer

Definition at line 125 of file TranslatedText.cc.


Friends And Related Function Documentation

Impl* rwcowClone const Impl rhs  )  [friend]
 


Member Data Documentation

std::map<Locale, std::string> zypp::TranslatedText::Impl::translations [mutable, private]
 

Definition at line 112 of file TranslatedText.cc.

Referenced by empty(), locales(), and text().


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:31 2006 for zypp by  doxygen 1.4.6