Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/downloader/httpEntityTag.h

Go to the documentation of this file.
00001 // Filename: httpEntityTag.h
00002 // Created by:  drose (28Jan03)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef HTTPENTITYTAG_H
00020 #define HTTPENTITYTAG_H
00021 
00022 #include "pandabase.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : HTTPEntityTag
00026 // Description : A container for an "entity tag" from an HTTP server.
00027 //               This is used to identify a particular version of a
00028 //               document or resource, particularly useful for
00029 //               verifying caches.
00030 ////////////////////////////////////////////////////////////////////
00031 class EXPCL_PANDAEXPRESS HTTPEntityTag {
00032 PUBLISHED:
00033   INLINE HTTPEntityTag();
00034   HTTPEntityTag(const string &text);
00035   INLINE HTTPEntityTag(bool weak, const string &tag);
00036   INLINE HTTPEntityTag(const HTTPEntityTag &copy);
00037   INLINE void operator = (const HTTPEntityTag &copy);
00038 
00039   INLINE bool is_weak() const;
00040   INLINE const string &get_tag() const;
00041   string get_string() const;
00042 
00043   INLINE bool strong_equiv(const HTTPEntityTag &other) const;
00044   INLINE bool weak_equiv(const HTTPEntityTag &other) const;
00045 
00046   INLINE bool operator == (const HTTPEntityTag &other) const;
00047   INLINE bool operator != (const HTTPEntityTag &other) const;
00048   INLINE bool operator < (const HTTPEntityTag &other) const;
00049   INLINE int compare_to(const HTTPEntityTag &other) const;
00050 
00051   INLINE void output(ostream &out) const;
00052 
00053 private:
00054   bool _weak;
00055   string _tag;
00056 };
00057 
00058 INLINE ostream &operator << (ostream &out, const HTTPEntityTag &url);
00059 
00060 #include "httpEntityTag.I"
00061 
00062 #endif

Generated on Fri May 2 00:36:50 2003 for Panda by doxygen1.3