@brief Bencode������
| 74 | |
| 75 | /// @brief Bencode������ |
| 76 | class Decoder |
| 77 | { |
| 78 | private: |
| 79 | Value m_RootValue; |
| 80 | |
| 81 | // === �ڲ�״̬ === |
| 82 | int m_State; |
| 83 | std::stack<Value> m_StackValue; |
| 84 | std::stack<int> m_DictReadState; |
| 85 | std::stack<StringType> m_DictKeyState; |
| 86 | StringType m_TempString; |
| 87 | IntType m_TempInt; |
| 88 | bool m_TempIntNeg; |
| 89 | private: |
| 90 | bool closeValue(); |
| 91 | public: |
| 92 | /// @brief �����ַ����н��� |
| 93 | /// @return ���ܲ���һ����������true |
| 94 | bool operator<<(char c); |
| 95 | /// @brief ��ȡ��������� |
| 96 | const Value& operator->(); |
| 97 | const Value& operator*(); |
| 98 | /// @brief ����״̬ |
| 99 | void Reset(); |
| 100 | private: |
| 101 | Decoder& operator=(const Decoder&); |
| 102 | Decoder(const Decoder&); |
| 103 | public: |
| 104 | Decoder(); |
| 105 | }; |
| 106 | } |
nothing calls this directly
no outgoing calls
no test coverage detected