Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Lang::Resource Class Reference

#include <Lang.h>

Public Member Functions

 Resource (const std::string &name, const std::string &langCode)
 
const std::string & GetName () const
 
const std::string & GetLangCode () const
 
bool Load ()
 
Uint32 GetNumStrings () const
 
const std::string & Get (const std::string &token) const
 
IterationProxy< std::map< std::string, std::string > > GetStrings ()
 
const IterationProxy< const std::map< std::string, std::string > > GetStrings () const
 

Static Public Member Functions

static std::vector< std::string > GetAvailableLanguages (const std::string &resourceName)
 

Constructor & Destructor Documentation

◆ Resource()

Lang::Resource::Resource ( const std::string &  name,
const std::string &  langCode 
)
inline

Member Function Documentation

◆ Get()

const std::string & Lang::Resource::Get ( const std::string &  token) const

◆ GetAvailableLanguages()

std::vector< std::string > Lang::Resource::GetAvailableLanguages ( const std::string &  resourceName)
static
Here is the call graph for this function:

◆ GetLangCode()

const std::string & Lang::Resource::GetLangCode ( ) const
inline

◆ GetName()

const std::string & Lang::Resource::GetName ( ) const
inline

◆ GetNumStrings()

Uint32 Lang::Resource::GetNumStrings ( ) const
inline

◆ GetStrings() [1/2]

IterationProxy< std::map< std::string, std::string > > Lang::Resource::GetStrings ( )
inline
Here is the call graph for this function:

◆ GetStrings() [2/2]

const IterationProxy< const std::map< std::string, std::string > > Lang::Resource::GetStrings ( ) const
inline
Here is the call graph for this function:

◆ Load()

bool Lang::Resource::Load ( )
Here is the call graph for this function:

The documentation for this class was generated from the following files: