00001 //---------------------------------------------------------------------------------- 00002 // Copyright (c) 2014 by Board of Trustees of the Leland Stanford, Jr., University 00003 // Author: Alja Mrak-Tadel 00004 //---------------------------------------------------------------------------------- 00005 // XRootD is free software: you can redistribute it and/or modify 00006 // it under the terms of the GNU Lesser General Public License as published by 00007 // the Free Software Foundation, either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // XRootD is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with XRootD. If not, see <http://www.gnu.org/licenses/>. 00017 //---------------------------------------------------------------------------------- 00018 00019 #include "XrdOuc/XrdOucEnv.hh" 00020 00021 class XrdOss; 00022 class XrdOssDF; 00023 00024 namespace XrdFileCache 00025 { 00026 class Print { 00027 public: 00028 //------------------------------------------------------------------------ 00030 //------------------------------------------------------------------------ 00031 Print(XrdOss* oss, bool v, const char* path); 00032 00033 private: 00034 XrdOss* m_oss; 00035 XrdOucEnv m_env; 00036 bool m_verbose; 00037 const char* m_ossUser; 00038 00039 //--------------------------------------------------------------------- 00041 //--------------------------------------------------------------------- 00042 bool isInfoFile(const char* path); 00043 00044 //--------------------------------------------------------------------- 00046 //--------------------------------------------------------------------- 00047 void printFile(const std::string& path); 00048 00049 //--------------------------------------------------------------------- 00051 //--------------------------------------------------------------------- 00052 void printDir(XrdOssDF* iOssDF, const std::string& path); 00053 }; 00054 }