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

DocumentSpec Class Reference

#include <documentSpec.h>

List of all members.

Private Types

enum  RequestMode { RM_any, RM_equal, RM_newer, RM_equal_or_newer }
enum  CacheControl { CC_allow_cache, CC_revalidate, CC_no_cache }
enum  Flags { F_has_tag = 0x0001, F_has_date = 0x0002 }

Private Member Functions

INLINE DocumentSpec (const string &url)
INLINE DocumentSpec (const URLSpec &url)
INLINE DocumentSpec (const DocumentSpec &copy)
INLINE void operator= (const DocumentSpec &copy)
INLINE bool operator== (const DocumentSpec &other) const
INLINE bool operator!= (const DocumentSpec &other) const
INLINE bool operator< (const DocumentSpec &other) const
int compare_to (const DocumentSpec &other) const
INLINE void set_url (const URLSpec &url)
INLINE const URLSpecget_url () const
INLINE void set_tag (const HTTPEntityTag &tag)
INLINE bool has_tag () const
INLINE const HTTPEntityTagget_tag () const
INLINE void clear_tag ()
INLINE void set_date (const HTTPDate &date)
INLINE bool has_date () const
INLINE const HTTPDateget_date () const
INLINE void clear_date ()
INLINE void set_request_mode (RequestMode request_mode)
INLINE RequestMode get_request_mode () const
INLINE void set_cache_control (CacheControl cache_control)
INLINE CacheControl get_cache_control () const
bool input (istream &in)
void output (ostream &out) const
void write (ostream &out, int indent_level=0) const

Private Attributes

PUBLISHED __pad0__: INLINE DocumentSpec()
URLSpec _url
HTTPEntityTag _tag
HTTPDate _date
RequestMode _request_mode
CacheControl _cache_control
int _flags


Member Enumeration Documentation

enum DocumentSpec::CacheControl [private]
 

Enumeration values:
CC_allow_cache 
CC_revalidate 
CC_no_cache 

Definition at line 73 of file documentSpec.h.

enum DocumentSpec::Flags [private]
 

Enumeration values:
F_has_tag 
F_has_date 

Definition at line 93 of file documentSpec.h.

enum DocumentSpec::RequestMode [private]
 

Enumeration values:
RM_any 
RM_equal 
RM_newer 
RM_equal_or_newer 

Definition at line 63 of file documentSpec.h.


Constructor & Destructor Documentation

INLINE DocumentSpec::DocumentSpec const string &  url  )  [private]
 

Referenced by input().

INLINE DocumentSpec::DocumentSpec const URLSpec url  )  [private]
 

INLINE DocumentSpec::DocumentSpec const DocumentSpec &  copy  )  [private]
 


Member Function Documentation

INLINE void DocumentSpec::clear_date  )  [private]
 

INLINE void DocumentSpec::clear_tag  )  [private]
 

int DocumentSpec::compare_to const DocumentSpec &  other  )  const [private]
 

Definition at line 29 of file documentSpec.cxx.

References _date, _flags, _tag, _url, c, HTTPDate::compare_to(), HTTPEntityTag::compare_to(), URLSpec::compare_to(), has_date(), and has_tag().

INLINE CacheControl DocumentSpec::get_cache_control  )  const [private]
 

INLINE const HTTPDate& DocumentSpec::get_date  )  const [private]
 

Referenced by input(), output(), and write().

INLINE RequestMode DocumentSpec::get_request_mode  )  const [private]
 

INLINE const HTTPEntityTag& DocumentSpec::get_tag  )  const [private]
 

Referenced by output(), and write().

INLINE const URLSpec& DocumentSpec::get_url  )  const [private]
 

Referenced by output(), and write().

INLINE bool DocumentSpec::has_date  )  const [private]
 

Referenced by compare_to(), output(), and write().

INLINE bool DocumentSpec::has_tag  )  const [private]
 

Referenced by compare_to(), output(), and write().

bool DocumentSpec::input istream &  in  )  [private]
 

Definition at line 64 of file documentSpec.cxx.

References _url, DocumentSpec(), get_date(), HTTPDate::is_valid(), set_date(), and set_tag().

INLINE bool DocumentSpec::operator!= const DocumentSpec &  other  )  const [private]
 

INLINE bool DocumentSpec::operator< const DocumentSpec &  other  )  const [private]
 

INLINE void DocumentSpec::operator= const DocumentSpec &  copy  )  [private]
 

INLINE bool DocumentSpec::operator== const DocumentSpec &  other  )  const [private]
 

void DocumentSpec::output ostream &  out  )  const [private]
 

Definition at line 114 of file documentSpec.cxx.

References get_date(), get_tag(), get_url(), has_date(), and has_tag().

INLINE void DocumentSpec::set_cache_control CacheControl  cache_control  )  [private]
 

INLINE void DocumentSpec::set_date const HTTPDate date  )  [private]
 

Referenced by input().

INLINE void DocumentSpec::set_request_mode RequestMode  request_mode  )  [private]
 

INLINE void DocumentSpec::set_tag const HTTPEntityTag tag  )  [private]
 

Referenced by input().

INLINE void DocumentSpec::set_url const URLSpec url  )  [private]
 

void DocumentSpec::write ostream &  out,
int  indent_level = 0
const [private]
 

Definition at line 131 of file documentSpec.cxx.

References get_date(), get_tag(), get_url(), has_date(), has_tag(), and indent().


Member Data Documentation

PUBLISHED DocumentSpec::__pad0__ [private]
 

Definition at line 39 of file documentSpec.h.

CacheControl DocumentSpec::_cache_control [private]
 

Definition at line 91 of file documentSpec.h.

HTTPDate DocumentSpec::_date [private]
 

Definition at line 89 of file documentSpec.h.

Referenced by compare_to().

int DocumentSpec::_flags [private]
 

Definition at line 97 of file documentSpec.h.

Referenced by compare_to().

RequestMode DocumentSpec::_request_mode [private]
 

Definition at line 90 of file documentSpec.h.

HTTPEntityTag DocumentSpec::_tag [private]
 

Definition at line 88 of file documentSpec.h.

Referenced by compare_to().

URLSpec DocumentSpec::_url [private]
 

Definition at line 87 of file documentSpec.h.

Referenced by compare_to(), and input().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:11:54 2003 for Panda by doxygen1.3