EgtMachKernel 1.8c4 :
- aggiunta GetAllTablesNames.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// EgalTech 2017-2017
|
||||
//----------------------------------------------------------------------------
|
||||
// File : MachineTables.cpp Data : 09.03.15 Versione : 1.8c4
|
||||
// Contenuto : Implementazione gestione macchina : funzioni per tavole.
|
||||
//
|
||||
//
|
||||
//
|
||||
// Modifiche : 09.03.17 DS Creazione modulo.
|
||||
//
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
//--------------------------- Include ----------------------------------------
|
||||
#include "stdafx.h"
|
||||
#include "MachMgr.h"
|
||||
#include "DllMain.h"
|
||||
#include "Head.h"
|
||||
#include "Exit.h"
|
||||
#include "/EgtDev/Include/EMkToolConst.h"
|
||||
#include "/EgtDev/Include/EGnStringUtils.h"
|
||||
#include "/EgtDev/Include/EGnFileUtils.h"
|
||||
|
||||
using namespace std ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::GetAllTablesNames( STRVECTOR& vNames) const
|
||||
{
|
||||
// reset lista nomi
|
||||
vNames.clear() ;
|
||||
// ricerca delle tavole
|
||||
for each ( const auto& snGro in m_mapGroups) {
|
||||
if ( IsTableGroup( snGro.second))
|
||||
vNames.push_back( snGro.first) ;
|
||||
}
|
||||
// ordino alfabeticamente
|
||||
std::sort( vNames.begin(), vNames.end()) ;
|
||||
return true ;
|
||||
}
|
||||
Reference in New Issue
Block a user