Files
Include/EMkOperationConst.h
T
Dario Sassi 2baeddf1ba Include :
- aggiornamenti.
2017-01-16 09:07:29 +00:00

40 lines
1.7 KiB
C

//----------------------------------------------------------------------------
// EgalTech 2015-2016
//----------------------------------------------------------------------------
// File : EmkOperationConst.h Data : 30.03.16 Versione : 1.6o4
// Contenuto : Costanti delle operazioni.
//
//
//
// Modifiche : 12.10.15 DS Creazione modulo.
// 30.03.16 DS Agg. SawRoughing e SawFinishing.
// 15.01.17 DS Agg. GenMachining.
//
//----------------------------------------------------------------------------
#pragma once
//------------------------ Costanti per tipo Operazioni -----------------------
enum OperType { OPER_NULL = 0, // nulla
OPER_DISP = 256, // disposizione
OPER_DRILLING = 512, // foratura
OPER_SAWING = 1024, // taglio di lama
OPER_MILLING = 2048, // fresatura
OPER_POCKETING = 4096, // svuotatura
OPER_MORTISING = 8192, // mortasatura
OPER_SAWROUGHING = 16384, // sgrossatura con lama
OPER_SAWFINISHING = 32768, // finitura con lama
OPER_GENMACHINING = 65536} ; // lavorazione generica
// Controllo tipo valido
bool inline IsValidDispositionType( int nType)
{
return ( nType == OPER_DISP) ;
}
bool inline IsValidMachiningType( int nType)
{
return ( nType == OPER_DRILLING || nType == OPER_SAWING ||
nType == OPER_MILLING || nType == OPER_POCKETING ||
nType == OPER_MORTISING || nType == OPER_SAWROUGHING ||
nType == OPER_SAWFINISHING || nType == OPER_GENMACHINING) ;
}