Click here to Skip to main content
15,884,007 members
Articles / Desktop Programming / MFC

SDI (Sound Device Interface)--A library for Auditory Display

Rate me:
Please Sign up or sign in to vote.
4.60/5 (3 votes)
2 May 20046 min read 110.2K   3.7K   45  
A GDI-like API for 3D positioning of speech, and MIDI composition using a single string.
/******************************************************************
[Copy Right Info]

File Name: parser.h

Description:

Note:

[Version Info]


********************************************************************/

#if !defined(PARSER_H_B82B32DB_2900_44FE_8268_40FAB333B75C_INCLUDED)
#define PARSER_H_B82B32DB_2900_44FE_8268_40FAB333B75C_INCLUDED

//////////////////////////////////////////////////////////////
// Included Headers
////////////////////////



//////////////////////////////////////////////////////////////
// Constants
////////////////////////
#define LANGUAGE_MANDARIN_CHINESE			0x0000
#define LANGUAGE_ENGLISH					0x0001
#define LANGUAGE_TRIDITIONAL_CHINESE		0x0002


//////////////////////////////////////////////////////////////
// Macros (Inline Functions)
////////////////////////



//////////////////////////////////////////////////////////////
// Structures
////////////////////////
typedef struct tagTITLE{
	INT   nCategory;
	PTSTR psTitle;
	PTSTR psContentUrl;
	DWORD status;
} TITLE;

typedef INT (*PARSETITLEPROC)(PTSTR psText, INT nCategory, TITLE* pTitle); 
typedef INT (*PARSECONTENTPROC)(PTSTR psText, INT nCategory, PTSTR psContent);
 
typedef struct tagCATEGORY{
	PTSTR psCategoryName;
	PTSTR psCategoryUrl;
	TITLE *pTitle;
	INT   nTitle;
} CATEGORY;

typedef struct tagPARSERDESC{
	TCHAR* psSiteName;
	TCHAR* psSiteUrl;
	DWORD  dwLanguage;
	
	CATEGORY* pCategory;
	INT	   nCategory;
	
	PARSETITLEPROC pfnParseTitle;
	PARSECONTENTPROC pfnParseContent;
} PARSERDESC;

//////////////////////////////////////////////////////////////
// Function Prototypes
// [Exported]
////////////////////////
__declspec(dllexport) PARSERDESC* GetParserDescriptor();

//////////////////////////////////////////////////////////////
// Function Prototypes
// [Non-exported]
////////////////////////



#endif //!defined(PARSER_H_B82B32DB_2900_44FE_8268_40FAB333B75C_INCLUDED)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
China China
A student at Zhejiang University, Zhejiang, China.
Major in Automation.
Now I want to study machine vision and robotics, but I'm really consumed with choices between hardware and software, and between research and engineering.
I'll be glad if you can give some suggestions.

Comments and Discussions