C3D Toolkit
Kernel - 117950, Vision - 2.7.5.29
|
Stream for reading from several FileSpaces by given positions in clusters. More...
#include <io_tape_define.h>
Public Member Functions | |
DEPRECATE_DECLARE | reader_ex (membuf &sb, uint8 om) |
Constructor. More... | |
DEPRECATE_DECLARE | reader_ex (iobuf_Seq &buf, uint16 om) |
Constructor. More... | |
virtual void | ReadObjectCatalog () |
Read the object catalog. | |
virtual TapeBase * | ReadObjectByPosition (const ClusterReference &position) |
Read an object by position in cluster. | |
virtual bool | SetReadPosition (ClusterReference &) |
Set reading position. | |
virtual const c3d::IModelTree * | GetModelTree () const |
Get pointer to the model tree. | |
virtual bool | IsFullRead () |
Indicator of full reading of the current object. While reading an arbitrary object there can be a need to read some data from its parent. In this case the parent object is read partially and has the flag FullRead = false. More... | |
virtual void | SetFullRead (bool full) |
Set indicator of full reading of the current object. | |
virtual uint32 | GetLastError () |
Get reading errors. | |
![]() | |
DEPRECATE_DECLARE | reader (membuf &sb, uint8 om) |
Constructor. More... | |
DEPRECATE_DECLARE | reader (iobuf_Seq &buf, uint16 om) |
Constructor. More... | |
TapeBase * | readObject (TapeBase *mem=0) |
Read the object. | |
TapeBase * | readObjectPointer () |
Read a pointer to the object. | |
DEPRECATE_DECLARE size_t | readSBytes (void *bf, size_t len) |
Read a sequence of bytes from the buffer. More... | |
bool | readUInt64 (uint64 &) |
Read unsigned 64-bit integer. | |
bool | readInt64 (int64 &) |
Read 64-bit integer. | |
virtual int | readByte () |
Read a byte from the buffer. | |
virtual bool | readBytes (void *bf, size_t len) |
Read a sequence of bytes from the buffer. | |
![]() | |
virtual | ~tape () |
Destructor. | |
DEPRECATE_DECLARE iobuf & | buffer () const |
Get access to the buffer. More... | |
DEPRECATE_DECLARE iobuf & | operator() () const |
Get access to the buffer. More... | |
const iobuf_Seq & | GetIOBuffer () const |
Get access to the buffer. | |
iobuf_Seq & | GetIOBuffer () |
Get access to the buffer. | |
uint8 | mode () const |
Get the buffer mode. | |
void | setMode (uint8 m) |
Set the buffer mode. | |
void | clearState (io::state sub) |
Remove the buffer state. | |
void | setState (io::state add) |
Add the buffer state. | |
void | SetVersionsByStorage () |
Set the current version to be equal to the storage version. | |
VERSION | MathVersion () const |
Return the main version (of the mathematical kernel). | |
VERSION | AppVersion (size_t ind=-1) const |
Return the additional version (of the target application). | |
const VersionContainer & | GetVersionsContainer () const |
Get access to the version container. | |
void | SetVersionsContainer (const VersionContainer &vers) const |
Set the version of open file. | |
VERSION | SetStorageVersion (VERSION v) |
Set the storage version. | |
int | fresh () const |
Is the buffer fresh? | |
bool | good () const |
Whether the buffer state is correct. | |
virtual uint8 | eof () const |
Is the end of file reached? | |
virtual uint32 | state () const |
Get the flag of the buffer state. | |
virtual io::pos | tell () |
Get current position in stream. More... | |
void | registrate (const TapeBase *e) |
Unregister the pointer. | |
void | unregistrate (const TapeBase *e) |
Does a registered object exist? | |
bool | exist (const TapeBase *e) const |
Flush the registration array. | |
void | flushRegister () |
Get the number of registered objects. | |
size_t | RegisteredCount () const |
Get the maximal possible number of objects for registration. | |
size_t | GetMaxRegisteredCount () const |
Reserve memory for n objects. | |
bool | IsOwnBuffer () const |
Do we own the buffer? | |
void | SetOwnBuffer (bool own) |
Set the flag of buffer ownership. | |
uint8 | GetIndexType (size_t index) const |
Get index type. | |
void | InitProgress (IProgressIndicator *pr) |
Work with progress indicator. More... | |
void | ResetProgress () |
Release current progress indicator. Set parent progress indicator if it exists. | |
ProgressBarWrapper * | GetProgress () |
Get progress indicator. | |
void | FinishProgress () |
End the progress indicator. | |
Static Public Member Functions | |
static std::unique_ptr< reader_ex > | CreateReaderEx (std::unique_ptr< iobuf_Seq > buf, uint16 om) |
Create reader_ex instance for sequential buffer. | |
static std::unique_ptr< reader_ex > | CreateMemReaderEx (membuf &sb, uint8 om) |
Create reader for membuf. | |
![]() | |
static reader_ptr | CreateReader (std::unique_ptr< iobuf_Seq > buf, uint16 om) |
Create reader for iobuf_Seq. | |
static reader_ptr | CreateMemReader (membuf &sb, uint8 om) |
Create reader for membuf. | |
Protected Member Functions | |
reader_ex (iobuf_Seq &buf, bool ownbuf, bool openSys, uint16 om) | |
Constructor. | |
virtual TapeBase * | ReadDetachedObject () |
Read object on defined position. | |
virtual void | RegisterObject (TapeBase *obj, uint8 regId, ClusterReference ref=ClusterReference()) |
Register the object. | |
![]() | |
reader (iobuf_Seq &buf, bool ownbuf, bool openSys, uint16 om, TapeRegistrator *reg) | |
Constructor. | |
DEPRECATE_DECLARE | reader (iobuf_Seq &buf, bool ownbuf, bool openSys, uint16 om, TapeRegistrator ®) |
Constructor. More... | |
DEPRECATE_DECLARE | reader (membuf &sb, bool openSys, uint8 om, TapeRegistrator ®) |
Constructor. More... | |
size_t | ReadObjectIndex () |
Read object index. | |
![]() | |
tape (membuf &, bool openSys, uint8 om, TapeRegistrator *, bool ownReg=false) | |
Constructor. | |
tape (iobuf_Seq &buf, bool ownBuf, bool openSys, uint16 om, TapeRegistrator *, bool ownReg=false) | |
Constructor. | |
Additional Inherited Members | |
![]() | |
enum | objectType |
An object type. | |
![]() | |
iobuf_Seq & | buf |
Buffer for data. | |
TapeManager & | manager |
Stream manager. | |
uint8 | level |
Nesting level while reading/writing. | |
TapeRegistrator & | registrator |
Structure for registration of written/read addresses. | |
ProgressBarWrapper * | progress |
Progress indicator. | |
Stream for reading from several FileSpaces by given positions in clusters.
Stream for reading from several FileSpace by given positions in clusters.
DEPRECATE_DECLARE reader_ex::reader_ex | ( | membuf & | sb, |
uint8 | om | ||
) |
Constructor.
DEPRECATE_DECLARE reader_ex::reader_ex | ( | iobuf_Seq & | buf, |
uint16 | om | ||
) |
Constructor.
|
virtual |
Indicator of full reading of the current object. While reading an arbitrary object there can be a need to read some data from its parent. In this case the parent object is read partially and has the flag FullRead = false.
Get indicator of full reading of the current object.
Reimplemented from reader.