12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #pragma once
- #include "IntRange.h"
- namespace OTSDATA
- {
- class __declspec(dllexport) COTSPeak /*: public xmls::ISlo*/
- {
-
- public:
- COTSPeak(); // constructor
- COTSPeak(const COTSPeak&); // copy constructor
- COTSPeak(COTSPeak*); // copy constructor
- COTSPeak& operator=(const COTSPeak&); // =operator
- BOOL operator==(const COTSPeak&); // =operator
- virtual ~COTSPeak(); // detractor
-
- // serialization
- //void Serialize(bool isStoring, tinyxml2::XMLDocument * classDoc, tinyxml2::XMLElement * rootNode);
- // peak position
- long GetPosition() { return m_nPosition; }
- void SetPosition(long a_nPosition) { m_nPosition = a_nPosition; }
- // peak height
- long GetHeight() { return m_nHeight; }
- void SetHeight(long a_nHeight) { m_nHeight = a_nHeight; }
- // peak range
- CIntRange GetRange() { return m_oRange; }
- void SetRange(CIntRange a_oRange) { m_oRange = a_oRange; }
- protected:
- // cleanup
- void Cleanup();
- // initialization
- void Init();
- // duplication
- void Duplicate(const COTSPeak& a_oSource);
- // peak position
- long m_nPosition;
- // peak height
- long m_nHeight;
- // peak range
- CIntRange m_oRange;
- };
- typedef std::shared_ptr<COTSPeak> __declspec(dllexport) COTSPeakPtr;
- typedef std::vector<COTSPeakPtr> __declspec(dllexport) COTSPeakList;
- }
|