TrueName Struct Reference

#include <TrueName.hxx>

List of all members.

Public Member Functions

hash32_t hash ()
std::string asHumanString () const
std::string asStringOldFormat () const
 TrueName ()
 TrueName (TrueNameKind k)
 TrueName (const TrueName &tn)
 TrueName (const OpenSHA &sha)
 TrueName (uint32_t len, const void *s)
int cmp (const TrueName &tn)
bool operator== (const TrueName &tn)
bool operator!= (const TrueName &tn)
 operator int BoolConversionSupport::* () const
 Sleazy support for if(TrueName).
bool operator< (const TrueName &other) const
bool operator> (const TrueName &other) const

Static Public Member Functions

static size_t repLen (uint8_t kind)
static std::string NewName ()
static TrueName OfString (std::string)

Public Attributes

uint8_t kind
ByteString value

Static Public Attributes

static TrueName Null
static TrueName CfgDir

Classes

struct  BoolConversionSupport


Detailed Description

Definition at line 59 of file TrueName.hxx.


Constructor & Destructor Documentation

TrueName::TrueName  )  [inline]
 

Definition at line 79 of file TrueName.hxx.

References kind, and TNK_NULL.

Referenced by OfString().

TrueName::TrueName TrueNameKind  k  )  [inline]
 

Definition at line 84 of file TrueName.hxx.

References kind.

TrueName::TrueName const TrueName tn  ) 
 

Definition at line 80 of file TrueName.cxx.

References kind, and value.

TrueName::TrueName const OpenSHA sha  ) 
 

Definition at line 95 of file TrueName.cxx.

TrueName::TrueName uint32_t  len,
const void *  s
 


Member Function Documentation

std::string TrueName::asHumanString  )  const
 

Definition at line 130 of file TrueName.cxx.

References ExBadValue, format(), hex_encode(), kind, NID_PREFIX, SHA1_PREFIX, THROW, TNK_NID, TNK_NULL, TNK_SHA1, and value.

Referenced by Repository::GetEntity(), WsEntity::ReportStatus(), FSRepos::ReviseEntityDelta(), and Repository::validateEntityBuffer().

std::string TrueName::asStringOldFormat  )  const
 

Definition at line 196 of file TrueName.cxx.

References bad_b64_encode(), ExBadValue, format(), hex_encode(), kind, THROW, TNK_NID, TNK_NULL, TNK_SHA1, and value.

Referenced by sdr::OStream::w_entname().

int TrueName::cmp const TrueName tn  ) 
 

Definition at line 157 of file TrueName.cxx.

References kind, and value.

Referenced by operator==().

hash32_t TrueName::hash  ) 
 

Definition at line 114 of file TrueName.cxx.

References value.

Referenced by Buffer::computeAffinity(), Entity::Entity(), and WsEntity::WsEntity().

std::string TrueName::NewName  )  [static]
 

Definition at line 184 of file TrueName.cxx.

References ExPrngError, format(), hex_encode(), and THROW.

Referenced by Entity::CreateFamNID(), and FSRepos::DupMutable().

TrueName TrueName::OfString std::string   )  [static]
 

Definition at line 101 of file TrueName.cxx.

References OpenSHA::append(), OpenSHA::finish(), and TrueName().

TrueName::operator int BoolConversionSupport::*  )  const [inline]
 

Sleazy support for if(TrueName).

Definition at line 103 of file TrueName.hxx.

References TrueName::BoolConversionSupport::dummy, kind, and TNK_NULL.

bool TrueName::operator!= const TrueName tn  )  [inline]
 

Definition at line 97 of file TrueName.hxx.

bool TrueName::operator< const TrueName other  )  const [inline]
 

Definition at line 109 of file TrueName.hxx.

References kind, and value.

bool TrueName::operator== const TrueName tn  ) 
 

Definition at line 173 of file TrueName.cxx.

References cmp(), kind, and TNK_NULL.

bool TrueName::operator> const TrueName other  )  const [inline]
 

Definition at line 119 of file TrueName.hxx.

References kind, and value.

size_t TrueName::repLen uint8_t  kind  )  [static]
 

Definition at line 60 of file TrueName.cxx.

References ExBadValue, format(), THROW, TNK_NID, and TNK_SHA1.


Member Data Documentation

TrueName TrueName::CfgDir [static]
 

Definition at line 130 of file TrueName.hxx.

Referenced by FSRepos::do_GetEntity(), and FSRepos::GetEntityDelta().

uint8_t TrueName::kind
 

Definition at line 65 of file TrueName.hxx.

Referenced by asHumanString(), asStringOldFormat(), cmp(), Serializable::getTrueName(), operator int BoolConversionSupport::*(), operator<(), operator==(), operator>(), and TrueName().

TrueName TrueName::Null [static]
 

Definition at line 129 of file TrueName.hxx.

Referenced by Entity::Entity(), Repository::GetEntity(), PendingChange::PendingChange(), FSRepos::ReviseMutable(), Serializable::Serializable(), and WsEntity::UploadTo().

ByteString TrueName::value
 

Definition at line 66 of file TrueName.hxx.

Referenced by asHumanString(), asStringOldFormat(), cmp(), hash(), operator<(), operator>(), and TrueName().


The documentation for this struct was generated from the following files:
Generated on Sun Apr 23 22:42:41 2006 for OpenCM by  doxygen 1.4.6