14 #ifndef DOCUMENTSPEC_H 15 #define DOCUMENTSPEC_H 38 INLINE
bool operator == (
const DocumentSpec &other)
const;
39 INLINE
bool operator != (
const DocumentSpec &other)
const;
40 INLINE
bool operator < (
const DocumentSpec &other)
const;
43 INLINE
void set_url(
const URLSpec &url);
44 INLINE
const URLSpec &get_url()
const;
47 INLINE
bool has_tag()
const;
49 INLINE
void clear_tag();
51 INLINE
void set_date(
const HTTPDate &date);
52 INLINE
bool has_date()
const;
53 INLINE
const HTTPDate &get_date()
const;
54 INLINE
void clear_date();
63 INLINE
void set_request_mode(RequestMode request_mode);
64 INLINE RequestMode get_request_mode()
const;
72 INLINE
void set_cache_control(CacheControl cache_control);
73 INLINE CacheControl get_cache_control()
const;
75 bool input(std::istream &in);
76 void output(std::ostream &out)
const;
77 void write(std::ostream &out,
int indent_level = 0)
const;
80 MAKE_PROPERTY(url, get_url, set_url);
81 MAKE_PROPERTY2(tag, has_tag, get_tag, set_tag, clear_tag);
82 MAKE_PROPERTY2(date, has_date, get_date, set_date, clear_date);
84 MAKE_PROPERTY(request_mode, get_request_mode, set_request_mode);
85 MAKE_PROPERTY(cache_control, get_cache_control, set_cache_control);
91 RequestMode _request_mode;
92 CacheControl _cache_control;
101 INLINE std::istream &operator >> (std::istream &in,
DocumentSpec &doc);
102 INLINE std::ostream &operator << (std::ostream &out,
const DocumentSpec &doc);
A container for a URL, e.g.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A container for an "entity tag" from an HTTP server.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A descriptor that refers to a particular version of a document.