XRootD
XrdSutPFEntInd Class Reference

#include <XrdSutPFile.hh>

+ Collaboration diagram for XrdSutPFEntInd:

Public Member Functions

 XrdSutPFEntInd (const char *n=0, kXR_int32 no=0, kXR_int32 eo=0, kXR_int32 es=0)
 
 XrdSutPFEntInd (const XrdSutPFEntInd &ei)
 
virtual ~XrdSutPFEntInd ()
 
kXR_int32 Length () const
 
XrdSutPFEntIndoperator= (const XrdSutPFEntInd ei)
 
void SetName (const char *n=0)
 

Public Attributes

kXR_int32 entofs
 
kXR_int32 entsiz
 
char * name
 
kXR_int32 nxtofs
 

Detailed Description

Definition at line 84 of file XrdSutPFile.hh.

Constructor & Destructor Documentation

◆ XrdSutPFEntInd() [1/2]

XrdSutPFEntInd::XrdSutPFEntInd ( const char *  n = 0,
kXR_int32  no = 0,
kXR_int32  eo = 0,
kXR_int32  es = 0 
)

Definition at line 45 of file XrdSutPFile.cc.

47 {
48  // Constructor
49 
50  name = 0;
51  if (n) {
52  name = new char[strlen(n)+1];
53  if (name)
54  strcpy(name,n);
55  }
56  nxtofs = no;
57  entofs = eo;
58  entsiz = es;
59 }
kXR_int32 entsiz
Definition: XrdSutPFile.hh:89
kXR_int32 entofs
Definition: XrdSutPFile.hh:88
kXR_int32 nxtofs
Definition: XrdSutPFile.hh:87

References entofs, entsiz, name, and nxtofs.

◆ XrdSutPFEntInd() [2/2]

XrdSutPFEntInd::XrdSutPFEntInd ( const XrdSutPFEntInd ei)

Definition at line 62 of file XrdSutPFile.cc.

63 {
64  //Copy constructor
65 
66  name = 0;
67  if (ei.name) {
68  name = new char[strlen(ei.name)+1];
69  if (name)
70  strcpy(name,ei.name);
71  }
72  nxtofs = ei.nxtofs;
73  entofs = ei.entofs;
74  entsiz = ei.entsiz;
75 }

References entofs, entsiz, name, and nxtofs.

◆ ~XrdSutPFEntInd()

virtual XrdSutPFEntInd::~XrdSutPFEntInd ( )
inlinevirtual

Definition at line 93 of file XrdSutPFile.hh.

93 { if (name) delete[] name; }

References name.

Member Function Documentation

◆ Length()

kXR_int32 XrdSutPFEntInd::Length ( ) const
inline

Definition at line 95 of file XrdSutPFile.hh.

95 { return (strlen(name) + 4*sizeof(kXR_int32)); }
int kXR_int32
Definition: XPtypes.hh:89

References name.

◆ operator=()

XrdSutPFEntInd & XrdSutPFEntInd::operator= ( const XrdSutPFEntInd  ei)

Definition at line 94 of file XrdSutPFile.cc.

95 {
96  // Assign index entry ei to local index entry.
97 
98  name = 0;
99  if (ei.name) {
100  name = new char[strlen(ei.name)+1];
101  if (name)
102  strcpy(name,ei.name);
103  }
104  nxtofs = ei.nxtofs;
105  entofs = ei.entofs;
106  entsiz = ei.entsiz;
107 
108  return *this;
109 }

References entofs, entsiz, name, and nxtofs.

◆ SetName()

void XrdSutPFEntInd::SetName ( const char *  n = 0)

Definition at line 78 of file XrdSutPFile.cc.

79 {
80  // Name setter
81 
82  if (name) {
83  delete[] name;
84  name = 0;
85  }
86  if (n) {
87  name = new char[strlen(n)+1];
88  if (name)
89  strcpy(name,n);
90  }
91 }

References name.

Referenced by XrdSutPFile::WriteEntry().

+ Here is the caller graph for this function:

Member Data Documentation

◆ entofs

◆ entsiz

kXR_int32 XrdSutPFEntInd::entsiz

◆ name

◆ nxtofs


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