Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-eiger
Commits
0749ee14
Commit
0749ee14
authored
Dec 11, 2019
by
Alejandro Homs Puron
Committed by
operator for beamline
Dec 11, 2019
Browse files
Interpret $id in filewriter name pattern, expanded to serie_id
parent
bb7ffdef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/EigerSavingCtrlObj.cpp
View file @
0749ee14
...
...
@@ -283,9 +283,19 @@ void SavingCtrlObj::_PollingThread::threadFunction()
std
::
string
prefix
=
m_saving
.
m_prefix
;
std
::
string
directory
=
m_saving
.
m_directory
;
char
nb_series
[
32
];
snprintf
(
nb_series
,
sizeof
(
nb_series
),
"%d"
,
m_saving
.
m_serie_id
);
char
id_str
[]
=
"$id"
;
size_t
id_pos
=
prefix
.
find
(
id_str
);
if
(
id_pos
!=
std
::
string
::
npos
)
{
char
serie_id_str
[
32
];
snprintf
(
serie_id_str
,
sizeof
(
serie_id_str
),
"%d"
,
m_saving
.
m_serie_id
);
std
::
string
aux
=
prefix
.
substr
(
0
,
id_pos
)
+
serie_id_str
;
size_t
id_end
=
id_pos
+
sizeof
(
id_str
);
if
(
prefix
.
size
()
>
id_end
)
aux
+=
prefix
.
substr
(
id_end
);
prefix
=
aux
;
}
DEB_TRACE
()
<<
DEB_VAR2
(
directory
,
prefix
);
int
total_nb_frames
;
m_saving
.
m_cam
.
getNbFrames
(
total_nb_frames
);
int
frames_per_file
=
m_saving
.
m_frames_per_file
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment