15 #include "documentSpec.h"
26 if (_flags != other._flags) {
27 return (_flags - other._flags);
75 while (!in.fail() && !in.eof() && ch !=
')') {
90 while (!in.fail() && !in.eof() && ch !=
']') {
110 output(ostream &out)
const {
113 out <<
" (" <<
get_tag() <<
")";
127 write(ostream &out,
int indent_level)
const {
128 indent(out, indent_level)
132 indent(out, indent_level + 2)
137 indent(out, indent_level + 2)
const HTTPDate & get_date() const
Returns the last-modified date associated with the DocumentSpec, if there is one. ...
int compare_to(const HTTPDate &other) const
Returns a number less than zero if this HTTPDate sorts before the other one, greater than zero if it ...
A container for an "entity tag" from an HTTP server.
void set_date(const HTTPDate &date)
Changes the last-modified date associated with the DocumentSpec.
bool input(istream &in)
Can be used to read in the DocumentSpec from a stream generated either by output() or write()...
void set_tag(const HTTPEntityTag &tag)
Changes the identity tag associated with the DocumentSpec.
const URLSpec & get_url() const
Retrieves the URL of the DocumentSpec.
bool has_date() const
Returns true if a last-modified date is associated with the DocumentSpec.
A container for an HTTP-legal time/date indication.
int compare_to(const HTTPEntityTag &other) const
Returns a number less than zero if this HTTPEntityTag sorts before the other one, greater than zero i...
A descriptor that refers to a particular version of a document.
bool has_tag() const
Returns true if an identity tag is associated with the DocumentSpec.
const HTTPEntityTag & get_tag() const
Returns the identity tag associated with the DocumentSpec, if there is one.
int compare_to(const URLSpec &other) const
Returns a number less than zero if this URLSpec sorts before the other one, greater than zero if it s...