⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htstruct.h

📁 www工具包
💻 H
字号:
/*    					W3C Sample Code Library libwww Structured Stream Class!  Structured Stream Class!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*The Structured stream class defines objects which accepts a structuredsequence of characters for eaxmple a SGML document. I'll rephrase that. Astructured object is am ordered tree-structured arrangement of data whichis representable as text. An example is the SGML parserwhich outputs to a Structured Object. A Structured object can output itscontents to another Structured Object. It's a kind of typedstream. The architecure is largely Dan Conolly's. Elements and entities arepassed to the sob by number, implying a knowledge of the DTD.The Structured Stream is a subclass of aGeneric Stream Object. As always, we don't haveclasses in basic C so we have to do this by hand!This module is a part of the W3C Sample Code Library.*/#ifndef HTSTRUCT_H#define HTSTRUCT_H#include "HTStream.h"#include "HTList.h"/**/typedef struct _HTStructured HTStructured;typedef struct _HTStructuredClass {    char * name;    int (*flush)	(HTStructured * me);    int (*_free)	(HTStructured *	me);    int (*abort)	(HTStructured *	me, HTList * errorlist);    int (*put_character)(HTStructured *	me, char ch);    int (*put_string)	(HTStructured *	me, const char * str);    int (*put_block)	(HTStructured * me, const char * str, int len);/*See the Generic Stream Definition for an explanationof these methods. Note that they all have a HTStructured objecta the parameter, not a generic stream. This is to avoid incompatiblepointer warnings*/    void (*start_element)(HTStructured *me,			  int		element_number,			  const BOOL *	attribute_present,			  const char **	attribute_value);    void (*end_element)	(HTStructured *	me, int element_number);    void (*put_entity)	(HTStructured *	me, int entity_number);    int (*unparsed_begin_element)(HTStructured * me, const char * str, int len);    int (*unparsed_end_element)(HTStructured * me, const char * str, int len);    int (*unparsed_entity)(HTStructured * me, const char * str, int len);		} HTStructuredClass;#endif/*    @(#) $Id: HTStruct.html,v 2.13 1999/01/06 15:38:47 frystyk Exp $*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -