Pyro higlevel API
|
Classes | |
struct | FileHeader |
class | Private |
Public Types | |
typedef std::map< uint32, String > | StringMap |
typedef StringMap::const_iterator | const_iterator |
Public Member Functions | |
Catalog () | |
Catalog (StreamableIO *pcSource) | |
Catalog (String &cName, Locale *pcLocale=NULL) | |
~Catalog () | |
const String & | GetString (uint32 nID) const |
const String & | GetString (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 () |
typedef StringMap::const_iterator os::Catalog::const_iterator |
typedef std::map<uint32, String> os::Catalog::StringMap |
Catalog::Catalog | ( | ) |
Catalog::Catalog | ( | StreamableIO * | pcSource | ) |
References Load().
Catalog::~Catalog | ( | ) |
Catalog::const_iterator Catalog::begin | ( | ) | const |
References os::Catalog::Private::m_cStrings.
Catalog::const_iterator Catalog::end | ( | ) | const |
References os::Catalog::Private::m_cStrings.
const String & Catalog::GetString | ( | uint32 | nID | ) | const |
References Lock(), os::Catalog::Private::m_cStrings, and Unlock().
Referenced by os::IconDirectoryView::DragSelection(), os::FileRequester::FileRequester(), os::FileRequester::HandleMessage(), os::IconDirectoryView::HandleMessage(), os::IconDirectoryView::Invoked(), os::LString::LString(), os::IconDirectoryView::OpenContextMenu(), and os::FileRequester::Private::PathChanged().
References Lock(), os::Catalog::Private::m_cStrings, and Unlock().
status_t Catalog::Load | ( | StreamableIO * | pcSource | ) |
References CATALOG_MAGIC, CURRENT_CATALOG_VERSION, Lock(), os::Catalog::Private::m_cStrings, os::Catalog::FileHeader::m_nHeaderSize, os::Catalog::FileHeader::m_nMagic, os::Catalog::FileHeader::m_nNumComments, os::Catalog::FileHeader::m_nNumMnemonics, os::Catalog::FileHeader::m_nNumStrings, os::Catalog::FileHeader::m_nVersion, os::Catalog::Private::m_sHdr, os::StreamableIO::Read(), and Unlock().
Referenced by Catalog(), os::Locale::GetLocalizedCatalog(), and os::Locale::GetLocalizedSystemCatalog().
int Catalog::Lock | ( | ) | const |
References os::Locker::Lock(), and os::Catalog::Private::m_cLocker.
Referenced by GetString(), Load(), Save(), and SetString().
status_t Catalog::Save | ( | StreamableIO * | pcDest | ) |
References CATALOG_MAGIC, CURRENT_CATALOG_VERSION, Lock(), os::Catalog::Private::m_cStrings, os::Catalog::FileHeader::m_nHeaderSize, os::Catalog::FileHeader::m_nMagic, os::Catalog::FileHeader::m_nNumComments, os::Catalog::FileHeader::m_nNumMnemonics, os::Catalog::FileHeader::m_nNumStrings, os::Catalog::FileHeader::m_nVersion, os::Catalog::Private::m_sHdr, Unlock(), and os::StreamableIO::Write().
void Catalog::SetString | ( | uint32 | nID, |
const String & | cStr | ||
) | const |
References Lock(), os::Catalog::Private::m_cStrings, and Unlock().
int Catalog::Unlock | ( | ) | const |
References os::Catalog::Private::m_cLocker, and os::Locker::Unlock().
Referenced by GetString(), Load(), Save(), and SetString().