Commit c33feae7 authored by Jason Wu's avatar Jason Wu
Browse files

added untracked files

parent 3319a980
Pipeline #92140 failed with stages
in 8 seconds
#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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment