e184799057
- aggiunta lavorazione generica (versione preliminare).
38 lines
1.2 KiB
C++
38 lines
1.2 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 "SawRoughing.h"
|
|
#include "SawFinishing.h"
|
|
#include "GenMachining.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_SAWROUGHING : return new( std::nothrow) SawRoughing ;
|
|
case MT_SAWFINISHING : return new( std::nothrow) SawFinishing ;
|
|
case MT_GENMACHINING : return new( std::nothrow) GenMachining ;
|
|
}
|
|
return nullptr ;
|
|
}
|