Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
scouting-demonstrator
scdaq
Commits
9a1ad056
Commit
9a1ad056
authored
2 years ago
by
Emilio Meschi
Committed by
Thomas Owen James
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove all file actions and rationalize passing of arguments
parent
30c35717
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OutputByOrbit.h
+5
-23
5 additions, 23 deletions
src/OutputByOrbit.h
with
5 additions
and
23 deletions
src/OutputByOrbit.h
+
5
−
23
View file @
9a1ad056
...
...
@@ -6,34 +6,16 @@
#include
<cstdio>
#include
<string>
#include
"config.h"
#include
"controls.h"
#include
"tbb/pipeline.h"
class
OutFile
{
public:
OutFile
()
{
file_
=
NULL
;
index_
=
NULL
;
}
~
OutFile
(){};
FILE
*
getFile
()
{
return
file_
;
}
void
setFile
(
FILE
*
file
)
{
file_
=
file
;
}
uint32_t
getIndex
()
{
return
index_
;
}
void
setIndex
(
uint32_t
index
)
{
index_
=
index
;
}
private
:
FILE
*
file_
;
uint32_t
index_
;
};
class
OutputFileHandler
;
class
ctrl
;
class
config
;
//! Filter that writes each buffer to a file.
class
OutputByOrbitStream
:
public
tbb
::
filter
{
public:
OutputByOrbitStream
(
const
std
::
string
output_filename_base
,
const
std
::
string
output_filename_prefix
,
ctrl
&
c
,
config
&
conf_
);
OutputByOrbitStream
(
ctrl
&
c
,
config
&
conf_
);
void
*
operator
()(
void
*
item
)
/*override*/
;
void
*
OutputFixedOrbits
(
Slice
&
out
);
...
...
@@ -52,7 +34,7 @@ class OutputByOrbitStream : public tbb::filter {
uint32_t
current_run_number
;
ctrl
&
control
;
config
&
conf
;
const
bool
fixedOrbitsPerFile
;
OutputFileHandler
output_file_handler_
;
};
#endif
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