Skip to content

Commit 6d3b1f7

Browse files
committed
Leave dataio header in public API
1 parent 7a75800 commit 6d3b1f7

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

core/include/core/G3Reader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class G3Reader : public G3Module {
2727
std::string cur_file_;
2828
std::deque<std::string> filename_;
2929
std::istream stream_;
30-
int fd_;
3130
int n_frames_to_read_;
3231
int n_frames_read_;
3332
int n_frames_cur_;

core/src/G3MultiFileWriter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <string>
33
#include <G3Module.h>
44

5-
#include "dataio.h"
5+
#include <dataio.h>
66

77
class G3MultiFileWriter : public G3Module {
88
public:

core/src/G3Reader.cxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
G3Reader::G3Reader(const std::string &filename, int n_frames_to_read,
66
float timeout, bool track_filename, size_t buffersize) :
7-
prefix_file_(false), stream_(nullptr), fd_(-1),
8-
n_frames_to_read_(n_frames_to_read),
7+
prefix_file_(false), stream_(nullptr), n_frames_to_read_(n_frames_to_read),
98
n_frames_read_(0), n_frames_cur_(0), timeout_(timeout),
109
track_filename_(track_filename), buffersize_(buffersize)
1110
{
@@ -14,8 +13,7 @@ G3Reader::G3Reader(const std::string &filename, int n_frames_to_read,
1413

1514
G3Reader::G3Reader(const std::vector<std::string> &filename, int n_frames_to_read,
1615
float timeout, bool track_filename, size_t buffersize) :
17-
prefix_file_(false), stream_(nullptr), fd_(-1),
18-
n_frames_to_read_(n_frames_to_read),
16+
prefix_file_(false), stream_(nullptr), n_frames_to_read_(n_frames_to_read),
1917
n_frames_read_(0), n_frames_cur_(0), timeout_(timeout),
2018
track_filename_(track_filename), buffersize_(buffersize)
2119
{
@@ -35,7 +33,6 @@ void G3Reader::StartFile(const std::string &path)
3533
cur_file_ = path;
3634
n_frames_cur_ = 0;
3735
g3_istream_from_path(stream_, path, timeout_, buffersize_);
38-
fd_ = g3_istream_handle(stream_);
3936
}
4037

4138
G3FramePtr G3Reader::FillFrame()

core/src/G3Writer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <pybindings.h>
22
#include <G3Writer.h>
3-
#include "dataio.h"
3+
#include <dataio.h>
44

55
G3Writer::G3Writer(std::string filename,
66
std::vector<G3Frame::FrameType> streams,

core/src/dataio.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <G3Logging.h>
2-
#include "dataio.h"
2+
#include <dataio.h>
33
#include "streams.h"
44

55
#include <filesystem>

gcp/src/ARCFileReader.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <G3Vector.h>
77
#include <G3Data.h>
88
#include <G3Units.h>
9+
#include <dataio.h>
910
#include <gcp/Experiments.h>
1011

1112
#include <string.h>
@@ -108,6 +109,7 @@ class ARCFileReader : public G3Reader {
108109
bool has_string_flag_;
109110
off_t frame_length_;
110111
uint64_t ms_jiffie_base_;
112+
int fd_;
111113
int32_t revision_;
112114

113115
void ParseArrayMap(uint8_t *buffer, size_t size);
@@ -169,6 +171,7 @@ void ARCFileReader::ReadHeader()
169171
int32_t size, opcode;
170172
uint8_t *buffer;
171173

174+
fd_ = g3_istream_handle(stream_);
172175
revision_ = 0;
173176
has_string_flag_ = false;
174177

0 commit comments

Comments
 (0)