2a2c0065ed
- aggiunta prima gestione attributi.
72 lines
3.5 KiB
C++
72 lines
3.5 KiB
C++
//----------------------------------------------------------------------------
|
|
// 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 "OutScl.h"
|
|
#include "/EgtDev/Include/EgkGdbExecutor.h"
|
|
#include "/EgtDev/Include/EgtPerfCounter.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
class GdbExecutor : public IGdbExecutor
|
|
{
|
|
public :
|
|
virtual bool SetCmdParser( ICmdParser* pParser) ;
|
|
virtual bool AddExecutor( ICmdExecutor* pOtherExec) ;
|
|
virtual bool Execute( const std::string& sCmd1, const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
virtual bool SetGeomDB( IGeomDB* pGdb) ;
|
|
|
|
public :
|
|
GdbExecutor( void) ;
|
|
~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, STRVECTOR& vsNames) ;
|
|
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 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 ExecuteColor( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteCopy( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteErase( 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 STRVECTOR& vsParams) ;
|
|
bool ExecuteTrimCurve( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteNew( const STRVECTOR& vsParams) ;
|
|
bool ExecuteLoad( const STRVECTOR& vsParams) ;
|
|
bool ExecuteSave( const STRVECTOR& vsParams) ;
|
|
bool ExecuteOutScl( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool OutGroupScl( int nId, int nFlag) ;
|
|
bool ExecuteCounter( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
|
|
private :
|
|
IGeomDB* m_pGDB ;
|
|
ICmdParser* m_pParser ;
|
|
ICmdExecutor* m_pOtherExec ;
|
|
OutScl m_OutScl ;
|
|
PerformanceCounter m_Counter ;
|
|
} ;
|