File indexing completed on 2025-01-18 10:10:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef NET_NETXNG_INC_ROOT_RRAWFILENETXNG_HXX_
0013 #define NET_NETXNG_INC_ROOT_RRAWFILENETXNG_HXX_
0014
0015 #include <ROOT/RRawFile.hxx>
0016 #include <memory>
0017 #include <optional>
0018
0019 namespace ROOT {
0020 namespace Internal {
0021
0022 struct RRawFileNetXNGImpl;
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 class RRawFileNetXNG : public RRawFile
0033 {
0034 private:
0035 std::unique_ptr<RRawFileNetXNGImpl> pImpl;
0036 std::optional<RIOVecLimits> fIOVecLimits;
0037
0038 protected:
0039 void OpenImpl() final;
0040 size_t ReadAtImpl(void *buffer, size_t nbytes, std::uint64_t offset) final;
0041 void ReadVImpl(RIOVec *ioVec, unsigned int nReq) final;
0042 std::uint64_t GetSizeImpl() final;
0043
0044 public:
0045 RRawFileNetXNG(std::string_view url, RRawFile::ROptions options);
0046 ~RRawFileNetXNG();
0047 std::unique_ptr<RRawFile> Clone() const final;
0048 int GetFeatures() const final { return kFeatureHasSize | kFeatureHasAsyncIo; }
0049 RIOVecLimits GetReadVLimits() final;
0050 };
0051
0052 }
0053 }
0054
0055 #endif