#include "stdafx.h"         
#ifndef _DIAGINFO_H
#define _DIAGINFO_H

//definition of CInfoTree
class CInfoTree : public CObList
{   
public :
//member       
	enum { TYPE_NULL, TYPE_CONST, TYPE_DATUM, TYPE_ADDRESS, TYPE_NOTES };
	BYTE m_bType;//the type of this point	
	BYTE m_bDatum;//if the type is datum , it is the value.
				//if the type is const , it is the sequence number.
	WORD m_wAddr; //it the type is address ,  it is the address
	CString m_strNotes;//to store to store the CONST infor or to store
					 //the explain notes
	
	BYTE m_bLevel;                   
	CInfoTree* m_pTheFather;	
	
	static CStringList m_theInfoFileBuffer;//contain CString
	static POSITION m_FilePosition;
	
//operation 
public :
	virtual void Initial();   
	CInfoTree* Get(BYTE bNum);
	void Test();
	
//construct and destruct
public :
	CInfoTree(CInfoTree* pTheFather);
	~CInfoTree();
		
 };
 
#endif
