Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
// $Id: standard.cc,v 1.5 2010/11/08 16:23:31 eulisse Exp $
12
//
13
14
// system include files
15
16
// user include files
17
#include "
FWCore/PluginManager/interface/standard.h
"
18
19
namespace
edmplugin {
20
namespace
standard
{
21
22
PluginManager::Config
config
()
23
{
24
PluginManager::Config
returnValue;
25
26
#ifdef __APPLE__
27
const
char
*
path
= getenv (
"DYLD_FALLBACK_LIBRARY_PATH"
);
28
#else
29
const
char
*path = getenv (
"LD_LIBRARY_PATH"
);
30
#endif
31
if
(! path) path =
""
;
32
33
std::string spath(path);
34
std::string::size_type
last
=0;
35
std::string::size_type
i
=0;
36
std::vector<std::string>
paths
;
37
while
( (i=spath.find_first_of(
':'
,last))!=std::string::npos) {
38
paths.push_back(spath.substr(last,i-last));
39
last = i+1;
40
//std::cout <<paths.back()<<std::endl;
41
}
42
paths.push_back(spath.substr(last,std::string::npos));
43
returnValue.
searchPath
(paths);
44
45
return
returnValue;
46
}
47
48
const
boost::filesystem::path
&
cachefileName
() {
49
static
const
boost::filesystem::path
s_path(
".edmplugincache"
);
50
return
s_path;
51
}
52
53
54
const
std::string&
pluginPrefix
() {
55
static
const
std::string s_prefix(
"plugin"
);
56
return
s_prefix;
57
}
58
59
}
60
}
i
int i
Definition:
DBlmapReader.cc:9
edmplugin::standard::cachefileName
const boost::filesystem::path & cachefileName()
Definition:
standard.cc:48
EgammaValidation_cff.paths
tuple paths
Definition:
EgammaValidation_cff.py:18
standard
trigger::size_type
uint16_t size_type
Definition:
TriggerTypeDefs.h:21
edmplugin::standard::pluginPrefix
const std::string & pluginPrefix()
Definition:
standard.cc:54
edmplugin::PluginManager::Config
Definition:
PluginManager.h:45
scaleCards.path
list path
Definition:
scaleCards.py:51
edmplugin::standard::config
PluginManager::Config config()
Definition:
standard.cc:22
prof2calltree.last
tuple last
Definition:
prof2calltree.py:122
edmplugin::PluginManager::Config::searchPath
Config & searchPath(const SearchPath &iPath)
Definition:
PluginManager.h:48
standard.h
Generated for CMSSW Reference Manual by
1.8.5