|
CFx SDK Documentation 2026 SP0
|
#include <OdStringBuf.h>
Public Types | |
| enum | CharFormat { CharFormat_Undefined = 0 , CharFormat_ANSI , CharFormat_UTF8 , CharFormat_UTF16LE , CharFormat_UTF16BE , CharFormat_UTF32LE , CharFormat_UTF32BE } |
Public Member Functions | |
| OdStringBuf () | |
| void | init (OdStreamBuf *pIo, CharFormat cf=CharFormat_Undefined) |
| ODRX_DECLARE_MEMBERS (OdStringBuf) | |
| virtual OdString | getString () |
| OdStreamBuf * | getIOPtr () const |
| CharFormat | getCharFormat () |
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 | |
| OdStringBuf::CharFormat | DetermineCharFormat () const |
| OdChar | ReadChar (OdChar &secChr) const |
| OdInt64 | GetUnicodeHeaderSize () const |
| OdInt64 | GetUnicodeBitSize () const |
| OdChar | FromANSI (OdUInt8 chr) const |
| OdChar | FromUTF8 (OdUInt8 chr) const |
| OdChar | FromUTF16LE (OdUInt16 chr) const |
| OdChar | FromUTF16BE (OdUInt16 chr) const |
| OdChar | FromUTF32LE (OdUInt32 chr, OdChar &secChr) const |
| OdChar | FromUTF32BE (OdUInt32 chr, OdChar &secChr) const |
Static Protected Member Functions | |
| static void | Swap2BytesNumber (OdUInt16 &W) |
| static void | Swap4BytesNumber (OdUInt32 &DW) |
| static void | Swap2BytesChar (OdChar &W) |
Protected Attributes | |
| OdStreamBufPtr | m_pIo |
| CharFormat | m_cf |
Text read/write helper. Provide Unicode charsets support for text files processing.
Corresponding C++ library: TD_DbRoot
<group Other_Classes>
Definition at line 39 of file OdStringBuf.h.
Charset.
| Enumerator | |
|---|---|
| CharFormat_Undefined | |
| CharFormat_ANSI | |
| CharFormat_UTF8 | |
| CharFormat_UTF16LE | |
| CharFormat_UTF16BE | |
| CharFormat_UTF32LE | |
| CharFormat_UTF32BE | |
Definition at line 45 of file OdStringBuf.h.
| OdStringBuf::OdStringBuf | ( | ) |
|
static |
Sets charset for current configuration.
| type | [out] Charset. |
|
static |
Sets charset for current UTF-16 configuration.
| type | [out] Charset. |
|
static |
Sets charset for current UTF-32 configuration.
| type | [out] Charset. |
|
protected |
|
inline |
Returns current charset.
Definition at line 85 of file OdStringBuf.h.
|
inline |
Returns pointer onto current OdStreamBuf interface.
Definition at line 77 of file OdStringBuf.h.
|
virtual |
Reads next line of text from text file.
|
protected |
|
static |
Returns character size in bytes for specified charset.
| type | [in] Charset. |
|
static |
Returns text file header value for specified charset.
| type | [in] Charset. |
|
protected |
|
static |
Returns text file header size for specified charset.
| type | [in] Charset. |
| void OdStringBuf::init | ( | OdStreamBuf * | pIo, |
| CharFormat | cf = CharFormat_Undefined ) |
Initialize OdStringBuf by OdStreamBuf interface and, optionally, by charset.
| pIo | [in] OdStreamBuf interface. |
| cf | [in] Charset. |
| OdStringBuf::ODRX_DECLARE_MEMBERS | ( | OdStringBuf | ) |
|
static |
Writes line feed into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| use_odc | [in] Write as Unicode text. |
|
static |
Writes double floating point value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes floating point value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes OdInt16 value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes OdInt32 value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes OdInt8 value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes OdUInt16 value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes OdUInt32 value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes OdUInt8 value as text into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| var | [in] Numeric value. |
|
static |
Writes space character into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| use_odc | [in] Write as Unicode text. |
|
static |
Writes ANSI string into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| text | [in] ANSI text string. |
|
static |
Writes Unicode string into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| text | [in] Unicode text string. |
|
static |
Writes tabulation character into specified OdStreamBuf.
| type | [in] Writing charset. |
| io | [in] OdStreamBuf interface. |
| use_odc | [in] Write as Unicode text. |
|
static |
Writes text file header into specified OdStreamBuf.
| type | [in] Charset. |
| io | [in] OdStreamBuf interface. |
|
protected |
Definition at line 57 of file OdStringBuf.h.
|
mutableprotected |
Definition at line 56 of file OdStringBuf.h.