Files
Include/EMkMachMgr.h
T
Dario Sassi 80d151dfc9 Include :
- aggiunti prototipi per creazione solidi standard
- aggiornamenti vari.
2015-04-03 07:36:08 +00:00

52 lines
2.0 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : EMkMachMgr.h Data : 23.03.15 Versione : 1.6c6
// Contenuto : Dichiarazione della interfaccia IMachMgr.
//
//
//
// Modifiche : 23.03.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "/EgtDev/Include/EGkGeomDB.h"
//----------------------- Macro per import/export ----------------------------
#undef EMK_EXPORT
#if defined( I_AM_EMK) // da definirsi solo nella DLL
#define EMK_EXPORT __declspec( dllexport)
#else
#define EMK_EXPORT __declspec( dllimport)
#endif
//-----------------------------------------------------------------------------
class __declspec( novtable) IMachMgr
{
public :
// General
virtual ~IMachMgr( void) {}
virtual bool Init( IGeomDB* pGeomDB) = 0 ;
virtual bool Update( void) = 0 ;
virtual bool Insert( int nInsGrp) = 0 ;
// MachGroup
virtual int GetMachGroupNbr( void) const = 0 ;
virtual bool GetMachGroupNewName( std::string& sName) const = 0 ;
virtual int AddMachGroup( const std::string& sName, const std::string& sMachineName) = 0 ;
virtual bool RemoveMachGroup( int nMGroup) = 0 ;
virtual bool GetMachGroupName( int nMGroup, std::string& sName) const = 0 ;
virtual bool GetMachGroupInd( const std::string& sName, int& nMGroup) const = 0 ;
virtual bool SetCurrMachGroup( int nMGroup) = 0 ;
virtual bool ResetCurrMachGroup( void) = 0 ;
virtual bool GetCurrMachGroup( int& nMGroup) const ;
// RawPart & Part
virtual int AddRawPart( const Point3d& ptOrig, double dWidth, double dLen, double dHeight, Color cCol) = 0 ;
} ;
//-----------------------------------------------------------------------------
extern "C" {
EMK_EXPORT IMachMgr* CreateMachMgr(void) ;
}