Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ParseElt Class Reference

#include <parseelt.h>

Collaboration diagram for ParseElt:

Collaboration graph
[legend]
List of all members.

Public Types

typedef vector< ParseHandler * > * HandlerVec

Static Public Methods

void Process_Document (ReposReader *rr, HandlerVec ph)

Private Types

typedef void(* ParseEltMethod )(int pc, ReposReader *rr, HandlerVec ph)

Static Private Methods

void Process_Header (int pc, ReposReader *rr, HandlerVec ph)
void Process_ResponseCode (int pc, ReposReader *rr, HandlerVec ph)
void Process_BaseURL (int pc, ReposReader *rr, HandlerVec ph)
void Process_Anchor (int pc, ReposReader *rr, HandlerVec ph)
void Process_LocalName (int pc, ReposReader *rr, HandlerVec ph)
void Process_AnchorDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_ChangeFontColor (int pc, ReposReader *rr, HandlerVec ph)
void Process_ChangeFontColorEnd (int pc, ReposReader *rr, HandlerVec ph)
void Process_ChangeBGColor (int pc, ReposReader *rr, HandlerVec ph)
void Process_ChangeBGColorEnd (int pc, ReposReader *rr, HandlerVec ph)
void Process_Image (int pc, ReposReader *rr, HandlerVec ph)
void Process_ImageHeight (int pc, ReposReader *rr, HandlerVec ph)
void Process_ImageWidth (int pc, ReposReader *rr, HandlerVec ph)
void Process_Applet (int pc, ReposReader *rr, HandlerVec ph)
void Process_AppletDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_IFrame (int pc, ReposReader *rr, HandlerVec ph)
void Process_IFrameDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Frame (int pc, ReposReader *rr, HandlerVec ph)
void Process_Area (int pc, ReposReader *rr, HandlerVec ph)
void Process_Meta (int pc, ReposReader *rr, HandlerVec ph)
void Process_Frameset (int pc, ReposReader *rr, HandlerVec ph)
void Process_FramesetDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Body (int pc, ReposReader *rr, HandlerVec ph)
void Process_BodyDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_ParagraphStart (int pc, ReposReader *rr, HandlerVec ph)
void Process_ParagraphEnd (int pc, ReposReader *rr, HandlerVec ph)
void Process_Break (int pc, ReposReader *rr, HandlerVec ph)
void Process_HorizontalRule (int pc, ReposReader *rr, HandlerVec ph)
void Process_ListItem (int pc, ReposReader *rr, HandlerVec ph)
void Process_UnorderedList (int pc, ReposReader *rr, HandlerVec ph)
void Process_OrderedList (int pc, ReposReader *rr, HandlerVec ph)
void Process_ListDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Div (int pc, ReposReader *rr, HandlerVec ph)
void Process_DivDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Span (int pc, ReposReader *rr, HandlerVec ph)
void Process_SpanDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Table (int pc, ReposReader *rr, HandlerVec ph)
void Process_TableDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Caption (int pc, ReposReader *rr, HandlerVec ph)
void Process_CaptionDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_TableHCell (int pc, ReposReader *rr, HandlerVec ph)
void Process_TableDCell (int pc, ReposReader *rr, HandlerVec ph)
void Process_TableCellDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_TableRow (int pc, ReposReader *rr, HandlerVec ph)
void Process_TableRowDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Form (int pc, ReposReader *rr, HandlerVec ph)
void Process_FormDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Select (int pc, ReposReader *rr, HandlerVec ph)
void Process_SelectDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Option (int pc, ReposReader *rr, HandlerVec ph)
void Process_OptionDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_TextArea (int pc, ReposReader *rr, HandlerVec ph)
void Process_TextAreaDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Input (int pc, ReposReader *rr, HandlerVec ph)
void Process_Heading (int pc, ReposReader *rr, HandlerVec ph)
void Process_HeadingDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Noframes (int pc, ReposReader *rr, HandlerVec ph)
void Process_NoframesDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Object (int pc, ReposReader *rr, HandlerVec ph)
void Process_ObjectDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_Param (int pc, ReposReader *rr, HandlerVec ph)
void Process_Embed (int pc, ReposReader *rr, HandlerVec ph)
void Process_Head (int pc, ReposReader *rr, HandlerVec ph)
void Process_HeadDone (int pc, ReposReader *rr, HandlerVec ph)
void Process_SetFace (int pc, ReposReader *rr, HandlerVec ph)
void Process_SetSize (int pc, ReposReader *rr, HandlerVec ph)
void Process_TermOrPunct (int pc, ReposReader *rr, HandlerVec ph)

