Pointwise Plugin SDK
|
Public Member Functions | |
PwpAsciiWriter (PwpFile &file) | |
virtual bool | write (const char *val, PWP_INT size=-1, char=0) |
Writes a string value. More... | |
virtual bool | write (PWP_FLOAT val, const char *suffix=0, const char *prefix=0) |
Writes a floating point value with proper precision, encoding and byte order. More... | |
virtual bool | write (PWP_INT16 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual bool | write (PWP_INT32 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual bool | write (PWP_INT64 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual bool | write (PWP_INT8 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual bool | write (PWP_REAL val, const char *suffix=0, const char *prefix=0) |
Writes a floating point value with proper precision, encoding and byte order. More... | |
virtual bool | write (PWP_UINT16 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual bool | write (PWP_UINT32 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual bool | write (PWP_UINT64 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual bool | write (PWP_UINT8 val, const char *suffix=0, const char *prefix=0) |
Writes a integer value with proper encoding and byte order. More... | |
virtual | ~PwpAsciiWriter () |
![]() | |
virtual FormatType | getFmtType () const |
default implementation. More... | |
PwpFileWriter (PwpFile &file) | |
PwpFile constructor. More... | |
virtual void | setFmtType (FormatType type) |
default implementation. More... | |
virtual | ~PwpFileWriter () |
Destructor. More... | |
virtual void | setFmtFieldSingle (const int width, const int prec) |
default implementation. More... | |
virtual void | getFmtFieldSingle (int &width, int &prec) const |
default implementation. More... | |
virtual void | setFmtFieldDouble (const int width, const int prec) |
default implementation. More... | |
virtual void | getFmtFieldDouble (int &width, int &prec) const |
default implementation. More... | |
virtual bool | beginRecord () |
NOP default implementation. More... | |
virtual bool | beginRecord (PWP_UINT32, PWP_UINT32=1) |
NOP default implementation. More... | |
virtual bool | endRecord () |
NOP default implementation. More... | |
![]() | |
bool | writef (const char *fmt,...) |
Writes a formatted string value. More... | |
bool | writef (PWP_INT size, char pad, const char *fmt,...) |
Writes a formatted string value. More... | |
virtual | ~PwpWriterInterface () |
Destructor. More... | |
Private Member Functions | |
bool | writeWdPrec (PWP_REAL val, int wd, int prec, const char *sfx, const char *pfx) |
Additional Inherited Members | |
![]() | |
enum | FormatType { FormatG = G_, FormatWdPrecG = G_ | Wd_ | Prec_, FormatWdG = G_ | Wd_, FormatPrecG = G_ | Prec_, FormatF = F_, FormatWdPrecF = F_ | Wd_ | Prec_, FormatWdF = F_ | Wd_, FormatPrecF = F_ | Prec_, FormatE = E_, FormatWdPrecE = E_ | Wd_ | Prec_, FormatWdE = E_ | Wd_, FormatPrecE = E_ | Prec_ } |
Formatted output types for floating point values. More... | |
![]() | |
enum | { G_ = 0x00, F_ = 0x01, E_ = 0x02, GFEMask_ = 0x0F, Wd_ = 0x10, Prec_ = 0x20, WdPrec_ = Wd_ | Prec_, WPMask_ = 0xF0 } |
Bit flags use to build public FormatX enums. More... | |
![]() | |
PwpFile & | file_ |
The file being written. More... | |
int | fmtFieldWdDouble_ |
Double precision format field width. More... | |
int | fmtFieldWdSingle_ |
Single precision format field width. More... | |
int | fmtPrecDouble_ |
Double precision format decimals. More... | |
int | fmtPrecSingle_ |
Single precision format decimals. More... | |
FormatType | fmtType_ |
Formatting flags. More... | |
Definition at line 29 of file PwpFile.cxx.
|
inline |
Definition at line 32 of file PwpFile.cxx.
|
inlinevirtual |
Definition at line 38 of file PwpFile.cxx.
|
inlinevirtual |
Writes a string value.
val | The string to write. |
size | The number of string characters to write. If -1, strlen(val) is used. |
pad | If size > strlen(val), the pad value will be used to fill the remaining characters. |
Implements PwpWriterInterface.
Definition at line 129 of file PwpFile.cxx.
References PwpFileWriter::file_, and PwpFile::fp().
|
inlinevirtual |
Writes a floating point value with proper precision, encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 107 of file PwpFile.cxx.
References PwpFileWriter::file_, PwpFileWriter::fmtFieldWdDouble_, PwpFileWriter::fmtFieldWdSingle_, PwpFileWriter::fmtPrecDouble_, PwpFileWriter::fmtPrecSingle_, PwpFile::isDouble(), and writeWdPrec().
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 59 of file PwpFile.cxx.
References PwpFileWriter::file_, and PwpFile::fp().
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 51 of file PwpFile.cxx.
References PwpFileWriter::file_, and PwpFile::fp().
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 43 of file PwpFile.cxx.
References PwpFileWriter::file_, PwpFile::fp(), and PWP_INT64_FORMAT.
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 67 of file PwpFile.cxx.
References PwpFileWriter::file_, and PwpFile::fp().
|
inlinevirtual |
Writes a floating point value with proper precision, encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 118 of file PwpFile.cxx.
References PwpFileWriter::file_, PwpFileWriter::fmtFieldWdDouble_, PwpFileWriter::fmtFieldWdSingle_, PwpFileWriter::fmtPrecDouble_, PwpFileWriter::fmtPrecSingle_, PwpFile::isSingle(), and writeWdPrec().
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 91 of file PwpFile.cxx.
References PwpFileWriter::file_, and PwpFile::fp().
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 83 of file PwpFile.cxx.
References PwpFileWriter::file_, and PwpFile::fp().
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 75 of file PwpFile.cxx.
References PwpFileWriter::file_, PwpFile::fp(), and PWP_UINT64_FORMAT.
|
inlinevirtual |
Writes a integer value with proper encoding and byte order.
val | The value to write. |
suffix | String written after val (pwpAscii mode only). |
prefix | String written before val (pwpAscii mode only). |
Implements PwpWriterInterface.
Definition at line 99 of file PwpFile.cxx.
References PwpFileWriter::file_, and PwpFile::fp().
|
inlineprivate |
Definition at line 140 of file PwpFile.cxx.
References PwpFileWriter::file_, PwpFileWriter::fmtType_, PwpWriterInterface::FormatE, PwpWriterInterface::FormatF, PwpWriterInterface::FormatG, PwpWriterInterface::FormatPrecE, PwpWriterInterface::FormatPrecF, PwpWriterInterface::FormatPrecG, PwpWriterInterface::FormatWdE, PwpWriterInterface::FormatWdF, PwpWriterInterface::FormatWdG, PwpWriterInterface::FormatWdPrecE, PwpWriterInterface::FormatWdPrecF, PwpWriterInterface::FormatWdPrecG, and PwpFile::fp().
Referenced by write().