15 #ifndef DOCUMENTSPEC_H
16 #define DOCUMENTSPEC_H
18 #include "pandabase.h"
20 #include "httpEntityTag.h"
36 INLINE DocumentSpec(
const string &url);
37 INLINE DocumentSpec(
const URLSpec &url);
38 INLINE DocumentSpec(
const DocumentSpec ©);
39 INLINE
void operator = (
const DocumentSpec ©);
41 INLINE
bool operator == (
const DocumentSpec &other)
const;
42 INLINE
bool operator != (
const DocumentSpec &other)
const;
43 INLINE
bool operator < (
const DocumentSpec &other)
const;
44 int compare_to(
const DocumentSpec &other)
const;
46 INLINE
void set_url(
const URLSpec &url);
47 INLINE
const URLSpec &get_url()
const;
50 INLINE
bool has_tag()
const;
52 INLINE
void clear_tag();
54 INLINE
void set_date(
const HTTPDate &date);
55 INLINE
bool has_date()
const;
56 INLINE
const HTTPDate &get_date()
const;
57 INLINE
void clear_date();
66 INLINE
void set_request_mode(RequestMode request_mode);
67 INLINE RequestMode get_request_mode()
const;
75 INLINE
void set_cache_control(CacheControl cache_control);
76 INLINE CacheControl get_cache_control()
const;
78 bool input(istream &in);
79 void output(ostream &out)
const;
80 void write(ostream &out,
int indent_level = 0)
const;
86 RequestMode _request_mode;
87 CacheControl _cache_control;
96 INLINE istream &operator >> (istream &in,
DocumentSpec &doc);
97 INLINE ostream &operator << (ostream &out,
const DocumentSpec &doc);
99 #include "documentSpec.I"
A container for a URL, e.g.
A container for an "entity tag" from an HTTP server.
A container for an HTTP-legal time/date indication.
An STL function object class, this is intended to be used on any ordered collection of class objects ...
A descriptor that refers to a particular version of a document.