EgtInterface 1.6s2 :
- aggiunte EgtGetTableName e EgtTdbGetToolFromUUID.
This commit is contained in:
@@ -324,6 +324,19 @@ __stdcall EgtSetTable( const wchar_t* wsTable)
|
||||
return ( ExeSetTable( wstrztoA( wsTable)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTableName( wchar_t*& wsTableName)
|
||||
{
|
||||
if ( &wsTableName == nullptr)
|
||||
return FALSE ;
|
||||
string sTableName ;
|
||||
if ( ! ExeGetTable( sTableName))
|
||||
return FALSE ;
|
||||
wsTableName = _wcsdup( stringtoW( sTableName)) ;
|
||||
return (( wsTableName == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetTableRef( int nInd, double ptPos[3])
|
||||
@@ -422,6 +435,19 @@ __stdcall EgtTdbGetNextTool( int nFamily, wchar_t*& wsName, int* pnType)
|
||||
return (( wsName == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtTdbGetToolFromUUID( wchar_t* wsTuuid, wchar_t*& wsName)
|
||||
{
|
||||
if ( &wsName == nullptr)
|
||||
return FALSE ;
|
||||
string sName ;
|
||||
if ( ! ExeTdbGetToolFromUUID( wstrztoA( wsTuuid), sName))
|
||||
return FALSE ;
|
||||
wsName = _wcsdup( stringtoW( sName)) ;
|
||||
return (( wsName == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtTdbSetCurrTool( const wchar_t* wsName)
|
||||
|
||||
Reference in New Issue
Block a user