CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
history::History::Tag Struct Reference

#include <history.h>

Collaboration diagram for history::History::Tag:

Public Member Functions

 Tag ()
 
 Tag (const std::string &n, const shash::Any &h, const uint64_t s, const unsigned r, const time_t t, const UpdateChannel c, const std::string &d, const std::string &b)
 
const char * GetChannelName () const
 
bool operator== (const Tag &other) const
 
bool operator< (const Tag &other) const
 
bool operator> (const Tag &other) const
 

Public Attributes

std::string name
 
shash::Any root_hash
 
uint64_t size
 
unsigned revision
 
time_t timestamp
 
UpdateChannel channel
 
std::string description
 
std::string branch
 

Detailed Description

The Tag structure contains information about one specific named snap- shot stored in the history database. Tags can be retrieved from this history class both by 'name' and by 'date'. By 'date' branches only look in the default branch. Naturally, tags can also be saved into the History using this struct as a container.

Definition at line 76 of file history.h.

Constructor & Destructor Documentation

history::History::Tag::Tag ( )
inline

Definition at line 77 of file history.h.

history::History::Tag::Tag ( const std::string &  n,
const shash::Any h,
const uint64_t  s,
const unsigned  r,
const time_t  t,
const UpdateChannel  c,
const std::string &  d,
const std::string &  b 
)
inline

Definition at line 80 of file history.h.

Member Function Documentation

const char* history::History::Tag::GetChannelName ( ) const
inline

Definition at line 86 of file history.h.

Referenced by swissknife::CommandInfoTag::PrintHumanReadableInfo(), and swissknife::CommandTag::PrintTagMachineReadable().

Here is the call graph for this function:

Here is the caller graph for this function:

bool history::History::Tag::operator< ( const Tag other) const
inline

Definition at line 101 of file history.h.

bool history::History::Tag::operator== ( const Tag other) const
inline

Definition at line 96 of file history.h.

bool history::History::Tag::operator> ( const Tag other) const
inline

Definition at line 107 of file history.h.

Member Data Documentation


The documentation for this struct was generated from the following file: