TUUID Class Reference

#include <TUUID.h>

List of all members.

Public Member Functions

 TUUID ()
 TUUID (const char *uuid_str)
virtual ~TUUID ()
const char * AsString () const
Int_t Compare (const TUUID &u) const
UShort_t Hash () const
void Print () const
TInetAddress GetHostAddress () const
TDatime GetTime () const
void GetUUID (UChar_t uuid[16]) const
void SetUUID (const char *uuid_str)
UInt_t GetUUIDNumber () const
void SetUUIDNumber (UInt_t index)
void StreamerV1 (TBuffer &b)
void FillBuffer (char *&buffer)
void ReadBuffer (char *&buffer)
Int_t Sizeof () const
 TUUID ()
 TUUID (const char *uuid_str)
virtual ~TUUID ()
const char * AsString () const
Int_t Compare (const TUUID &u) const
UShort_t Hash () const
void Print () const
TInetAddress GetHostAddress () const
TDatime GetTime () const
void GetUUID (UChar_t uuid[16]) const
void SetUUID (const char *uuid_str)
UInt_t GetUUIDNumber () const
void SetUUIDNumber (UInt_t index)
void StreamerV1 (TBuffer &b)
void FillBuffer (char *&buffer)
void ReadBuffer (char *&buffer)
Int_t Sizeof () const

Protected Member Functions

Int_t CmpTime (uuid_time_t *t1, uuid_time_t *t2)
void Format (UShort_t clockseq, uuid_time_t ts)
void GetNodeIdentifier ()
void GetCurrentTime (uuid_time_t *timestamp)
void GetSystemTime (uuid_time_t *timestamp)
void GetRandomInfo (UChar_t seed[16])
void SetFromString (const char *uuid_str)
Int_t CmpTime (uuid_time_t *t1, uuid_time_t *t2)
void Format (UShort_t clockseq, uuid_time_t ts)
void GetNodeIdentifier ()
void GetCurrentTime (uuid_time_t *timestamp)
void GetSystemTime (uuid_time_t *timestamp)
void GetRandomInfo (UChar_t seed[16])
void SetFromString (const char *uuid_str)

Protected Attributes

UInt_t fUUIDIndex
UInt_t fTimeLow
 index in the list of UUIDs in TProcessUUID
UShort_t fTimeMid
UShort_t fTimeHiAndVersion
UChar_t fClockSeqHiAndReserved
UChar_t fClockSeqLow
UChar_t fNode [6]

Classes

struct  uuid_time_t


Detailed Description

Definition at line 44 of file TUUID.h.


Constructor & Destructor Documentation

TUUID::TUUID (  ) 

TUUID::TUUID ( const char *  uuid_str  ) 

Definition at line 233 of file TUUID.cxx.

References Error, fClockSeqHiAndReserved, fClockSeqLow, fNode, fTimeHiAndVersion, fTimeLow, fTimeMid, fUUIDIndex, and SetFromString().

TUUID::~TUUID (  )  [virtual]

Definition at line 175 of file TUUID.cxx.

TUUID::TUUID (  ) 

TUUID::TUUID ( const char *  uuid_str  ) 

virtual TUUID::~TUUID (  )  [virtual]


Member Function Documentation

Int_t TUUID::CmpTime ( uuid_time_t t1,
uuid_time_t t2 
) [protected]

Definition at line 183 of file TUUID.cxx.

References TUUID::uuid_time_t::high, and TUUID::uuid_time_t::low.

Referenced by GetCurrentTime().

void TUUID::Format ( UShort_t  clockseq,
uuid_time_t  ts 
) [protected]

Definition at line 301 of file TUUID.cxx.

References fClockSeqHiAndReserved, fClockSeqLow, fTimeHiAndVersion, fTimeLow, fTimeMid, GetNodeIdentifier(), and ts.

void TUUID::GetNodeIdentifier (  )  [protected]

Definition at line 400 of file TUUID.cxx.

References a, b, c, d, DWORD, fNode, free(), fTimeHiAndVersion, TSystem::GetHostByName(), GetRandomInfo(), gSystem, TSystem::HostName(), malloc(), seed, stat, and ULONG.

Referenced by Format().

void TUUID::GetCurrentTime ( uuid_time_t timestamp  )  [protected]

Definition at line 316 of file TUUID.cxx.

References CmpTime(), GetSystemTime(), TUUID::uuid_time_t::high, init(), kFALSE, kTRUE, and TUUID::uuid_time_t::low.

void TUUID::GetSystemTime ( uuid_time_t timestamp  )  [protected]

Definition at line 368 of file TUUID.cxx.

References gettimeofday(), TUUID::uuid_time_t::high, and TUUID::uuid_time_t::low.

Referenced by GetCurrentTime().

void TUUID::GetRandomInfo ( UChar_t  seed[16]  )  [protected]

Definition at line 461 of file TUUID.cxx.

References DWORD, gettimeofday(), l, m, md5, s, and t.

Referenced by GetNodeIdentifier().

void TUUID::SetFromString ( const char *  uuid_str  )  [protected]

Definition at line 195 of file TUUID.cxx.

References fClockSeqHiAndReserved, fClockSeqLow, fNode, fTimeHiAndVersion, fTimeLow, fTimeMid, and fUUIDIndex.

Referenced by SetUUID(), and TUUID().

const char * TUUID::AsString (  )  const

Definition at line 519 of file TUUID.cxx.

References fClockSeqHiAndReserved, fClockSeqLow, fNode, fTimeHiAndVersion, fTimeLow, fTimeMid, and snprintf.

Referenced by TFileMerger::AddFile(), TProcessUUID::AddUUID(), RooWorkspace::CodeRepo::compileClasses(), TFileCollection::GetFilesOnServer(), TFileCollection::GetFilesPerServer(), TAlienCollection::Open(), RooSharedProperties::Print(), Print(), TFileCollection::RemoveDuplicates(), TXMLFile::SaveToFile(), TDataSetManager::ScanFile(), and TFileInfo::TFileInfo().

Int_t TUUID::Compare ( const TUUID u  )  const

Definition at line 581 of file TUUID.cxx.

References CHECK, fClockSeqHiAndReserved, fClockSeqLow, fNode, fTimeHiAndVersion, fTimeLow, fTimeMid, i, if(), and u.

Referenced by operator==().

UShort_t TUUID::Hash (  )  const

Definition at line 534 of file TUUID.cxx.

References c, c1, fTimeLow, x, and y.

void TUUID::Print (  )  const

Definition at line 511 of file TUUID.cxx.

References AsString().

TInetAddress TUUID::GetHostAddress (  )  const

Definition at line 604 of file TUUID.cxx.

References fNode, and fTimeHiAndVersion.

TDatime TUUID::GetTime (  )  const

Definition at line 618 of file TUUID.cxx.

References fTimeHiAndVersion, fTimeLow, fTimeMid, high, TDatime::Set(), and ts.

void TUUID::GetUUID ( UChar_t  uuid[16]  )  const

Definition at line 643 of file TUUID.cxx.

References fTimeLow.

Referenced by TRandom3::SetSeed().

void TUUID::SetUUID ( const char *  uuid_str  ) 

Definition at line 651 of file TUUID.cxx.

References Error, and SetFromString().

UInt_t TUUID::GetUUIDNumber (  )  const [inline]

Definition at line 81 of file TUUID.h.

References fUUIDIndex.

void TUUID::SetUUIDNumber ( UInt_t  index  )  [inline]

Definition at line 82 of file TUUID.h.

References fUUIDIndex.

Referenced by TProcessUUID::AddUUID().

void TUUID::StreamerV1 ( TBuffer b  ) 

Definition at line 284 of file TUUID.cxx.

References b, fClockSeqHiAndReserved, fClockSeqLow, fNode, fTimeHiAndVersion, fTimeLow, fTimeMid, and i.

void TUUID::FillBuffer ( char *&  buffer  ) 

Definition at line 252 of file TUUID.cxx.

References fClockSeqHiAndReserved, fClockSeqLow, fNode, fTimeHiAndVersion, fTimeLow, fTimeMid, i, tobuf(), and version.

Referenced by TDirectoryFile::FillBuffer(), and TFile::WriteHeader().

