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
MPIfR-BDG
psrdada_cpp
Commits
c33feae7
Commit
c33feae7
authored
Jan 25, 2021
by
Jason Wu
Browse files
added untracked files
parent
3319a980
Pipeline
#92140
failed with stages
in 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/dada_disk_sink_leap.hpp
0 → 100644
View file @
c33feae7
#ifndef PSRDADA_CPP_DADA_DISK_SINK_LEAP_HPP
#define PSRDADA_CPP_DADA_DISK_SINK_LEAP_HPP
#include
"psrdada_cpp/raw_bytes.hpp"
#include
"psrdada_cpp/common.hpp"
#include
"psrdada_cpp/dada_write_client.hpp"
#include
<fstream>
#include
<vector>
namespace
psrdada_cpp
{
class
DiskSinkLeap
{
public:
DiskSinkLeap
(
std
::
string
prefix
,
std
::
size_t
nchan
);
~
DiskSinkLeap
();
void
init
(
RawBytes
&
block
);
bool
operator
()(
RawBytes
&
block
);
public:
std
::
string
_prefix
;
std
::
size_t
_counter
;
std
::
size_t
_nchan
;
//RawBytes& _header;
//char _buffer[1024];
char
_header
[
4096
];
char
_start_time
[
1024
];
bool
first_block
;
std
::
vector
<
char
>
_transpose
;
std
::
vector
<
std
::
ofstream
>
_output_streams
;
};
}
//namespace psrdada_cpp
#endif //PSRDADA_CPP__EFFELSBERG_EDD_DADA_DISK_SINK_LEAP_HPP
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