14#ifndef HTTPENTITYTAG_H
15#define HTTPENTITYTAG_H
24class EXPCL_PANDA_DOWNLOADER HTTPEntityTag {
26 INLINE HTTPEntityTag();
27 HTTPEntityTag(
const std::string &text);
28 INLINE HTTPEntityTag(
bool weak,
const std::string &tag);
29 INLINE HTTPEntityTag(
const HTTPEntityTag ©);
30 INLINE
void operator = (
const HTTPEntityTag ©);
33 INLINE
const std::string &
get_tag()
const;
36 INLINE
bool strong_equiv(
const HTTPEntityTag &other)
const;
37 INLINE
bool weak_equiv(
const HTTPEntityTag &other)
const;
39 INLINE
bool operator == (
const HTTPEntityTag &other)
const;
40 INLINE
bool operator != (
const HTTPEntityTag &other)
const;
41 INLINE
bool operator < (
const HTTPEntityTag &other)
const;
42 INLINE
int compare_to(
const HTTPEntityTag &other)
const;
44 INLINE
void output(std::ostream &out)
const;
51INLINE std::ostream &operator << (std::ostream &out,
const HTTPEntityTag &url);
A container for an "entity tag" from an HTTP server.
bool weak_equiv(const HTTPEntityTag &other) const
Returns true if the two tags have "weak" equivalence: they are the same tag, and one or both may be "...
std::string get_string() const
Returns the entity tag formatted for sending to an HTTP server (the tag is quoted,...
const std::string & get_tag() const
Returns the tag as a literal string.
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...
bool strong_equiv(const HTTPEntityTag &other) const
Returns true if the two tags have "strong" equivalence: they are the same tag, and both are "strong".
bool is_weak() const
Returns true if the entity tag is marked as "weak".
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.