mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
25 lines
443 B
C++
25 lines
443 B
C++
|
|
#ifndef CODETREE_H_
|
|
#define CODETREE_H_
|
|
|
|
#include <string>
|
|
#include <boost/shared_ptr.hpp>
|
|
#include "CodeTreeNode.h"
|
|
|
|
class CodeTree
|
|
{
|
|
public:
|
|
CodeTree(void);
|
|
virtual ~CodeTree(void);
|
|
|
|
void addCode(const std::string& code, unsigned int stocktype);
|
|
unsigned int getStockType(const std::string& code) const;
|
|
|
|
private:
|
|
CodeTreeNodePtr m_head;
|
|
};
|
|
|
|
typedef boost::shared_ptr<CodeTree> CodeTreePtr;
|
|
|
|
#endif /* CODETREE_H_ */
|