bb9f2bd2a3
- aggiunta GetAllTablesNames.
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
//----------------------------------------------------------------------------
|
|
// 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 ;
|
|
}
|