|
/******************************************************************
[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.
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
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.