Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Achim Morschhauser
GeomagLogger
Commits
36c1a7cc
Commit
36c1a7cc
authored
Jan 30, 2019
by
Achim Morschhauser
Browse files
Parameter file as CMD
parent
589530a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
usr/src/OBSDAQ_Logger.cpp
View file @
36c1a7cc
...
...
@@ -14,10 +14,25 @@
#include
<Parameters_Reader.hpp>
int
main
()
{
int
main
(
int
argc
,
char
*
argv
[])
{
/*
std::string parfile;
switch (argc) {
case 1: parfile="/usr/par/parameters.par"; break;
case 2: parfile=argv[1]; break;
default: fprintf(stderr,"Please specify one parameter file to use !\n"); return(-1);
}
*/
if
(
argc
!=
2
){
fprintf
(
stderr
,
"Please specify one parameter file to use !
\n
"
);
return
(
-
1
);
}
// Read from parameters file
Parameters_Reader
par
=
Parameters_Reader
(
"usr/par/parameters.par"
);
Parameters_Reader
par
=
Parameters_Reader
(
argv
[
1
]
);
// Set the calibration constants.
// Will be done in driver_obs_obsdaq constructor in future, and parameter
...
...
Write
Preview
Supports
Markdown
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