23 if (_flags != other._flags) {
24 return (_flags - other._flags);
54input(std::istream &in) {
69 while (!in.fail() && ch !=
')') {
84 while (!in.fail() && ch !=
']') {
102output(std::ostream &out)
const {
105 out <<
" (" <<
get_tag() <<
")";
117write(std::ostream &out,
int indent_level)
const {
122 indent(out, indent_level + 2)
127 indent(out, indent_level + 2)
A descriptor that refers to a particular version of a document.
set_date
Changes the last-modified date associated with the DocumentSpec.
set_tag
Changes the identity tag associated with the DocumentSpec.
get_url
Retrieves the URL of the DocumentSpec.
get_tag
Returns the identity tag associated with the DocumentSpec, if there is one.
get_date
Returns the last-modified date associated with the DocumentSpec, if there is one.
has_date
Returns true if a last-modified date is associated with the DocumentSpec.
bool input(std::istream &in)
Can be used to read in the DocumentSpec from a stream generated either by output() or write().
has_tag
Returns true if an identity tag is associated with the DocumentSpec.
A container for an HTTP-legal time/date indication.
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.
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...
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.