CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cvmfs::Uuid Class Reference

#include <uuid.h>

Public Member Functions

std::string uuid () const
 
const unsigned char * data () const
 
unsigned size () const
 

Static Public Member Functions

static UuidCreate (const std::string &store_path)
 
static std::string CreateOneTime ()
 

Private Member Functions

void MkUuid ()
 
 Uuid ()
 

Private Attributes

std::string uuid_
 
union {
   uuid_t   uuid
 
      split
 
uuid_presentation_
 

Detailed Description

Holds a unique identifies which is either read from a file or, if the file does not yet exist, created and stored in a file. This is how it is used to identify a cvmfs cache directory.

In order to create many UUIDs for short-lived objects, use the CreateOneTime factory method.

Definition at line 25 of file uuid.h.

Constructor & Destructor Documentation

cvmfs::Uuid::Uuid ( )
private

Definition at line 98 of file uuid.cc.

Member Function Documentation

Uuid * cvmfs::Uuid::Create ( const std::string &  store_path)
static

Definition at line 23 of file uuid.cc.

Referenced by cipher::CipherAes256Cbc::GenerateIv(), main(), and FileSystem::SetupUuid().

Here is the call graph for this function:

Here is the caller graph for this function:

string cvmfs::Uuid::CreateOneTime ( )
static

Definition at line 71 of file uuid.cc.

Here is the call graph for this function:

const unsigned char* cvmfs::Uuid::data ( ) const
inline

Definition at line 30 of file uuid.h.

Referenced by cipher::CipherAes256Cbc::GenerateIv().

Here is the caller graph for this function:

void cvmfs::Uuid::MkUuid ( )
private

Creates a new UUID in canonical string representation and overwrites uuid_ with the result.

Definition at line 82 of file uuid.cc.

Referenced by CreateOneTime().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned cvmfs::Uuid::size ( ) const
inline

Definition at line 33 of file uuid.h.

Referenced by cipher::CipherAes256Cbc::GenerateIv().

Here is the caller graph for this function:

std::string cvmfs::Uuid::uuid ( ) const
inline

Definition at line 29 of file uuid.h.

Member Data Documentation

cvmfs::Uuid::split

Definition at line 49 of file uuid.h.

uuid_t cvmfs::Uuid::uuid

Definition at line 41 of file uuid.h.

Referenced by MountPoint::CreateDownloadManagers().

std::string cvmfs::Uuid::uuid_
private

Definition at line 39 of file uuid.h.

Referenced by CreateOneTime().

union { ... } cvmfs::Uuid::uuid_presentation_

The documentation for this class was generated from the following files: