Author Class Reference

List of all members.

Public Member Functions

bool Feed (const xmlpp::Node *node)
std::string PrettyString (bool with_email)

Public Attributes

std::string name
std::string nickname
std::string email
std::string country
std::string description

Detailed Description

Definition at line 30 of file credits_menu.cpp.


Member Function Documentation

bool Author::Feed ( const xmlpp::Node *  node  ) 

Definition at line 45 of file credits_menu.cpp.

00046 {
00047    if (!XmlReader::ReadString(node, "name", name)) return false;
00048    if (!XmlReader::ReadString(node, "description", description)) return false;
00049    return true;
00050 }

Here is the call graph for this function:

std::string Author::PrettyString ( bool  with_email  ) 

Definition at line 54 of file credits_menu.cpp.

00055 {
00056    std::ostringstream ss;
00057    ss << "* " << name;
00058    if (with_email)
00059    {
00060      ss << " <" << email << ">";
00061    }
00062    if (!nickname.empty())
00063    {
00064      ss << " aka " << nickname;
00065    }
00066    if (!country.empty())
00067    {
00068      ss << "from " << country;
00069    }
00070    ss << ": " << description;
00071    return ss.str();
00072 }


Member Data Documentation

std::string Author::country

Definition at line 36 of file credits_menu.cpp.

std::string Author::description

Definition at line 37 of file credits_menu.cpp.

std::string Author::email

Definition at line 35 of file credits_menu.cpp.

std::string Author::name

Definition at line 33 of file credits_menu.cpp.

std::string Author::nickname

Definition at line 34 of file credits_menu.cpp.


The documentation for this class was generated from the following file:
Generated on Mon Jan 1 13:34:41 2007 for Wormux by  doxygen 1.4.7