Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
FWCore
Utilities
interface
stemFromPath.h
Go to the documentation of this file.
1
#ifndef FWCore_Utilities_stemFromPath_h
2
#define FWCore_Utilities_stemFromPath_h
3
4
#include <string_view>
5
6
namespace
edm {
7
// This functions extracts the stem of a file from the path (= file
8
// name without the extension). The returned value is a string_view
9
// to the input string. Caller should ensure that the input string
10
// object lives long enough.
11
//
12
// The reason to have our own function instead of
13
// std::filesystem is that tehcnically these paths are not
14
// filesystem paths, but paths in CMS LFN/PFN space that (may) have
15
// different rules.
16
std::string_view
stemFromPath
(std::string_view
path
);
17
}
// namespace edm
18
19
#endif
edm::stemFromPath
std::string_view stemFromPath(std::string_view path)
Definition:
stemFromPath.cc:4
fed_dqm_sourceclient-live_cfg.path
string path
Definition:
fed_dqm_sourceclient-live_cfg.py:47
Generated for CMSSW Reference Manual by
1.8.5