XRootD
Loading...
Searching...
No Matches
XrdPfc::Print Class Reference

#include <XrdPfcPrint.hh>

Collaboration diagram for XrdPfc::Print:

Public Member Functions

 Print (XrdOss *oss, char u, bool v, bool j, int i, const char *path)
 Constructor.

Detailed Description

Definition at line 28 of file XrdPfcPrint.hh.

Constructor & Destructor Documentation

◆ Print()

Print::Print ( XrdOss * oss,
char u,
bool v,
bool j,
int i,
const char * path )

Constructor.

Definition at line 35 of file XrdPfcPrint.cc.

35 :
36 m_oss(oss), m_verbose(v), m_json(j), m_indent(i), m_ossUser("nobody")
37{
38 if (u == 'k') {
39 m_unit_shift = 10;
40 m_unit_width = 12;
41 m_unit[0] = u; m_unit[1] = 'B'; m_unit[2] = 0;
42 } else if (u == 'M') {
43 m_unit_shift = 20;
44 m_unit_width = 12; // need 12 chars for header
45 m_unit[0] = u; m_unit[1] = 'B'; m_unit[2] = 0;
46 } else {
47 m_unit_shift = 0;
48 m_unit_width = 15;
49 m_unit[0] = 'B'; m_unit[1] = 0;
50 }
51
52 if (isInfoFile(path))
53 {
54 if (m_json) printFileJson(std::string(path));
55 else printFile(std::string(path));
56 }
57 else
58 {
59 XrdOssDF* dh = m_oss->newDir(m_ossUser);
60 if ( dh->Opendir(path, m_env) >= 0 )
61 {
62 printDir(dh, path);
63 }
64 delete dh;
65 }
66}
virtual int Opendir(const char *path, XrdOucEnv &env)
Definition XrdOss.hh:79

References XrdOssDF::Opendir().

Here is the call graph for this function:

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