Static Private Attributes

const int kTextBufSize = 1024
const ParseEltMethod kParseCodeTable []
char cbuf1_ []
char cbuf2_ []
int cur_face_ = 0
int cur_size_ = 0
Document doc_ = Document()

Member Typedef Documentation

typedef vector<ParseHandler*>* ParseElt::HandlerVec
 

Definition at line 32 of file parseelt.h.

typedef void(* ParseElt::ParseEltMethod)(int pc, ReposReader* rr, HandlerVec ph) [private]
 

Definition at line 111 of file parseelt.h.


Member Function Documentation

void ParseElt::Process_Anchor int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 215 of file parseelt.cc.

References CALL2, kParseElt_Anchor, and ReposReader::ReadCharStar().

void ParseElt::Process_AnchorDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 230 of file parseelt.cc.

References CALL0, and kParseElt_AnchorDone.

void ParseElt::Process_Applet int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 269 of file parseelt.cc.

References CALL2, kParseElt_Applet, and ReposReader::ReadCharStar().

void ParseElt::Process_AppletDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 276 of file parseelt.cc.

References CALL0, and kParseElt_AppletDone.

void ParseElt::Process_Area int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 300 of file parseelt.cc.

References CALL2, kParseElt_Area, and ReposReader::ReadCharStar().

void ParseElt::Process_BaseURL int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 207 of file parseelt.cc.

References CALL2, kParseElt_BaseURL, and ReposReader::ReadCharStar().

void ParseElt::Process_Body int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 326 of file parseelt.cc.

References CALL2, kParseElt_Body, and ReposReader::ReadCharStar().

void ParseElt::Process_BodyDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 333 of file parseelt.cc.

References CALL0, and kParseElt_BodyDone.

void ParseElt::Process_Break int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 350 of file parseelt.cc.

References CALL0, and kParseElt_Break.

void ParseElt::Process_Caption int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 418 of file parseelt.cc.

References CALL0, and kParseElt_Caption.

void ParseElt::Process_CaptionDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 423 of file parseelt.cc.

References CALL0, and kParseElt_CaptionDone.

void ParseElt::Process_ChangeBGColor int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 249 of file parseelt.cc.

References CALL2, kParseElt_ChangeBGColor, and ReposReader::ReadCharStar().

void ParseElt::Process_ChangeBGColorEnd int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 256 of file parseelt.cc.

References CALL0, and kParseElt_ChangeBGColorEnd.

void ParseElt::Process_ChangeFontColor int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 235 of file parseelt.cc.

References CALL2, kParseElt_ChangeFontColor, and ReposReader::ReadCharStar().

void ParseElt::Process_ChangeFontColorEnd int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 243 of file parseelt.cc.

References CALL0, and kParseElt_ChangeFontColorEnd.

void ParseElt::Process_Div int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 380 of file parseelt.cc.

References CALL2, kParseElt_Div, and ReposReader::ReadCharStar().

void ParseElt::Process_DivDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 387 of file parseelt.cc.

References CALL2, kParseElt_DivDone, and ReposReader::ReadCharStar().

void ParseElt::Process_Document ReposReader   rr,
HandlerVec    ph
[static]
 

Definition at line 133 of file parseelt.cc.

References CALL1, Document::Clear(), ContentType, doc_, Encoding, IntToString(), IS_TERM_OR_PUNCT, kBeginDocMarker, kEndDocMarker, kParseCodeTable, kParseElt_LASTCODE, Language, NULL, ReposReader::ParseError(), Process_TermOrPunct(), ReposReader::ReadByte(), ReposReader::ReadCharStar(), ReposReader::ReadFixedUint32(), ReposReader::ReadInt(), ReposReader::ReadVarUint32(), Document::set_content_len(), Document::set_content_type(), Document::set_encoding(), Document::set_ip_addr(), Document::set_language(), Document::set_url(), and Document::set_url_after_redirects().

