Open Reality Reference Guide
fbmultilang.h
Go to the documentation of this file.
1
#ifndef __FBMULTILANG_H__
2
#define __FBMULTILANG_H__
3
/**************************************************************************
4
Copyright (c) 1994 - 2009 Autodesk, Inc. and/or its licensors.
5
All Rights Reserved.
6
7
The coded instructions, statements, computer programs, and/or related
8
material (collectively the "Data") in these files contain unpublished
9
information proprietary to Autodesk, Inc. and/or its licensors, which is
10
protected by Canada and United States of America federal copyright law
11
and by international treaties.
12
13
The Data may not be disclosed or distributed to third parties, in whole
14
or in part, without the prior written consent of Autodesk, Inc.
15
("Autodesk").
16
17
THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
18
ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
19
WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR
20
ARISING BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES
21
OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
22
PURPOSE OR USE. WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT
23
WARRANT THAT THE OPERATION OF THE DATA WILL BE UNINTERRUPTED OR ERROR
24
FREE.
25
26
IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
27
OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR
28
EXPENSES OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE
29
DAMAGES OR OTHER SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS
30
OF PROFITS, REVENUE OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR
31
DAMAGES OF ANY KIND), HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF
32
LIABILITY, WHETHER DERIVED FROM CONTRACT, TORT (INCLUDING, BUT NOT
33
LIMITED TO, NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR RELATING TO THE
34
DATA OR ITS USE OR ANY OTHER PERFORMANCE, WHETHER OR NOT AUTODESK HAS
35
BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
36
37
**************************************************************************/
38
43
#include <kaydaradef.h>
44
45
#include <
fbsdk/fbtypes.h
>
46
47
#ifndef FBSDK_DLL
48
51
#define FBSDK_DLL K_DLLIMPORT
52
#endif
53
54
#ifdef FBSDKUseNamespace
55
namespace
FBSDKNamespace {
56
#endif
57
58
FB_FORWARD
(
FBPlug
);
59
131
FBSDK_DLL
const
char
*
FBGetMultiLangText
(
FBPlug
* pContext,
const
char
* pKey,
bool
pFlagReturnKey =
false
);
132
187
FBSDK_DLL
const
char
*
FBGetMultiLangText
(
const
char
* pContext,
const
char
* pKey,
bool
pFlagReturnKey =
false
);
188
189
191
// FBMultiLangManager
193
FB_FORWARD
(
FBMultiLangManager
);
194
232
class
FBSDK_DLL
FBMultiLangManager
233
{
237
FBMultiLangManager
(
const
FBMultiLangManager
& );
238
242
FBMultiLangManager
& operator=(
const
FBMultiLangManager
& );
243
244
public
:
245
247
FBMultiLangManager
();
248
250
~FBMultiLangManager
();
251
257
const
char
*
GetCurrentLanguage
()
const
;
258
269
bool
SetCurrentLanguage
(
const
char
* pLanguage );
270
274
FBStringList
Languages
;
275
};
276
277
#ifdef FBSDKUseNamespace
278
}
279
#endif
280
#endif
FBMultiLangManager::GetCurrentLanguage
const char * GetCurrentLanguage() const
Obtain the current language.
FBMultiLangManager::FBMultiLangManager
FBMultiLangManager()
Constructor.
FBStringList
String list.
Definition:
fbstring.h:208
FBSDK_DLL
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Definition:
fbmultilang.h:51
FBMultiLangManager::SetCurrentLanguage
bool SetCurrentLanguage(const char *pLanguage)
Set the current language.
FBMultiLangManager::Languages
FBStringList Languages
List of available languages.
Definition:
fbmultilang.h:274
FBMultiLangManager::~FBMultiLangManager
~FBMultiLangManager()
Destructor.
FBMultiLangManager
Language manager.
Definition:
fbmultilang.h:233
FB_FORWARD
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition:
fbtypes.h:62
FBGetMultiLangText
K_DLLIMPORT const char * FBGetMultiLangText(FBPlug *pContext, const char *pKey, bool pFlagReturnKey=false)
Name lookup in the context of an object.
FBPlug
Connections Basic Open Reality SDK Element.
Definition:
fbplug.h:222
fbtypes.h
Types & macros.
Components
amKernel
kkernel
fbsdk
include
fbsdk
fbmultilang.h
Generated by
1.8.20