Loading...
Searching...
No Matches
XrdPfcDecision.hh
Go to the documentation of this file.
#ifndef __XRDPFC_DECISION_HH__
#define __XRDPFC_DECISION_HH__
//----------------------------------------------------------------------------------
// Copyright (c) 2014 by Board of Trustees of the Leland Stanford, Jr., University
// Author: Alja Mrak-Tadel, Matevz Tadel, Brian Bockelman
//----------------------------------------------------------------------------------
// XRootD is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// XRootD is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with XRootD. If not, see <http://www.gnu.org/licenses/>.
//----------------------------------------------------------------------------------
#include <string>
class XrdOss;
class XrdSysError;
namespace XrdPfc
{
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
class Decision
{
public:
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
virtual ~Decision() {}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
virtual bool Decide(const std::string &, XrdOss &) const = 0;
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
virtual bool ConfigDecision(const char* params)
{
(void) params;
return true;
}
};
}
#endif
XrdOss
Definition XrdOss.hh:499
XrdPfc::Decision
Base class for selecting which files should be cached.
Definition XrdPfcDecision.hh:32
XrdPfc::Decision::ConfigDecision
virtual bool ConfigDecision(const char *params)
Definition XrdPfcDecision.hh:56
XrdPfc::Decision::~Decision
virtual ~Decision()
Destructor.
Definition XrdPfcDecision.hh:37
XrdPfc::Decision::Decide
virtual bool Decide(const std::string &, XrdOss &) const =0
XrdSysError
Definition XrdSysError.hh:90
XrdPfc
Definition XrdPfc.hh:41