NCBI C++ ToolKit
|
Search Toolkit Book for SNetStorageObjectIState
#include <connect/services/impl/netstorage_impl.hpp>
Public Member Functions | |
ERW_Result | Write (const void *buf, size_t count, size_t *written) final |
Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device. More... | |
ERW_Result | Flush () final |
Flush pending data (if any) down to the output device. More... | |
![]() | |
Uint8 | GetSize () final |
list< string > | GetAttributeList () const final |
string | GetAttribute (const string &name) const final |
void | SetAttribute (const string &name, const string &value) final |
CNetStorageObjectInfo | GetInfo () final |
void | SetExpiration (const CTimeout &ttl) final |
string | FileTrack_Path () final |
string | Relocate (TNetStorageFlags flags, TNetStorageProgressCb cb) final |
bool | Exists () final |
ENetStorageRemoveResult | Remove () final |
![]() | |
virtual string | GetLoc () const =0 |
virtual bool | Eof ()=0 |
virtual pair< string, string > | GetUserInfo () |
virtual CNetStorageObjectLoc & | Locator () |
virtual void | CancelRelocate () |
![]() | |
virtual ERW_Result | Read (void *buf, size_t count, size_t *bytes_read=0)=0 |
Read as many as "count" bytes into a buffer pointed to by the "buf" argument. More... | |
virtual ERW_Result | PendingCount (size_t *count)=0 |
Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that are ready to be read from the input device without blocking. More... | |
virtual ERW_Result | Pushback (const void *buf, size_t count, void *del_ptr=0) |
This method gets called by RStream buffer destructor to return buffered yet still unread (from the stream) portion of data back to the device. More... | |
virtual | ~IReader () |
![]() | |
virtual void | Close ()=0 |
virtual void | Abort ()=0 |
![]() | |
virtual | ~IWriter () |
Additional Inherited Members | |
![]() | |
void | EnterState (INetStorageObjectState *state) |
void | ExitState () |
Definition at line 118 of file netstorage_impl.hpp.
|
finalvirtual |
Flush pending data (if any) down to the output device.
Implements IWriter.
Definition at line 109 of file netstorage.cpp.
References INetStorageObjectState::GetLoc(), and NCBI_THROW_FMT.
|
finalvirtual |
Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.
Always store the number of bytes actually written, or 0 if "count" has been passed as 0 ("buf" must be ignored in this case), via the "bytes_written" pointer, if provided non-NULL. Note that the method can return non-eRW_Success in case of an I/O error along with indicating (some) data delivered to the output device (and reflected in "*bytes_written").
Implements IWriter.
Definition at line 104 of file netstorage.cpp.
References INetStorageObjectState::GetLoc(), and NCBI_THROW_FMT.