src
FWCore
PluginManager
src
standard.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: PluginManager
4
// Class : standard
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Chris Jones
10
// Created: Sat Apr 7 17:10:11 EDT 2007
11
//
12
13
// system include files
14
15
// user include files
16
#include "
FWCore/PluginManager/interface/standard.h
"
17
18
namespace
edmplugin
{
19
namespace
standard
{
20
21
PluginManager::Config
config
() {
22
PluginManager::Config
returnValue;
23
24
#ifdef __APPLE__
25
const
char
*
path
= std::getenv(
"DYLD_FALLBACK_LIBRARY_PATH"
);
26
#else
27
const
char
*
path
= std::getenv(
"LD_LIBRARY_PATH"
);
28
#endif
29
if
(!
path
)
30
path
=
""
;
31
32
std::string
spath(
path
);
33
std::string::size_type
last
= 0;
34
std::string::size_type
i
= 0;
35
std::vector<std::string>
paths
;
36
while
((
i
= spath.find_first_of(
':'
,
last
)) != std::string::npos) {
37
paths
.push_back(spath.substr(
last
,
i
-
last
));
38
last
=
i
+ 1;
39
//std::cout <<paths.back()<<std::endl;
40
}
41
paths
.push_back(spath.substr(
last
, std::string::npos));
42
returnValue.
searchPath
(
paths
);
43
44
return
returnValue;
45
}
46
47
const
std::filesystem::path
&
cachefileName
() {
48
static
const
std::filesystem::path
s_path(
".edmplugincache"
);
49
return
s_path;
50
}
51
52
const
std::filesystem::path
&
poisonedCachefileName
() {
53
static
const
std::filesystem::path
s_path(
".poisonededmplugincache"
);
54
return
s_path;
55
}
56
57
const
std::string
&
pluginPrefix
() {
58
static
const
std::string
s_prefix(
"plugin"
);
59
return
s_prefix;
60
}
61
62
}
// namespace standard
63
}
// namespace edmplugin
mps_fire.i
i
Definition:
mps_fire.py:429
edmplugin::standard::poisonedCachefileName
const std::filesystem::path & poisonedCachefileName()
Definition:
standard.cc:52
standard
edmplugin::standard::cachefileName
const std::filesystem::path & cachefileName()
Definition:
standard.cc:47
Skims_PA_cff.paths
paths
Definition:
Skims_PA_cff.py:18
trigger::size_type
uint16_t size_type
Definition:
TriggerTypeDefs.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edmplugin::standard::pluginPrefix
const std::string & pluginPrefix()
Definition:
standard.cc:57
edmplugin::PluginManager::Config
Definition:
PluginManager.h:53
edmplugin::standard::config
PluginManager::Config config()
Definition:
standard.cc:21
EnsembleCalibrationLA_cfg.path
path
Definition:
EnsembleCalibrationLA_cfg.py:27
dqmdumpme.last
last
Definition:
dqmdumpme.py:56
edmplugin::PluginManager::Config::searchPath
Config & searchPath(const SearchPath &iPath)
Definition:
PluginManager.h:56
edmplugin
Definition:
AlignmentAlgorithmPluginFactory.cc:9
standard.h
Generated for CMSSW Reference Manual by
1.8.14