restcgi::version_tag Class Reference

List of all members.

Detailed Description

Version tag class for identifying versions using a string.

The constructor takes different types and converts them to string for ease of use. Note that tags need only be unique wrt one resource. The simplest tag syntax is a number that increases each time the resource is modified.

This is used as the ETag string for constraint comparisons and reporting the resource's tag.

See also:
version

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.19


Public Member Functions

 version_tag ()
 Construct null.
 version_tag (const std::string &v)
 Construct from string.
 version_tag (int v)
 Construct from int.
 version_tag (unsigned int v)
 Construct from unsigned int.
 version_tag (long long v)
 Construct from long long.
 version_tag (unsigned long long v)
 Construct from unsigned long long.
bool is_null () const
 Test if null.
const std::string & string () const
bool operator== (const version_tag &rhs) const
 Equal operator.
bool operator!= (const version_tag &rhs) const
 Not equal operator.


Member Function Documentation

const std::string& restcgi::version_tag::string (  )  const [inline]

Get string.


Generated on Fri May 15 11:27:12 2009 for restcgi by  doxygen 1.4.7