EgtInterface 1.6s2 :

- aggiunte EgtGetTableName e EgtTdbGetToolFromUUID.
This commit is contained in:
Dario Sassi
2016-07-02 15:04:48 +00:00
parent aa6c7b6711
commit 68767be143
2 changed files with 26 additions and 0 deletions
+26
View File
@@ -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)