363ada2528
- aggiunte lavorazioni Scalpellatura e Svuotatura.
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2016-2016
|
|
//----------------------------------------------------------------------------
|
|
// File : MachiningCreate.h Data : 30.03.16 Versione : 1.6o4
|
|
// Contenuto : Funzione per creazione oggetti delle lavorazioni.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 30.03.16 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "Drilling.h"
|
|
#include "Sawing.h"
|
|
#include "Milling.h"
|
|
#include "Pocketing.h"
|
|
#include "SawRoughing.h"
|
|
#include "SawFinishing.h"
|
|
#include "GenMachining.h"
|
|
#include "Chiseling.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
// Dal tipo numerico crea una istanza della classe
|
|
inline Machining*
|
|
CreateMachining( int nMchType)
|
|
{
|
|
switch ( nMchType) {
|
|
case MT_DRILLING : return new( std::nothrow) Drilling ;
|
|
case MT_SAWING : return new( std::nothrow) Sawing ;
|
|
case MT_MILLING : return new( std::nothrow) Milling ;
|
|
case MT_POCKETING : return new( std::nothrow) Pocketing ;
|
|
// case MT_MORTISING : return new( std::nothrow) Mortising ;
|
|
case MT_SAWROUGHING : return new( std::nothrow) SawRoughing ;
|
|
case MT_SAWFINISHING : return new( std::nothrow) SawFinishing ;
|
|
case MT_GENMACHINING : return new( std::nothrow) GenMachining ;
|
|
case MT_CHISELING : return new( std::nothrow) Chiseling ;
|
|
}
|
|
return nullptr ;
|
|
}
|