Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HEPnOS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
HEP
HEPnOS
Commits
1f80a9e8
Commit
1f80a9e8
authored
Apr 26, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made CMake install the right files
parent
9854b9a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
bin/CMakeLists.txt
bin/CMakeLists.txt
+2
-0
include/hepnos/DataStore.hpp
include/hepnos/DataStore.hpp
+8
-0
src/CMakeLists.txt
src/CMakeLists.txt
+4
-0
src/DataStore.cpp
src/DataStore.cpp
+9
-0
No files found.
bin/CMakeLists.txt
View file @
1f80a9e8
add_executable
(
hepnos-daemon hepnos-daemon.cpp
)
target_link_libraries
(
hepnos-daemon hepnos-service yaml-cpp margo bake-server sdskv-server
)
install
(
TARGETS hepnos-daemon DESTINATION bin
)
include/hepnos/DataStore.hpp
View file @
1f80a9e8
...
...
@@ -32,6 +32,14 @@ class DataStore {
public:
/**
* @brief Constructor. Initializes the DataStore by taking
* the name of the configuration file from the environment
* variable HEPNOS_CONFIG_FILE.
*/
DataStore
();
/**
* @brief Constructor. Initializes the DataStore using a YAML
* configuration file (this file is generated by the HEPnOS
...
...
src/CMakeLists.txt
View file @
1f80a9e8
...
...
@@ -80,3 +80,7 @@ install (DIRECTORY ../include/hepnos
install
(
DIRECTORY ../include/hepnos
DESTINATION include
FILES_MATCHING PATTERN
"*.h"
)
install
(
FILES ../include/hepnos.h
DESTINATION include
)
install
(
FILES ../include/hepnos-service.h
DESTINATION include
)
src/DataStore.cpp
View file @
1f80a9e8
...
...
@@ -21,6 +21,15 @@ namespace hepnos {
// DataStore implementation
////////////////////////////////////////////////////////////////////////////////////////////
DataStore
::
DataStore
()
:
m_impl
(
std
::
make_unique
<
DataStore
::
Impl
>
(
this
))
{
char
*
file
=
getenv
(
"HEPNOS_CONFIG_FILE"
);
if
(
file
==
nullptr
)
throw
Exception
(
"HEPNOS_CONFIG_FILE environment variable not set"
);
std
::
string
configFile
(
file
);
m_impl
->
init
(
configFile
);
}
DataStore
::
DataStore
(
const
std
::
string
&
configFile
)
:
m_impl
(
std
::
make_unique
<
DataStore
::
Impl
>
(
this
))
{
m_impl
->
init
(
configFile
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment