|
CFx SDK Documentation
2020SP3
|
#include <OdStreamBuf.h>
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdStreamBuf) | |
| virtual OdString | fileName () |
| virtual bool | isEof () |
| virtual OdUInt64 | tell () |
| virtual OdUInt64 | length () |
| virtual void | truncate () |
| virtual void | rewind () |
| virtual OdUInt64 | seek (OdInt64 offset, OdDb::FilerSeekType seekType) |
| virtual OdUInt8 | getByte () |
| virtual void | getBytes (void *buffer, OdUInt32 numBytes) |
| virtual void | putByte (OdUInt8 value) |
| virtual void | putBytes (const void *buffer, OdUInt32 numBytes) |
| virtual void | copyDataTo (OdStreamBuf *pDestination, OdUInt64 sourceStart=0, OdUInt64 sourceEnd=0) |
| virtual OdUInt32 | getShareMode () |
Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| virtual OdRxClass * | isA () const |
| virtual void | addRef ()=0 |
| virtual void | release ()=0 |
| virtual long | numRefs () const |
| bool | isKindOf (const OdRxClass *pClass) const |
| virtual OdRxObjectPtr | clone () const |
| virtual void | copyFrom (const OdRxObject *pSource) |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
| OdStreamBuf () | |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
This class is the base class for classes that provide platform-dependent I/O for Teigha.
Corresponding C++ library: TD_Root <group Other_Classes>
Definition at line 63 of file OdStreamBuf.h.
|
protected |
|
virtual |
Copies the specified bytes from this StreamBuf object to the specified StreamBuf object.
| pDestination | [in] Pointer to the StreamBuf object to receive the data. |
| sourceStart | [in] Starting position of the file pointer of this StreamBuf object. |
| sourceEnd | [in] Ending position of the file pointer of this StreamBuf object. |
Reimplemented in OdFlatMemStream.
|
virtual |
Returns the name of the file associated with this StreamBuf object.
Reimplemented in OdMemoryStream.
|
virtual |
Returns the byte at the current position of the file pointer for this StreamBuf object, and increments the pointer.
Reimplemented in OdMemoryStreamImpl< OdMemoryStream >, and OdFlatMemStreamImpl< OdStreamBuf >.
Returns the specified number of bytes, starting at the current position of the file pointer for this StreamBuf object, and increments the pointer by numBytes.
| buffer | [in] Character buffer. |
| numBytes | [in] Number of bytes. |
Reimplemented in OdFlatMemStreamImpl< OdStreamBuf >, and OdMemoryStreamImpl< OdMemoryStream >.
|
virtual |
Returns the share mode for this StreamBuf object.
Value Description Oda::kShareDenyReadWrite 0x10 deny read/write mode Oda::kShareDenyWrite 0x20 deny write mode Oda::kShareDenyRead 0x30 deny read mode Oda::kShareDenyNo 0x40 deny none mode
|
virtual |
Returns true if and only if the current position of the file pointer for this StreamBuf object is at the end of file.
Reimplemented in OdMemoryStreamImpl< OdMemoryStream >, and OdStreamPosImpl< OdStreamBuf >.
|
virtual |
Returns the length in bytes of the file associated with this StreamBuf object.
Reimplemented in OdMemoryStreamImpl< OdMemoryStream >, and OdStreamPosImpl< OdStreamBuf >.
| OdStreamBuf::ODRX_DECLARE_MEMBERS | ( | OdStreamBuf | ) |
Writes the byte to the current position of the file pointer for this StreamBuf object, and increments the pointer.
| value | [in] Byte to write. |
Reimplemented in OdFlatMemStreamImpl< OdStreamBuf >, and OdMemoryStreamImpl< OdMemoryStream >.
Writes the specified number of bytes, starting at the current position of the file pointer for this StreamBuf object, and increments the pointer by numBytes.
| buffer | [in] Character buffer. |
| numBytes | [in] Number of bytes. |
Reimplemented in OdFlatMemStreamImpl< OdStreamBuf >, and OdMemoryStreamImpl< OdMemoryStream >.
|
virtual |
Sets the current position of the file pointer for this StreamBuf object to zero.
Reimplemented in OdMemoryStreamImpl< OdMemoryStream >.
|
virtual |
Moves the current position of the file pointer for this StreamBuf object to the specified location.
| offset | [in] Number of bytes. |
| seekType | [in] Seek type. |
Value Description. OdDb::kSeekFromStart SEEK_SET Start of file. OdDb::kSeekFromCurrent SEEK_CUR Current position of file pointer. OdDb::kSeekFromEnd SEEK_END End of file.
Reimplemented in OdMemoryStreamImpl< OdMemoryStream >, and OdStreamPosImpl< OdStreamBuf >.
|
virtual |
Returns the current position of the file pointer for this StreamBuf object.
Reimplemented in OdMemoryStreamImpl< OdMemoryStream >, and OdStreamPosImpl< OdStreamBuf >.
|
virtual |
Sets the length of the file associated with this StreamBuf object to zero.
Reimplemented in OdMemoryStreamImpl< OdMemoryStream >.