void TUUID::ReadBuffer ( char *&  buffer  ) 

Definition at line 268 of file TUUID.cxx.

References fClockSeqHiAndReserved, fClockSeqLow, fNode, frombuf(), fTimeHiAndVersion, fTimeLow, fTimeMid, i, and version.

Referenced by TFile::Init().

Int_t TUUID::Sizeof (  )  const [inline]

Definition at line 87 of file TUUID.h.

Referenced by TDirectoryFile::Sizeof().

Int_t TUUID::CmpTime ( uuid_time_t t1,
uuid_time_t t2 
) [protected]

void TUUID::Format ( UShort_t  clockseq,
uuid_time_t  ts 
) [protected]

void TUUID::GetNodeIdentifier (  )  [protected]

void TUUID::GetCurrentTime ( uuid_time_t timestamp  )  [protected]

void TUUID::GetSystemTime ( uuid_time_t timestamp  )  [protected]

void TUUID::GetRandomInfo ( UChar_t  seed[16]  )  [protected]

void TUUID::SetFromString ( const char *  uuid_str  )  [protected]

const char* TUUID::AsString (  )  const

Int_t TUUID::Compare ( const TUUID u  )  const

UShort_t TUUID::Hash (  )  const

void TUUID::Print (  )  const

TInetAddress TUUID::GetHostAddress (  )  const

TDatime TUUID::GetTime (  )  const

void TUUID::GetUUID ( UChar_t  uuid[16]  )  const

void TUUID::SetUUID ( const char *  uuid_str  ) 

UInt_t TUUID::GetUUIDNumber (  )  const [inline]

Definition at line 81 of file TUUID.h.

References fUUIDIndex.

void TUUID::SetUUIDNumber ( UInt_t  index  )  [inline]

Definition at line 82 of file TUUID.h.

References fUUIDIndex.

void TUUID::StreamerV1 ( TBuffer b  ) 

void TUUID::FillBuffer ( char *&  buffer  ) 

void TUUID::ReadBuffer ( char *&  buffer  ) 

Int_t TUUID::Sizeof (  )  const [inline]

Definition at line 87 of file TUUID.h.


Member Data Documentation

UInt_t TUUID::fUUIDIndex [protected]

Definition at line 47 of file TUUID.h.

Referenced by GetUUIDNumber(), SetFromString(), SetUUIDNumber(), and TUUID().

UInt_t TUUID::fTimeLow [protected]

index in the list of UUIDs in TProcessUUID

Definition at line 48 of file TUUID.h.

Referenced by AsString(), Compare(), FillBuffer(), Format(), GetTime(), GetUUID(), Hash(), ReadBuffer(), SetFromString(), StreamerV1(), and TUUID().

UShort_t TUUID::fTimeMid [protected]

Definition at line 49 of file TUUID.h.

Referenced by AsString(), Compare(), FillBuffer(), Format(), GetTime(), ReadBuffer(), SetFromString(), StreamerV1(), and TUUID().

UShort_t TUUID::fTimeHiAndVersion [protected]

Definition at line 50 of file TUUID.h.

Referenced by AsString(), Compare(), FillBuffer(), Format(), GetHostAddress(), GetNodeIdentifier(), GetTime(), ReadBuffer(), SetFromString(), StreamerV1(), and TUUID().

UChar_t TUUID::fClockSeqHiAndReserved [protected]

Definition at line 51 of file TUUID.h.

Referenced by AsString(), Compare(), FillBuffer(), Format(), ReadBuffer(), SetFromString(), StreamerV1(), and TUUID().

UChar_t TUUID::fClockSeqLow [protected]

Definition at line 52 of file TUUID.h.

Referenced by AsString(), Compare(), FillBuffer(), Format(), ReadBuffer(), SetFromString(), StreamerV1(), and TUUID().

UChar_t TUUID::fNode [protected]

Definition at line 53 of file TUUID.h.

Referenced by AsString(), Compare(), FillBuffer(), GetHostAddress(), GetNodeIdentifier(), ReadBuffer(), SetFromString(), StreamerV1(), and TUUID().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:48:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1