Public Types | Public Member Functions
Tonido::Util::PoLoader Class Reference

Loads and parses a single po file. More...

List of all members.

Public Types

typedef boost::shared_ptr
< PoLoader
SharedPtr

Public Member Functions

 PoLoader ()
 Ctor.
 ~PoLoader ()
 Dtor.
bool load (std::istream &a_poFileDataStr)
 Loads a Po file input stream.
std::string getTranslation (const std::string &a_original)
 Gets translation string, given original string.
std::string getTranslationXML ()
 Get translation strings in XML.
bool isValid ()
 Returns whether the PoLoader has loaded a poFile.
void setTag (const std::string &a_tag)
 Sets a tag associated with this PoLoader.
const std::string & getTag ()
 Gets tag associated with this PoLoader.
uint32_bt getNumStrings ()
 Get Number of Strings in the Po File.

Detailed Description

Loads and parses a single po file.


Member Function Documentation

uint32_bt Tonido::Util::PoLoader::getNumStrings ( )

Get Number of Strings in the Po File.

Returns:
number of strings
const std::string& Tonido::Util::PoLoader::getTag ( )

Gets tag associated with this PoLoader.

Returns:
a tag associated with this PoLoader
std::string Tonido::Util::PoLoader::getTranslation ( const std::string &  a_original)

Gets translation string, given original string.

Parameters:
a_originalthe original string
Returns:
the translation string
std::string Tonido::Util::PoLoader::getTranslationXML ( )

Get translation strings in XML.

Returns:
the translation strings in XML
bool Tonido::Util::PoLoader::isValid ( )

Returns whether the PoLoader has loaded a poFile.

Returns:
whether the PoLoader has loaded a poFile
bool Tonido::Util::PoLoader::load ( std::istream &  a_poFileDataStr)

Loads a Po file input stream.

Parameters:
a_poFileDataStrthe po file input stream to load
Returns:
true on success, false otherwise
void Tonido::Util::PoLoader::setTag ( const std::string &  a_tag)

Sets a tag associated with this PoLoader.

Returns:
sets a tag associated with this PoLoader

Generated on Wed Oct 12 2011 21:46:54. © CodeLathe LLC 2007-2011. All Rights Reserved.