Referenced by Ripper::RipRepository().

void ParseElt::Process_Embed int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 552 of file parseelt.cc.

References CALL2, kParseElt_Embed, and ReposReader::ReadCharStar().

void ParseElt::Process_Form int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 457 of file parseelt.cc.

References CALL2, kParseElt_Form, and ReposReader::ReadCharStar().

void ParseElt::Process_FormDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 464 of file parseelt.cc.

References CALL0, and kParseElt_FormDone.

void ParseElt::Process_Frame int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 293 of file parseelt.cc.

References CALL2, kParseElt_Frame, and ReposReader::ReadCharStar().

void ParseElt::Process_Frameset int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 314 of file parseelt.cc.

References CALL2, kParseElt_Frameset, and ReposReader::ReadCharStar().

void ParseElt::Process_FramesetDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 321 of file parseelt.cc.

References CALL0, and kParseElt_FramesetDone.

void ParseElt::Process_Head int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 559 of file parseelt.cc.

References CALL2, kParseElt_Head, and ReposReader::ReadCharStar().

void ParseElt::Process_HeadDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 566 of file parseelt.cc.

References CALL0, and kParseElt_HeadDone.

void ParseElt::Process_Header int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 185 of file parseelt.cc.

References CALL4, cbuf1_, kParseElt_Header, and ReposReader::ReadCharStar().

void ParseElt::Process_Heading int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 512 of file parseelt.cc.

References CALL1, kParseElt_Heading, and ReposReader::ReadInt().

void ParseElt::Process_HeadingDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 518 of file parseelt.cc.

References CALL0, and kParseElt_HeadingDone.

void ParseElt::Process_HorizontalRule int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 355 of file parseelt.cc.

References CALL0, and kParseElt_HorizontalRule.

void ParseElt::Process_IFrame int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 281 of file parseelt.cc.

References CALL2, kParseElt_IFrame, and ReposReader::ReadCharStar().

void ParseElt::Process_IFrameDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 288 of file parseelt.cc.

References CALL0, and kParseElt_IFrameDone.

void ParseElt::Process_Image int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 262 of file parseelt.cc.

References CALL2, kParseElt_Image, and ReposReader::ReadCharStar().

void ParseElt::Process_ImageHeight int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

void ParseElt::Process_ImageWidth int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

void ParseElt::Process_Input int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 505 of file parseelt.cc.

References CALL2, kParseElt_Input, and ReposReader::ReadCharStar().

void ParseElt::Process_ListDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 375 of file parseelt.cc.

References CALL0, and kParseElt_ListDone.

void ParseElt::Process_ListItem int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 360 of file parseelt.cc.

References CALL0, and kParseElt_ListItem.

void ParseElt::Process_LocalName int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 223 of file parseelt.cc.

References CALL2, kParseElt_LocalName, and ReposReader::ReadCharStar().

void ParseElt::Process_Meta int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 307 of file parseelt.cc.

References CALL2, kParseElt_Meta, and ReposReader::ReadCharStar().

void ParseElt::Process_Noframes int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 523 of file parseelt.cc.

References CALL0, and kParseElt_Noframes.

void ParseElt::Process_NoframesDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 528 of file parseelt.cc.

References CALL0, and kParseElt_NoframesDone.

void ParseElt::Process_Object int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 533 of file parseelt.cc.

References CALL2, kParseElt_Object, and ReposReader::ReadCharStar().

void ParseElt::Process_ObjectDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 540 of file parseelt.cc.

References CALL0, and kParseElt_ObjectDone.

void ParseElt::Process_Option int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 481 of file parseelt.cc.

References CALL2, kParseElt_Option, and ReposReader::ReadCharStar().

void ParseElt::Process_OptionDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 488 of file parseelt.cc.

References CALL0, and kParseElt_OptionDone.

void ParseElt::Process_OrderedList int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 370 of file parseelt.cc.

References CALL0, and kParseElt_OrderedList.

void ParseElt::Process_ParagraphEnd int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 345 of file parseelt.cc.

References CALL0, and kParseElt_ParagraphEnd.

void ParseElt::Process_ParagraphStart int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 338 of file parseelt.cc.

References CALL2, kParseElt_ParagraphStart, and ReposReader::ReadCharStar().

