www.pudn.com > dialogic_IVR.rar > Mindex.h


// Mindex.h: interface for the CMindex class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MINDEX_H__0D0F60B1_4EF2_11D3_87CB_0080C8D7C3FC__INCLUDED_) 
#define AFX_MINDEX_H__0D0F60B1_4EF2_11D3_87CB_0080C8D7C3FC__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Vocinfo.h" 
/* 
typedef struct 
{ 
	char	Id; 
	int		Offset; 
	int		Length; 
	char	Note[21]; 
}IDXINFO; 
*/ 
class CMindex   
{ 
public: 
	IDXINFO	*pCombIdx; 
	char	*pCombBuf; 
	int		Count; 
	int		CombBufLen; 
	char    DestPath[256]; 
  
public: 
	CMindex(); 
	virtual	~CMindex(); 
	void	SetPath( char *m_Path ); 
	int		ReadIdx( void );	 
	int		WriteIdx( void ); 
	int		ReadBuf( void ); 
	int		WriteBuf( void ); 
	int		RallocComb( int m_Length ); 
	int		FindId( char m_Id, int &m_Offset, int &m_Length ); 
	int		AddNode( char ID, char *TagFile, char *TagNote); 
	int		DelNode( char ID ); 
	int		InitCombvox( char *IniFile, char *Section ); 
	int		ReadEnglish( char *IniFile, char *Section ); 
	int		GetCount( void ); 
	IDXINFO *GetCombIdx( void ); 
	int		GetCombBufLen( void ); 
	char	*GetCombBuf( void ); 
	void	ResetComb( void ); 
}; 
 
extern char *GetProfile(char *Profile,char *Section,char *Field, char *Value ); 
extern void SplitTextAndNote(char *stext, char *text, char *note); 
 
#endif // !defined(AFX_MINDEX_H__0D0F60B1_4EF2_11D3_87CB_0080C8D7C3FC__INCLUDED_)