Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
config
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas-tdaq-software
config
Commits
187dcee4
Commit
187dcee4
authored
19 years ago
by
nobody
Browse files
Options
Downloads
Patches
Plain Diff
This commit was manufactured by cvs2svn to create tag
'tdaq-01-04-00_patches_01'.
parent
6b46e0ff
No related branches found
Tags
tdaq-01-04-00_patches_01
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/Configuration.h
+12
-1
12 additions, 1 deletion
config/Configuration.h
src/Configuration.cpp
+1
-1
1 addition, 1 deletion
src/Configuration.cpp
with
13 additions
and
2 deletions
config/Configuration.h
+
12
−
1
View file @
187dcee4
...
...
@@ -579,6 +579,10 @@ class Configuration {
template
<
class
TARGET
,
class
SOURCE
>
const
TARGET
*
cast
(
const
SOURCE
*
s
);
// temporary method to solve casting of objects with the same UID
// to be used only in DVS
template
<
class
TARGET
,
class
SOURCE
>
const
TARGET
*
cast2
(
const
SOURCE
*
s
);
// database manipulations
...
...
@@ -1070,12 +1074,19 @@ Configuration::referenced_by(const T& obj, const std::string& relationship_name,
template
<
class
TARGET
,
class
SOURCE
>
const
TARGET
*
Configuration
::
cast
(
const
SOURCE
*
s
)
{
return
get
<
TARGET
>
(
s
->
UID
());
}
// temporary method to solve casting of objects with the same UID
// to be used only in DVS
template
<
class
TARGET
,
class
SOURCE
>
const
TARGET
*
Configuration
::
cast2
(
const
SOURCE
*
s
)
{
const
TARGET
*
o
=
get
<
TARGET
>
(
s
->
UID
());
return
((
o
&&
o
->
class_name
()
==
s
->
class_name
())
?
o
:
0
);
}
template
<
class
T
>
Configuration
::
Cache
<
T
>::~
Cache
()
{
...
...
This diff is collapsed.
Click to expand it.
src/Configuration.cpp
+
1
−
1
View file @
187dcee4
...
...
@@ -52,7 +52,7 @@ Configuration::Configuration(const std::string& spec) : m_impl(0), m_shlib_h(0)
// load plug-in
m_shlib_h
=
dlopen
(
plugin_name
.
c_str
(),
RTLD_
GLOBAL
);
m_shlib_h
=
dlopen
(
plugin_name
.
c_str
(),
RTLD_
LAZY
);
if
(
!
m_shlib_h
)
{
std
::
cerr
...
...
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