| 对比新文件 |
| | |
| | | #pragma once |
| | | #include "Context.h" |
| | | #include "ServoCommo.h" |
| | | |
| | | |
| | | namespace SERVO { |
| | | class CSlot |
| | | { |
| | | public: |
| | | CSlot(); |
| | | virtual ~CSlot(); |
| | | |
| | | public: |
| | | BOOL isEnable(); |
| | | void enable(); |
| | | void disable(); |
| | | BOOL isLock(); |
| | | void lock(); |
| | | void unlock(); |
| | | int getPosition(); |
| | | void setPosition(int position); |
| | | int getNo(); |
| | | void setNo(int no); |
| | | MaterialsType getType(); |
| | | void setType(MaterialsType type); |
| | | std::string& getName(); |
| | | void setName(const char* pszName); |
| | | BOOL isEmpty(); |
| | | CContext* getContext(); |
| | | void setContext(CContext* pContext); |
| | | void serialize(CArchive& ar); |
| | | |
| | | private: |
| | | void WriteString(CArchive& ar, std::string& string); |
| | | void ReadString(CArchive& ar, std::string& string); |
| | | |
| | | private: |
| | | int m_nPosition; |
| | | int m_nNo; |
| | | MaterialsType m_materialsType; |
| | | std::string m_strName; |
| | | CContext* m_pContext; |
| | | BOOL m_bEnable; |
| | | BOOL m_bLock; |
| | | }; |
| | | } |
| | | |