Files
Include/EMkOperationConst.h
T
Dario Sassi d81def126d Include :
- aggiornamento costanti per lavorazioni superfici.
2019-05-26 18:59:08 +00:00

52 lines
2.2 KiB
C

//----------------------------------------------------------------------------
// EgalTech 2015-2019
//----------------------------------------------------------------------------
// File : EmkOperationConst.h Data : 25.05.19 Versione : 2.1e51
// 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.
// 03.02.17 DS Agg. Chiseling.
// 25.05.19 DS Agg. SurfRoughing e SurfFinishing.
//
//----------------------------------------------------------------------------
#pragma once
//------------------------ Costanti per tipo Operazioni -----------------------
enum OperType { OPER_NULL = 0, // nulla
OPER_DISP = 0x000100, // disposizione
OPER_DRILLING = 0x000200, // foratura
OPER_SAWING = 0x000400, // taglio di lama
OPER_MILLING = 0x000800, // fresatura
OPER_POCKETING = 0x001000, // svuotatura
OPER_MORTISING = 0x002000, // mortasatura
OPER_SAWROUGHING = 0x004000, // sgrossatura con lama
OPER_SAWFINISHING = 0x008000, // finitura con lama
OPER_GENMACHINING = 0x010000, // lavorazione generica
OPER_CHISELING = 0x020000, // scalpellatura
OPER_SURFROUGHING = 0x040000, // sgrossatura superficie
OPER_SURFFINISHING = 0x080000} ; // finitura superficie
// 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 ||
nType == OPER_CHISELING ||
nType == OPER_SURFROUGHING ||
nType == OPER_SURFFINISHING) ;
}