XRootD
XrdOucFIHash Class Reference
+ Collaboration diagram for XrdOucFIHash:

Public Member Functions

 XrdOucFIHash (const char *hn, const char *hv, XrdOucFIHash *np=0)
 
 ~XrdOucFIHash ()
 
const char * XrdhName ()
 

Public Attributes

char * hName
 
char * hValue
 
XrdOucFIHashnext
 

Detailed Description

Definition at line 39 of file XrdOucFileInfo.cc.

Constructor & Destructor Documentation

◆ XrdOucFIHash()

XrdOucFIHash::XrdOucFIHash ( const char *  hn,
const char *  hv,
XrdOucFIHash np = 0 
)
inline

Definition at line 48 of file XrdOucFileInfo.cc.

49  : hName(strdup(hn)), hValue(strdup(hv)), next(np) {}
XrdOucFIHash * next

◆ ~XrdOucFIHash()

XrdOucFIHash::~XrdOucFIHash ( )
inline

Definition at line 51 of file XrdOucFileInfo.cc.

51  {if (hName) free(hName);
52  if (hValue) free(hValue);
53  }

References hName, and hValue.

Member Function Documentation

◆ XrdhName()

const char * XrdOucFIHash::XrdhName ( )

Definition at line 56 of file XrdOucFileInfo.cc.

57 {
58  if (!strcmp(hName, "adler-32") || !strcmp(hName, "adler32")
59  || !strcmp(hName, "adler")) return "a32";
60  return hName;
61 }

References hName.

Member Data Documentation

◆ hName

char* XrdOucFIHash::hName

◆ hValue

char* XrdOucFIHash::hValue

Definition at line 43 of file XrdOucFileInfo.cc.

Referenced by ~XrdOucFIHash(), and XrdOucFileInfo::GetDigest().

◆ next

XrdOucFIHash* XrdOucFIHash::next

Definition at line 44 of file XrdOucFileInfo.cc.

Referenced by XrdOucFileInfo::~XrdOucFileInfo(), and XrdOucFileInfo::GetDigest().


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