CernVM-FS  2.9.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 23 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 28 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 31 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 27 of file uuid.h.

Member Data Documentation

cvmfs::Uuid::split

Definition at line 47 of file uuid.h.

uuid_t cvmfs::Uuid::uuid

Definition at line 39 of file uuid.h.

Referenced by MountPoint::CreateDownloadManagers().

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

Definition at line 37 of file uuid.h.

Referenced by CreateOneTime(), and uuid().

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

Referenced by data(), and size().


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