void ParseElt::Process_Param int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 545 of file parseelt.cc.

References CALL2, kParseElt_Param, and ReposReader::ReadCharStar().

void ParseElt::Process_ResponseCode int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 201 of file parseelt.cc.

References CALL1, kParseElt_ResponseCode, and ReposReader::ReadInt().

void ParseElt::Process_Select int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 469 of file parseelt.cc.

References CALL2, kParseElt_Select, and ReposReader::ReadCharStar().

void ParseElt::Process_SelectDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 476 of file parseelt.cc.

References CALL0, and kParseElt_SelectDone.

void ParseElt::Process_SetFace int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 571 of file parseelt.cc.

References cur_face_, kParseElt_SetFace, and ReposReader::ReadInt().

void ParseElt::Process_SetSize int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 576 of file parseelt.cc.

References cur_size_, kParseElt_SetSize, and ReposReader::ReadInt().

void ParseElt::Process_Span int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 394 of file parseelt.cc.

References CALL2, kParseElt_Span, and ReposReader::ReadCharStar().

void ParseElt::Process_SpanDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 401 of file parseelt.cc.

References CALL2, kParseElt_SpanDone, and ReposReader::ReadCharStar().

void ParseElt::Process_Table int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 408 of file parseelt.cc.

References CALL0, and kParseElt_Table.

void ParseElt::Process_TableCellDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 442 of file parseelt.cc.

References CALL0, and kParseElt_TableCellDone.

void ParseElt::Process_TableDCell int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 435 of file parseelt.cc.

References CALL2, kParseElt_TableDCell, and ReposReader::ReadCharStar().

void ParseElt::Process_TableDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 413 of file parseelt.cc.

References CALL0, and kParseElt_TableDone.

void ParseElt::Process_TableHCell int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 428 of file parseelt.cc.

References CALL2, kParseElt_TableHCell, and ReposReader::ReadCharStar().

void ParseElt::Process_TableRow int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 447 of file parseelt.cc.

References CALL0, and kParseElt_TableRow.

void ParseElt::Process_TableRowDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 452 of file parseelt.cc.

References CALL0, and kParseElt_TableRowDone.

void ParseElt::Process_TermOrPunct int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 581 of file parseelt.cc.

References CALL0, CALL4, cur_face_, cur_size_, GET_LENGTH, GET_LENGTH_FOLLOWS, GET_WHITESPACE_FOLLOWS, IS_TERM, ReposReader::ReadCharsOnly(), and ReposReader::ReadCharStar().

Referenced by Process_Document().

void ParseElt::Process_TextArea int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 493 of file parseelt.cc.

References CALL2, kParseElt_TextArea, and ReposReader::ReadCharStar().

void ParseElt::Process_TextAreaDone int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 500 of file parseelt.cc.

References CALL0, and kParseElt_TextAreaDone.

void ParseElt::Process_UnorderedList int    pc,
ReposReader   rr,
HandlerVec    ph
[static, private]
 

Definition at line 365 of file parseelt.cc.

References CALL0, and kParseElt_UnorderedList.


Member Data Documentation

char ParseElt::cbuf1_ [static, private]
 

Definition at line 127 of file parseelt.cc.

Referenced by Process_Header().

char ParseElt::cbuf2_ [static, private]
 

Definition at line 128 of file parseelt.cc.

int ParseElt::cur_face_ = 0 [static, private]
 

Definition at line 129 of file parseelt.cc.

Referenced by Process_SetFace(), and Process_TermOrPunct().

int ParseElt::cur_size_ = 0 [static, private]
 

Definition at line 130 of file parseelt.cc.

Referenced by Process_SetSize(), and Process_TermOrPunct().

Document ParseElt::doc_ = Document() [static, private]
 

Definition at line 131 of file parseelt.cc.

Referenced by Process_Document().

const ParseElt::ParseEltMethod ParseElt::kParseCodeTable [static, private]
 

Definition at line 57 of file parseelt.cc.

Referenced by Process_Document().

const int ParseElt::kTextBufSize = 1024 [static, private]
 

Definition at line 110 of file parseelt.h.


Generated on Wed May 29 11:37:26 2002 for MarkovPR by doxygen1.2.15