//---------------------------------------------------------------------------- // EgalTech 2013-2013 //---------------------------------------------------------------------------- // File : GdbExecutor.h Data : 25.11.13 Versione : 1.3a1 // Contenuto : Dichiarazione della classe GdbExecutor. // // // // Modifiche : 27.03.13 DS Creazione modulo. // // //---------------------------------------------------------------------------- #pragma once #include "OutTsc.h" #include "/EgtDev/Include/EgkGdbExecutor.h" #include "/EgtDev/Include/EgtPerfCounter.h" #include "/EgtDev/Include/EgtExecMgr.h" #include "/EgtDev/Include/EgtNumCollection.h" //---------------------------------------------------------------------------- class GdbExecutor : public IGdbExecutor { public : // ICmdExecutor virtual bool SetCmdParser( ICmdParser* pParser) ; virtual bool AddStandardVariables( void) ; virtual int Execute( const std::string& sCmd1, const std::string& sCmd2, const STRVECTOR& vsParams) ; public : // IGdbExecutor ~GdbExecutor( void) ; virtual bool SetGeomDB( IGeomDB* pGdb) ; public : GdbExecutor( void) ; private : bool AddGeoObj( const std::string& sId, const std::string& sIdParent, IGeoObj* pGeoObj) ; int GetIdParam( const std::string& sParam, bool bNewAllowed = false) ; bool GetNamesParam( const std::string& sParam, INTVECTOR& vnNames) ; bool GetVectorParam( const std::string& sParam, Vector3d& vtV) ; bool GetPointParam( const std::string& sParam, Point3d& ptP) ; bool GetPointWParam( const std::string& sParam, Point3d& ptP, double& dW) ; bool GetFrameParam( const std::string& sParam, Frame3d& frF) ; bool GetColorParam( const std::string& sParam, bool& bByParent, Color& cCol) ; bool ExecuteGroup( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecutePoint( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteVector( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteFrame( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteCurveLine( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteCurveArc( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteCurveBez( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteCurveCompo( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteSurfTriMesh( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteLevel( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteMode( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteStatus( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteSelect( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteDeselect( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteMaterial( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteName( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteInfo( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteCopy( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteRelocate( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteErase( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteTranslate( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteRotate( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteScale( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteMirror( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteInvertCurve( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteInvertSurf( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteTrimCurve( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteNew( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteLoad( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteSave( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool ExecuteOutTsc( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool OutGroupTsc( int nId, int nFlag, int nLev = 0) ; private : IGeomDB* m_pGDB ; ICmdParser* m_pParser ; ExecManager m_ExecMgr ; OutTsc m_OutTsc ; IGeoObj* m_pGeoObj ; } ;