SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Translator Class Reference

#include <api_core.h>

Public Member Functions

 CSG_Translator (void)
virtual ~CSG_Translator (void)
 CSG_Translator (const CSG_String &File_Name, bool bSetExtension=true, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
bool Create (const CSG_String &File_Name, bool bSetExtension=true, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
 CSG_Translator (class CSG_Table *pTranslations, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
bool Create (class CSG_Table *pTranslations, int iText=0, int iTranslation=1, bool bCmpNoCase=false)
void Destroy (void)
bool is_CaseSensitive (void) const
int Get_Count (void) const
const SG_CharGet_Text (int i) const
const SG_CharGet_Translation (int i) const
const SG_CharGet_Translation (const SG_Char *Text, bool bReturnNullOnNotFound=false) const
bool Get_Translation (const SG_Char *Text, CSG_String &Translation) const

Detailed Description

Definition at line 1511 of file api_core.h.

Constructor & Destructor Documentation

◆ CSG_Translator() [1/3]

CSG_Translator::CSG_Translator ( void )

Definition at line 106 of file api_translator.cpp.

◆ ~CSG_Translator()

CSG_Translator::~CSG_Translator ( void )
virtual

Definition at line 129 of file api_translator.cpp.

References Destroy().

◆ CSG_Translator() [2/3]

CSG_Translator::CSG_Translator ( const CSG_String & File_Name,
bool bSetExtension = true,
int iText = 0,
int iTranslation = 1,
bool bCmpNoCase = false )

Definition at line 112 of file api_translator.cpp.

References Create().

◆ CSG_Translator() [3/3]

CSG_Translator::CSG_Translator ( class CSG_Table * pTranslations,
int iText = 0,
int iTranslation = 1,
bool bCmpNoCase = false )

Definition at line 120 of file api_translator.cpp.

References Create().

Member Function Documentation

◆ Create() [1/2]

◆ Create() [2/2]

bool CSG_Translator::Create ( const CSG_String & File_Name,
bool bSetExtension = true,
int iText = 0,
int iTranslation = 1,
bool bCmpNoCase = false )

◆ Destroy()

void CSG_Translator::Destroy ( void )

Definition at line 135 of file api_translator.cpp.

References SG_Free().

Referenced by Create(), Create(), and ~CSG_Translator().

◆ Get_Count()

int CSG_Translator::Get_Count ( void ) const
inline

Definition at line 1527 of file api_core.h.

Referenced by Create().

◆ Get_Text()

const SG_Char * CSG_Translator::Get_Text ( int i) const
inline

Definition at line 1528 of file api_core.h.

References SG_Char, and SG_T.

◆ Get_Translation() [1/3]

const SG_Char * CSG_Translator::Get_Translation ( const SG_Char * Text,
bool bReturnNullOnNotFound = false ) const

◆ Get_Translation() [2/3]

bool CSG_Translator::Get_Translation ( const SG_Char * Text,
CSG_String & Translation ) const

◆ Get_Translation() [3/3]

const SG_Char * CSG_Translator::Get_Translation ( int i) const
inline

Definition at line 1529 of file api_core.h.

References SG_Char, and SG_T.

◆ is_CaseSensitive()

bool CSG_Translator::is_CaseSensitive ( void ) const
inline

Definition at line 1525 of file api_core.h.


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