12345678910111213141516171819202122232425262728293031323334353637 |
- #pragma once
- #include <string>
- #include "OTSParticle.h"
- //#include "PosXrayInfo.h"
- #include <PosXray.h>
- namespace OTSClassifyEngine
- {
- using std::string;
- using namespace OTSDATA;
- //define interface
- class __declspec(dllexport) IClassifyEngine
- {
- public:
- IClassifyEngine() //³ÉÔ±Áбí³õʼ»¯²ÎÊý
- {};
- virtual ~IClassifyEngine() {};
- virtual bool Init() = 0;//
- //virtual bool ClassifyByXrayInfo(COTSParticlePtr particle, CPosXrayInfoPtr xrayInfo) = 0;//
- virtual bool Classify(COTSParticlePtr particle, CPosXrayPtr xray) = 0;//
-
- virtual bool Classify(COTSParticlePtr particle,int SteelTech, CPosXrayPtr xray) = 0;//
- virtual bool IfNeedMaxEDS(COTSParticlePtr particle, CPosXrayPtr xray, double& MaxEDSTime) = 0;
- };
- typedef std::shared_ptr<IClassifyEngine> __declspec(dllexport) CLEEnginePtr;
- __declspec(dllexport) CLEEnginePtr GetInclutionEngine();//will be initialized at the first time.and it's a singleton object.
- __declspec(dllexport) CLEEnginePtr GetParticleEngine(std::string libName);//will be initialized at the first time.and it's a singleton object.
- __declspec(dllexport) CLEEnginePtr GetCurveCompareEngine(std::string libName);//will be initialized at the first time.and it's a singleton object.
- }
|