EgtInterface 2.7k2 :
- aggiunta interfaccia per funzione EgtGetAllCurrAxesNames.
This commit is contained in:
+21
-2
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user