6namespace Stroika::Foundation::Execution::Resources {
13 inline Name::Name (
const String& name, ResourceType type)
14 : fName_ (name.AsSDKString ())
15#if qStroika_Foundation_Common_Platform_Windows
21#if qStroika_Foundation_Common_Platform_Windows
22 inline Name::Name (
const int intResName, ResourceType type)
24 , fIntName_ (intResName)
29 inline String Name::GetPrintName ()
const
31#if qStroika_Foundation_Common_Platform_Windows
32 if (fIntName_.has_value ()) {
33 return "#{}"_f(*fIntName_);
36 return String::FromSDKString (fName_);
38 inline const SDKChar* Name::GetSDKString ()
const
40#if qStroika_Foundation_Common_Platform_Windows
41 if (fIntName_.has_value ()) {
42 return MAKEINTRESOURCE (*fIntName_);
45 return fName_.c_str ();
47 inline ResourceType Name::GetType ()
const
conditional_t< qTargetPlatformSDKUseswchar_t, wchar_t, char > SDKChar