C3D Toolkit  Kernel - 117950, Vision - 2.7.5.29

Stream for writing to several FileSpaces. More...

#include <io_tape_define.h>

+ Inheritance diagram for writer_ex:
+ Collaboration diagram for writer_ex:

Public Member Functions

DEPRECATE_DECLARE writer_ex (membuf &sb, uint8 om)
 Constructor. More...
 
DEPRECATE_DECLARE writer_ex (iobuf_Seq &buf, uint16 om)
 Constructor. More...
 
virtual void WriteModelCatalog ()
 Write the model tree.
 
virtual ClusterReference GetNextWritePosition ()
 Get next writing position.
 
virtual const c3d::IModelTreeGetModelTree () const
 Get pointer to the model tree.
 
- Public Member Functions inherited from writer
DEPRECATE_DECLARE writer (membuf &sb, uint8 om)
 Constructor. More...
 
DEPRECATE_DECLARE writer (iobuf_Seq &buf, uint16 om)
 Constructor. More...
 
void writeObject (const TapeBase *)
 Write the object.
 
void writeObjectPointer (const TapeBase *)
 Write the pointer to the object.
 
virtual void writeByte (uint8 ch)
 Write the byte to the buffer.
 
virtual void writeBytes (const void *bf, size_t len)
 Write the sequence of bytes to the buffer.
 
DEPRECATE_DECLARE size_t writeSBytes (const void *bf, size_t len)
 Write the sequence of bytes to the buffer. More...
 
void writeUInt64 (const uint64 &val)
 Write unsigned 64-bit integer. More...
 
void writeInt64 (const int64 &val)
 Write 64-bit integer. More...
 
- Public Member Functions inherited from tape
virtual ~tape ()
 Destructor.
 
DEPRECATE_DECLARE iobufbuffer () const
 Get access to the buffer. More...
 
DEPRECATE_DECLARE iobufoperator() () const
 Get access to the buffer. More...
 
const iobuf_SeqGetIOBuffer () const
 Get access to the buffer.
 
iobuf_SeqGetIOBuffer ()
 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 VersionContainerGetVersionsContainer () 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.
 
ProgressBarWrapperGetProgress ()
 Get progress indicator.
 
void FinishProgress ()
 End the progress indicator.
 

Static Public Member Functions

static std::unique_ptr< writer_exCreateWriterEx (std::unique_ptr< iobuf_Seq > buf, uint16 om)
 Create writer for iobuf_Seq.
 
static std::unique_ptr< writer_exCreateMemWriterEx (membuf &sb, uint8 om)
 Create writer for membuf.
 
- Static Public Member Functions inherited from writer
static writer_ptr CreateWriter (std::unique_ptr< iobuf_Seq > buf, uint16 om)
 Create writer for iobuf_Seq.
 
static writer_ptr CreateMemWriter (membuf &sb, uint8 om)
 Create writer for membuf.
 

Protected Member Functions

 writer_ex (iobuf_Seq &buf, bool ownBuf, bool openSys, uint16 om)
 Constructor.
 
virtual void WriteObjectAndType (const TapeBase *)
 Write the object and type.
 
virtual void RegisterObject (const TapeBase *)
 Register the object.
 
virtual void EndWriteObject (const TapeBase *)
 Finish writing the object.
 
virtual void UpdateObjectCatalog (const TapeBase *mem, const ClusterReference &ref)
 Add reference to the object to the object catalog.
 
virtual bool IsRegistrable (const TapeBase *mem)
 Whether the object is registrable.
 
- Protected Member Functions inherited from writer
 writer (iobuf_Seq &buf, bool ownBuf, bool openSys, uint16 om, TapeRegistrator *reg)
 Constructor.
 
DEPRECATE_DECLARE writer (iobuf_Seq &buf, bool ownBuf, bool openSys, uint16 om, TapeRegistrator &reg)
 Constructor. More...
 
DEPRECATE_DECLARE writer (membuf &sb, bool openSys, uint8 om, TapeRegistrator &reg)
 Constructor. More...
 
void WriteObjectIndex (size_t index)
 Записать индекс объекта
 
- Protected Member Functions inherited from tape
 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

- Public Types inherited from tape
enum  objectType
 An object type.
 
- Protected Attributes inherited from tape
iobuf_Seqbuf
 Buffer for data.
 
TapeManagermanager
 Stream manager.
 
uint8 level
 Nesting level while reading/writing.
 
TapeRegistratorregistrator
 Structure for registration of written/read addresses.
 
ProgressBarWrapperprogress
 Progress indicator.
 

Detailed Description

Stream for writing to several FileSpaces.

Stream for writing to several FileSpaces.

Constructor & Destructor Documentation

◆ writer_ex() [1/2]

DEPRECATE_DECLARE writer_ex::writer_ex ( membuf sb,
uint8  om 
)

Constructor.

Deprecated:
The method is deprecated.

◆ writer_ex() [2/2]

DEPRECATE_DECLARE writer_ex::writer_ex ( iobuf_Seq buf,
uint16  om 
)

Constructor.

Deprecated:
The method is deprecated.

The documentation for this class was generated from the following file: