Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc Namespace Reference

The primary namespace for the Xfce Foundation Classes. More...

Classes

GetText Methods

IntegerObject equality operators

Smart pointer C++-style casting functions

String i/o stream operators

StringIterator comparison operators

String concatenation operators

String comparison operators


Detailed Description

The primary namespace for the Xfce Foundation Classes.

Function Documentation

const char* _ const String &  str,
const char *  domain
 

Convenient wrapper for GNU dgettext.

Parameters:
str A String to be passed to dgettext().
domain The name of translation domain; will always be a string literal.
Returns:
The translation of str if it's available in domain.
GNU gettext does two things. First, it marks a string as translable so xgettext() will find it when it scans your sources. The second thing it does is actually return the translated string. If no translation of str is available the str itself is returned. Libraries must specify the domain because the global domain is reserved for use by applications. Libraries use this method instead of defining a _ macro that calls dgettext(). When you run xgettext() don't forget to specify the '--keyword=_' option. This option tells xgettext that translatable strings are marked with an underscore instead of the word gettext.

const char* _ const String &  str  ) 
 

Convenient wrapper for GNU gettext.

Parameters:
str A String to be passed to gettext().
Returns:
The translation of str if it's available in the current domain.
GNU gettext does two things. First, it marks a string as translable so xgettext() will find it when it scans your sources. The second thing it does is actually return the translated string. If no translation of str is available the str itself is returned. Applications should use this method instead of defining a _ macro that calls gettext(). When you run xgettext() don't forget to specify the '--keyword=_' option. This option tells xgettext that translatable strings are marked with an underscore instead of the word gettext.

template<typename To, typename From>
Pointer<To> cast_const const Pointer< From > &  from  )  [inline]
 

Removes the const qualifier from a managed const dumb pointer.

Parameters:
from A Pointer that manages a const dumb pointer.
Returns:
A new Pointer that manages the non-const dumb pointer.
Calls const_cast on the dumb pointer and returns the non-const pointer as a new Pointer.

template<typename To, typename From>
Pointer<To> cast_dynamic const Pointer< From > &  from  )  [inline]
 

Casts a managed polymophic dumb pointer down or across its inheritance heirarchy.

Parameters:
from A Pointer managing a polymophic dumb pointer of type From.
Returns:
A new Pointer managing the dumb pointer as a base or sibling pointer of type To.
Calls dynmaic_cast to safely cast a managed polymophic dumb pointer of type From to a base, derived or sibling class pointer of type To.

template<typename To, typename From>
Pointer<To> cast_static const Pointer< From > &  from  )  [inline]
 

Casts a managed dumb pointer to a pointer to a related type.

Parameters:
from A Pointer managing a dumb pointer of type From.
Returns:
A new Pointer managing the dumb pointer as a pointer of type To.
Calls static_cast to cast a dumb pointer of type From to a pointer of type To.

template<typename IntegerType>
bool operator!= IntegerType  lhs,
const IntegerObject< IntegerType > &  rhs
[inline]
 

Inequality operator.

Parameters:
lhs A value of type IntegerType.
rhs An IntegerObject.
Returns:
true if the value of rhs is equal to lhs.

template<typename IntegerType>
bool operator!= const IntegerObject< IntegerType > &  lhs,
IntegerType  rhs
[inline]
 

Inequality operator.

Parameters:
lhs An IntegerObject.
rhs A value of type IntegerType.
Returns:
true if the value of lhs is equal to rhs.

template<typename IntegerType>
bool operator== IntegerType  lhs,
const IntegerObject< IntegerType > &  rhs
[inline]
 

Equality operator.

Parameters:
lhs A value of type IntegerType.
rhs An IntegerObject.
Returns:
true if the value of rhs is equal to lhs.

template<typename IntegerType>
bool operator== const IntegerObject< IntegerType > &  lhs,
IntegerType  rhs
[inline]
 

Equality operator.

Parameters:
lhs An IntegerObject.
rhs A value of type IntegerType.
Returns:
true if the value of lhs is equal to rhs.
Xfce Foundation Classes


Copyright © 2004-2005 The XFC Development Team XFC 4.3