Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
345058df
Commit
345058df
authored
10 years ago
by
Markus Frank
Browse files
Options
Downloads
Patches
Plain Diff
Fix warnings
parent
687741d5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GaudiPluginService/Gaudi/Details/PluginServiceDetails.h
+2
-2
2 additions, 2 deletions
GaudiPluginService/Gaudi/Details/PluginServiceDetails.h
GaudiPluginService/src/PluginService.cpp
+7
-7
7 additions, 7 deletions
GaudiPluginService/src/PluginService.cpp
with
9 additions
and
9 deletions
GaudiPluginService/Gaudi/Details/PluginServiceDetails.h
+
2
−
2
View file @
345058df
...
@@ -206,10 +206,10 @@ namespace Gaudi { namespace PluginService {
...
@@ -206,10 +206,10 @@ namespace Gaudi { namespace PluginService {
class
GAUDIPS_API
Logger
{
class
GAUDIPS_API
Logger
{
public:
public:
enum
Level
{
Debug
=
0
,
Info
=
1
,
Warning
=
2
,
Error
=
3
};
enum
Level
{
Debug
=
0
,
Info
=
1
,
Warning
=
2
,
Error
=
3
};
Logger
(
Level
l
eve
l
=
Warning
)
:
m_level
(
l
eve
l
)
{}
Logger
(
Level
l
v
l
=
Warning
)
:
m_level
(
l
v
l
)
{}
virtual
~
Logger
()
{}
virtual
~
Logger
()
{}
inline
Level
level
()
const
{
return
m_level
;
}
inline
Level
level
()
const
{
return
m_level
;
}
inline
void
setLevel
(
Level
l
eve
l
)
{
m_level
=
l
eve
l
;
}
inline
void
setLevel
(
Level
l
v
l
)
{
m_level
=
l
v
l
;
}
inline
void
info
(
const
std
::
string
&
msg
)
{
report
(
Info
,
msg
);
}
inline
void
info
(
const
std
::
string
&
msg
)
{
report
(
Info
,
msg
);
}
inline
void
debug
(
const
std
::
string
&
msg
)
{
report
(
Debug
,
msg
);
}
inline
void
debug
(
const
std
::
string
&
msg
)
{
report
(
Debug
,
msg
);
}
inline
void
warning
(
const
std
::
string
&
msg
)
{
report
(
Warning
,
msg
);
}
inline
void
warning
(
const
std
::
string
&
msg
)
{
report
(
Warning
,
msg
);
}
...
...
This diff is collapsed.
Click to expand it.
GaudiPluginService/src/PluginService.cpp
+
7
−
7
View file @
345058df
...
@@ -188,27 +188,27 @@ namespace Gaudi { namespace PluginService {
...
@@ -188,27 +188,27 @@ namespace Gaudi { namespace PluginService {
}
}
// read the file
// read the file
logger
().
debug
(
std
::
string
(
" reading "
)
+
name
);
logger
().
debug
(
std
::
string
(
" reading "
)
+
name
);
std
::
ifstream
fact
orie
s
(
fullPath
.
c_str
());
std
::
ifstream
facts
(
fullPath
.
c_str
());
std
::
string
line
;
std
::
string
line
;
int
factoriesCount
=
0
;
int
factoriesCount
=
0
;
int
lineCount
=
0
;
int
lineCount
=
0
;
while
(
!
fact
orie
s
.
eof
())
{
while
(
!
facts
.
eof
())
{
++
lineCount
;
++
lineCount
;
std
::
getline
(
fact
orie
s
,
line
);
std
::
getline
(
facts
,
line
);
trim
(
line
);
trim
(
line
);
// skip empty lines and lines starting with '#'
// skip empty lines and lines starting with '#'
if
(
line
.
empty
()
||
line
[
0
]
==
'#'
)
continue
;
if
(
line
.
empty
()
||
line
[
0
]
==
'#'
)
continue
;
// look for the separator
// look for the separator
std
::
string
::
size_type
pos
=
line
.
find
(
':'
);
std
::
string
::
size_type
other_
pos
=
line
.
find
(
':'
);
if
(
pos
==
std
::
string
::
npos
)
{
if
(
other_
pos
==
std
::
string
::
npos
)
{
std
::
ostringstream
o
;
std
::
ostringstream
o
;
o
<<
"failed to parse line "
<<
fullPath
o
<<
"failed to parse line "
<<
fullPath
<<
':'
<<
lineCount
;
<<
':'
<<
lineCount
;
logger
().
warning
(
o
.
str
());
logger
().
warning
(
o
.
str
());
continue
;
continue
;
}
}
const
std
::
string
lib
(
line
,
0
,
pos
);
const
std
::
string
lib
(
line
,
0
,
other_
pos
);
const
std
::
string
fact
(
line
,
pos
+
1
);
const
std
::
string
fact
(
line
,
other_
pos
+
1
);
m_factories
.
insert
(
std
::
make_pair
(
fact
,
FactoryInfo
(
lib
)));
m_factories
.
insert
(
std
::
make_pair
(
fact
,
FactoryInfo
(
lib
)));
#ifdef GAUDI_REFLEX_COMPONENT_ALIASES
#ifdef GAUDI_REFLEX_COMPONENT_ALIASES
// add an alias for the factory using the Reflex convention
// add an alias for the factory using the Reflex convention
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment