//@C Copyright Notice //@C ================ //@C This file is part of CPSW. It is subject to the license terms in the LICENSE.txt //@C file found in the top-level directory of this distribution and at //@C https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. //@C //@C No part of CPSW, including this file, may be copied, modified, propagated, or //@C distributed except according to the terms contained in the LICENSE.txt file. #ifndef CPSW_STREAM_ADAPT_H #define CPSW_STREAM_ADAPT_H #include #include class CStreamAdapt; typedef shared_ptr StreamAdapt; class CStreamAdapt : public IEntryAdapt, public virtual IStream { public: CStreamAdapt(Key &k, ConstPath p, shared_ptr ie); virtual int64_t read(uint8_t *buf, uint64_t size, const CTimeout timeout, uint64_t off); virtual int64_t write(uint8_t *buf, uint64_t size, const CTimeout timeout); virtual Encoding getEncoding() const; virtual ~CStreamAdapt(); }; #endif