#pragma once #include "GBImgPropCal.h" #include "PropParam.h" #include "SmplMsrResultFileMgr.h" #include "GridData.h" #include "IncAFileMgr.h" #include "RptParamFile.h" #include namespace OTSMODEL { using namespace OTSDATA; const CString UNTITLED_NEW_FILE_NAME = _T("UntitledNew"); const double Pi = 3.14159; class __declspec(dllexport) CReportMgr { public: CReportMgr(); // constructor virtual ~CReportMgr(); // destructor // sample measure result files CSmplMsrResultFileMgrList GetSmplMsrResultMgrs() { CSmplMsrResultFileMgrList rstlist; for (auto rst : m_mapSmplMgrs) { rstlist.push_back(rst.second); } return rstlist; } void SetSmplMsrResultMgrs(CSmplMsrResultFileMgrList a_listSmplMsrResultFileMgr); BOOL AddASmplMsrResultMgr(CString a_strPathName = _T(""),CString anotherName=_T("")); CSmplMsrResultFileMgrPtr GetASmplMsrResultMgrByPathName(CString a_strPathName); CSmplMsrResultFileMgrPtr GetASmplMsrResultMgrByFileName(CString a_strFileName); // set working sample index int GetWorkingSampleIndex() { return m_nWorkingSampeIndex; } void SetWorkingSampleIndex(int a_nWorkingSampleIndex) { m_nWorkingSampeIndex = a_nWorkingSampleIndex; } BOOL IsHaveMultiDataSource(); BOOL ResetPropertyParams(BOOL a_bClear = FALSE); CPropParamPtr GetPropertyParamImage(); CPropParamPtr GetPropertyParamForGrid(); CPropParamPtr GetPropertyParamChart(); // grid computing CGridDatasList GridDataTransfer(CPropParamPtr thePropParam); COTSParticleList GetAnalysisParticleList(CString a_DataSourceName); CRptParamFilePtr GetRptParamFilePtr(); protected: // property parameters list m_listPropParam contains 3 propParm object contrast to the ImageĦ˘ Table and Chart tab CPropParamsList m_listPropParams; // sample measure result files std::map m_mapSmplMgrs; // working sample index int m_nWorkingSampeIndex=0; //param file mgr CRptParamFileMgr m_rptparamfilemgr; CRptParamFilePtr m_rptparamfile; // get data source name list std::vector GetDataSourceNamesList(); // get source name pos list std::vector GetDataSourcePosList(); CElementChemistriesList GetUndefinedElementList(COTSParticleList a_listParticle, CPosXraysList a_listXray); BOOL EstimateShowColumn(CString a_strColName); }; typedef std::shared_ptr __declspec(dllexport) CReportMgrPtr; }