xtreemfs/cpp/include/ld_preload/path.h
2020-09-22 02:25:22 +02:00

30 lines
533 B
C++

/*
* Copyright (c) 2014 by Matthias Noack, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#ifndef PRELOAD_PATH_H_
#define PRELOAD_PATH_H_
#include <string>
class Path {
public:
Path(const char* pathname);
bool IsXtreemFS();
void Parse();
const char* GetXtreemFSPath();
static void SetXtreemFSPrefix(const std::string& prefix);
private:
static std::string& GetXtreemFSPrefix();
const char* pathname_;
const char* xtreemfs_path_;
};
#endif // PRELOAD_PATH_H_