| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #pragma once
- #include "DoubleRange.h"
- namespace OTSMODEL {
- using namespace OTSDATA;
- const int __declspec(dllexport) PART_SIZE_ITEM_NUMBER = 3;
- extern const double __declspec(dllexport) PART_LAST_NUMBER;
-
- class __declspec(dllexport) CPartSizeItem : public xmls::ISlo
- {
- public:
-
- CPartSizeItem(); // constructor
- CPartSizeItem(const CPartSizeItem&); // copy constructor
- CPartSizeItem(CPartSizeItem*); // copy constructor
- CPartSizeItem& operator=(const CPartSizeItem&); // =operator
- BOOL operator==(const CPartSizeItem&); // ==operator
- virtual ~CPartSizeItem(); // destructor
- // serialization
- void Serialize(bool isStoring, tinyxml2::XMLDocument * classDoc, tinyxml2::XMLElement * rootNode);
- //void Serialize(double start, double end); // serialization
- void BuildList(double start, double end);
- // name
- CString GetName() { return m_strName; }
- void SetName(CString a_strName) { m_strName = a_strName; }
- // size level range
- CDoubleRangePtr GetSizeLevel() { return m_poSizeLevel; }
- void SetSizeLevel(CDoubleRangePtr a_poSizeLevel);
- protected:
- // cleanup
- void Cleanup();
- // initialization
- void Init();
- // duplication
- void Duplicate(const CPartSizeItem& a_oSource);
- // name
- CString m_strName;
- // size level range
- CDoubleRangePtr m_poSizeLevel;
-
- };
- typedef std::shared_ptr<CPartSizeItem> __declspec(dllexport) CPartSizeItemPtr;
- typedef std::vector<CPartSizeItemPtr> __declspec(dllexport) CPartSizeItemList;
- }
|