123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #pragma once
- #include "GBImgPropCal.h"
- #include "PropParam.h"
- #include "SmplMsrResultFileMgr.h"
- #include "GridData.h"
- #include "IncAFileMgr.h"
- #include "RptParamFile.h"
- #include <RptParamFileMgr.h>
- 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<CString, CSmplMsrResultFileMgrPtr> 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<CString> GetDataSourceNamesList();
- // get source name pos list
- std::vector<int> GetDataSourcePosList();
-
- CElementChemistriesList GetUndefinedElementList(COTSParticleList a_listParticle, CPosXraysList a_listXray);
- BOOL EstimateShowColumn(CString a_strColName);
-
-
- };
- typedef std::shared_ptr<CReportMgr> __declspec(dllexport) CReportMgrPtr;
- }
|