Classes | Macros
L10N.h File Reference
#include <BeSQLite/BeSQLite.h>

Go to the source code of this file.

Classes

struct  L10N
 L10N (chic numeronym for "localization") is used to obtain localized strings from one of 3 SQLang database files. More...
 
struct  L10N::NameSpace
 A globally unique identifier for a group of localized strings. More...
 
struct  L10N::StringId
 The identifier for a localized string, unique within a NameSpace. More...
 
struct  L10N::SqlangFiles
 Set of 1 to 3 SQLang database files. More...
 

Macros

#define BENTLEY_TRANSLATABLE_STRINGS_START(STRUCT_NAME, NAMESPACE_NAME)
 
#define L10N_STRING(ID)   static StringId ID() {return StringId(#ID);}
 
#define BENTLEY_TRANSLATABLE_STRINGS_END   };
 
#define DEFINE_KEY_METHOD(CLS)   void CLS::DummyKeyMethod() const {;}
 
#define DECLARE_KEY_METHOD   __declspec(dllexport) virtual void DummyKeyMethod() const;
 

Macro Definition Documentation

#define BENTLEY_TRANSLATABLE_STRINGS_END   };
#define BENTLEY_TRANSLATABLE_STRINGS_START (   STRUCT_NAME,
  NAMESPACE_NAME 
)
Value:
struct STRUCT_NAME\
{\
typedef BeSQLite::L10N::NameSpace NameSpace;\
typedef BeSQLite::L10N::StringId StringId;\
static NameSpace GetNameSpace() {return NameSpace(#NAMESPACE_NAME);}\
static Utf8String GetString(StringId id) {return BeSQLite::L10N::GetString(GetNameSpace(), id);}\
static WString GetStringW(StringId id) {return WString(GetString(id).c_str(), BentleyCharEncoding::Utf8);}\
#define DECLARE_KEY_METHOD   __declspec(dllexport) virtual void DummyKeyMethod() const;
#define DEFINE_KEY_METHOD (   CLS)    void CLS::DummyKeyMethod() const {;}
#define L10N_STRING (   ID)    static StringId ID() {return StringId(#ID);}

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.