//---------------------------------------------------------------------------- // EgalTech 2015-2017 //---------------------------------------------------------------------------- // File : EmkOperationConst.h Data : 03.02.167 Versione : 1.8b1 // 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. // //---------------------------------------------------------------------------- #pragma once //------------------------ Costanti per tipo Operazioni ----------------------- enum OperType { OPER_NULL = 0, // nulla OPER_DISP = 0x0100, // disposizione OPER_DRILLING = 0x0200, // foratura OPER_SAWING = 0x0400, // taglio di lama OPER_MILLING = 0x0800, // fresatura OPER_POCKETING = 0x1000, // svuotatura OPER_MORTISING = 0x2000, // mortasatura OPER_SAWROUGHING = 0x4000, // sgrossatura con lama OPER_SAWFINISHING = 0x8000, // finitura con lama OPER_GENMACHINING = 0x10000, // lavorazione generica OPER_CHISELING = 0x20000} ; // scalpellatura // 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) ; }