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