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.
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. | |
| const std::string& restcgi::version_tag::string | ( | ) | const [inline] |
Get string.
1.4.7