Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
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
Gaudi
Gaudi
Commits
01bba39d
Commit
01bba39d
authored
7 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Added easy access to OptionsSvc implelmentation
parent
1329410b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GaudiKernel/CMakeLists.txt
+1
-1
1 addition, 1 deletion
GaudiKernel/CMakeLists.txt
GaudiKernel/GaudiKernel/ISvcLocator.h
+12
-0
12 additions, 0 deletions
GaudiKernel/GaudiKernel/ISvcLocator.h
GaudiKernel/src/Lib/ISvcLocator.cpp
+11
-0
11 additions, 0 deletions
GaudiKernel/src/Lib/ISvcLocator.cpp
with
24 additions
and
1 deletion
GaudiKernel/CMakeLists.txt
+
1
−
1
View file @
01bba39d
...
...
@@ -60,7 +60,7 @@ endif()
#---Libraries---------------------------------------------------------------
gaudi_add_library
(
GaudiKernel src/Lib/*.cpp
${
extra_sources
}
LINK_LIBRARIES
${
CMAKE_DL_LIBS
}
Boost ROOT TBB GaudiPluginService
${
extra_libraries
}
INCLUDE_DIRS Boost ROOT TBB
INCLUDE_DIRS Boost ROOT TBB
cppgsl
PUBLIC_HEADERS GaudiKernel Gaudi
)
#---Tests-------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
GaudiKernel/GaudiKernel/ISvcLocator.h
+
12
−
0
View file @
01bba39d
...
...
@@ -6,12 +6,21 @@
#include
"GaudiKernel/ISvcManager.h"
#include
"GaudiKernel/SmartIF.h"
#include
"GaudiKernel/TypeNameString.h"
#include
<list>
#include
<string>
// Forward class declaration
class
IService
;
namespace
Gaudi
{
namespace
Interfaces
{
class
OptionsSvc
;
}
}
/** @class ISvcLocator ISvcLocator.h GaudiKernel/ISvcLocator.h
The ISvcLocator is the interface implemented by the Service Factory in the
Application Manager to locate services in the framework. Clients use this
...
...
@@ -110,6 +119,9 @@ public:
{
return
SmartIF
<
IFace
>
{
this
};
}
/// Direct access to Gaudi::Interfaces::OptionsSvc implementation.
Gaudi
::
Interfaces
::
OptionsSvc
&
getOptsSvc
();
};
#endif // GAUDI_ISVCLOCATOR_H
This diff is collapsed.
Click to expand it.
GaudiKernel/src/Lib/ISvcLocator.cpp
0 → 100644
+
11
−
0
View file @
01bba39d
#include
"GaudiKernel/ISvcLocator.h"
#include
"Gaudi/Interfaces/OptionsSvc.h"
#include
<gsl/gsl>
Gaudi
::
Interfaces
::
OptionsSvc
&
ISvcLocator
::
getOptsSvc
()
{
using
namespace
Gaudi
::
Interfaces
;
return
*
gsl
::
not_null
<
OptionsSvc
*>
(
dynamic_cast
<
OptionsSvc
*>
(
service
(
"JobOptionsSvc"
).
get
()
)
);
}
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