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

Document Class Reference

#include <document.h>

List of all members.

Public Methods

 Document ()
void set_url (const char *url)
const char * url () const
void set_url_after_redirects (const char *url)
const char * url_after_redirects () const
void set_ip_addr (struct in_addr ip_addr)
const struct in_addr & ip_addr () const
void set_content_type (ContentType ct)
ContentType content_type () const
void set_content_len (uint32 len)
uint32 content_len () const
void set_language (Language lang)
Language language () const
void set_encoding (Encoding enc)
Encoding encoding () const
void Clear ()

Private Attributes

const char * url_
const char * url_after_redirects_
ContentType content_type_
Language language_
Encoding encoding_
in_addr ip_addr_
uint32 content_len_


Constructor & Destructor Documentation

Document::Document   [inline]
 

Definition at line 34 of file document.h.

References Clear().


Member Function Documentation

void Document::Clear   [inline]
 

Definition at line 64 of file document.h.

References CONTENT_GOOGLE_ERROR, content_type_, encoding_, ip_addr_, kDefaultEncoding, kDefaultLanguage, language_, NULL, url_, and url_after_redirects_.

Referenced by Document(), and ParseElt::Process_Document().

uint32 Document::content_len   const [inline]
 

Definition at line 55 of file document.h.

References content_len_, and uint32.

ContentType Document::content_type   const [inline]
 

Definition at line 52 of file document.h.

References content_type_, and ContentType.

Encoding Document::encoding   const [inline]
 

Definition at line 61 of file document.h.

References Encoding, and encoding_.

const struct in_addr& Document::ip_addr   const [inline]
 

Definition at line 49 of file document.h.

References ip_addr().

Referenced by ip_addr(), and set_ip_addr().

Language Document::language   const [inline]
 

Definition at line 58 of file document.h.

References Language, and language_.

void Document::set_content_len uint32    len [inline]
 

Definition at line 54 of file document.h.

References content_len_, and uint32.

Referenced by ParseElt::Process_Document().

void Document::set_content_type ContentType    ct [inline]
 

Definition at line 51 of file document.h.

References content_type_, and ContentType.

Referenced by ParseElt::Process_Document().

void Document::set_encoding Encoding    enc [inline]
 

Definition at line 60 of file document.h.

References Encoding, and encoding_.

Referenced by ParseElt::Process_Document().

void Document::set_ip_addr struct in_addr    ip_addr [inline]
 

Definition at line 46 of file document.h.

References ip_addr(), and ip_addr_.

Referenced by ParseElt::Process_Document().

void Document::set_language Language    lang [inline]
 

Definition at line 57 of file document.h.

References Language, and language_.

Referenced by ParseElt::Process_Document().

void Document::set_url const char *    url [inline]
 

Definition at line 36 of file document.h.

References url(), and url_.

Referenced by ParseElt::Process_Document().

void Document::set_url_after_redirects const char *    url [inline]
 

Definition at line 41 of file document.h.

References url(), and url_after_redirects_.

Referenced by ParseElt::Process_Document().

const char* Document::url   const [inline]
 

Definition at line 37 of file document.h.

References url_.

Referenced by PreparseCatParseHandler::NewDocument(), GraphParseHandler::NewDocument(), CatURLParseHandler::NewDocument(), set_url(), and set_url_after_redirects().

const char* Document::url_after_redirects   const [inline]
 

Definition at line 44 of file document.h.

References url_after_redirects_.

Referenced by GraphParseHandler::NewDocument().


Member Data Documentation

uint32 Document::content_len_ [private]
 

Definition at line 81 of file document.h.

Referenced by content_len(), and set_content_len().

ContentType Document::content_type_ [private]
 

Definition at line 77 of file document.h.

Referenced by Clear(), content_type(), and set_content_type().

Encoding Document::encoding_ [private]
 

Definition at line 79 of file document.h.

Referenced by Clear(), encoding(), and set_encoding().

struct in_addr Document::ip_addr_ [private]
 

Definition at line 80 of file document.h.

Referenced by Clear(), and set_ip_addr().

Language Document::language_ [private]
 

Definition at line 78 of file document.h.

Referenced by Clear(), language(), and set_language().

const char* Document::url_ [private]
 

Definition at line 74 of file document.h.

Referenced by Clear(), set_url(), and url().

const char* Document::url_after_redirects_ [private]
 

Definition at line 76 of file document.h.

Referenced by Clear(), set_url_after_redirects(), and url_after_redirects().


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