Pyro higlevel API
Classes | Public Types | Public Member Functions | List of all members
os::Catalog Class Reference

String Catalog. More...

Inheritance diagram for os::Catalog:
Resource

Classes

struct  FileHeader
 
class  Private
 

Public Types

typedef std::map< uint32, StringStringMap
 
typedef StringMap::const_iterator const_iterator
 

Public Member Functions

 Catalog ()
 
 Catalog (StreamableIO *pcSource)
 
 Catalog (String &cName, Locale *pcLocale=NULL)
 
 ~Catalog ()
 
const StringGetString (uint32 nID) const
 
const StringGetString (uint32 nID, const String &cDefault) const
 
void SetString (uint32 nID, const String &cStr) const
 
status_t Load (StreamableIO *pcSource)
 
status_t Save (StreamableIO *pcDest)
 
const_iterator begin () const
 
const_iterator end () const
 
int Lock () const
 
int Unlock () const
 
- Public Member Functions inherited from Resource
 Resource ()
 
void AddRef (void)
 
void Release (void)
 
int GetRefCount (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from Resource
virtual ~Resource ()
 

Detailed Description

Description:
Since
0.5.3
See Also
os::String
Author
Henrik Isaksson (henri.nosp@m.k@is.nosp@m.aksso.nosp@m.n.tk)

Member Typedef Documentation

typedef StringMap::const_iterator os::Catalog::const_iterator
typedef std::map<uint32, String> os::Catalog::StringMap

Constructor & Destructor Documentation

Catalog::Catalog ( )
Catalog::Catalog ( StreamableIO pcSource)

References Load().

Catalog::Catalog ( String cName,
Locale pcLocale = NULL 
)
Catalog::~Catalog ( )

Member Function Documentation

Catalog::const_iterator Catalog::begin ( ) const
Catalog::const_iterator Catalog::end ( ) const
const String & Catalog::GetString ( uint32  nID) const
const String & Catalog::GetString ( uint32  nID,
const String cDefault 
) const
status_t Catalog::Load ( StreamableIO pcSource)
int Catalog::Lock ( ) const
status_t Catalog::Save ( StreamableIO pcDest)
void Catalog::SetString ( uint32  nID,
const String cStr 
) const
int Catalog::Unlock ( ) const