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

#include <Lang.h>

Public Types

using StringMap = std::map< std::string, std::string, std::less<> >
 

Public Member Functions

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

Static Public Member Functions

static std::vector< std::string > GetAvailableLanguages (std::string_view resourceName)
 

Member Typedef Documentation

◆ StringMap

using Lang::Resource::StringMap = std::map<std::string, std::string, std::less<> >

Constructor & Destructor Documentation

◆ Resource()

Lang::Resource::Resource ( std::string_view  name,
std::string_view  langCode 
)
inline

Member Function Documentation

◆ Get()

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

◆ GetAvailableLanguages()

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

◆ GetLangCode()

std::string_view Lang::Resource::GetLangCode ( ) const
inline

◆ GetName()

std::string_view Lang::Resource::GetName ( ) const
inline

◆ GetNumStrings()

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

◆ GetStrings() [1/2]

IterationProxy< StringMap > Lang::Resource::GetStrings ( )
inline
Here is the call graph for this function:

◆ GetStrings() [2/2]

const IterationProxy< const StringMap > 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: