EgtInterface 2.7k2 :

- aggiunta interfaccia per funzione EgtGetAllCurrAxesNames.
This commit is contained in:
Dario Sassi
2025-11-07 18:00:05 +01:00
parent c73d3d1a86
commit ad06fb63ae
2 changed files with 21 additions and 2 deletions
+21 -2
View File
@@ -2122,7 +2122,7 @@ __stdcall EgtGetAllHeadsNames( wchar_t*& wsNames)
return FALSE ;
STRVECTOR vNames ;
if ( ! ExeGetAllHeadsNames( vNames))
return false ;
return FALSE ;
string sNames ;
for ( const auto& sName : vNames)
sNames += sName + "," ;
@@ -2140,7 +2140,7 @@ __stdcall EgtGetAllTablesNames( wchar_t*& wsNames)
return FALSE ;
STRVECTOR vNames ;
if ( ! ExeGetAllTablesNames( vNames))
return false ;
return FALSE ;
string sNames ;
for ( const auto& sName : vNames)
sNames += sName + "," ;
@@ -2179,6 +2179,25 @@ __stdcall EgtGetCalcTool( wchar_t*& wsTool, wchar_t*& wsHead, int* pnExit)
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAllCurrAxesNames( wchar_t*& wsAxNames)
{
if ( &wsAxNames == nullptr)
return FALSE ;
STRVECTOR vsAxNames ;
if ( ! ExeGetAllCurrAxesNames( vsAxNames))
return FALSE ;
// restituzione vettore risultati
string sAxNames ;
for ( const auto& sAxName : vsAxNames)
sAxNames += sAxName + "\n" ;
if ( ! sAxNames.empty())
sAxNames.pop_back() ;
wsAxNames = _wcsdup( stringtoW( sAxNames)) ;
return (( wsAxNames == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3],