#pragma once #include #include "OTSSTDLib.h" using namespace std; namespace OTSClassifyEngine { class __declspec(dllexport) CClassifyOnCurveCompEng { public: CClassifyOnCurveCompEng(int iStartChannel, CSTDLibPtr stdLib); // constructor virtual ~CClassifyOnCurveCompEng(); // detractor int GetMatchingSTDId( CPosXrayPtr posxray, double& dValue); CStandardItemPtr GetMatchingSTD( CPosXrayPtr posxray, double& dValue); protected: double GetCosValue( CPosXrayPtr posxray, CPosXrayPtr posXray1, int iDataLen1); double GetStdEvp( CPosXrayPtr posxray, DWORD* pXrayData1, int iDataLen1); void GetElementChannel(const vector& vecstrItemNames, vector& veciChannel); void GetElementChannel(CString strElementName, vector& veciChannel); void AddChannel(double dEnergy, vector& veciChannel); private: int m_iStartChannel; CSTDLibPtr m_stdLib; }; }