Swinder::RKRecord Class Reference
#include <excel.h>
List of all members.
Detailed Description
Class
RKRecord represents a cell that contains an RK value, i.e encoded integer or floating-point value.
Definition at line 2231 of file excel.h.
|
Public Member Functions |
unsigned int | rtti () |
| RKRecord () |
virtual | ~RKRecord () |
virtual void | setData (unsigned size, const unsigned char *data) |
bool | isInteger () const |
bool | isFloat () const |
int | asInteger () const |
double | asFloat () const |
void | setInteger (int i) |
void | setFloat (double f) |
unsigned | encodedRK () const |
virtual const char * | name () |
virtual void | dump (std::ostream &out) const |
Static Public Attributes |
static const unsigned int | id = 0x027e |
Constructor & Destructor Documentation
Creates a new RK record.
Definition at line 3674 of file excel.cpp.
RKRecord::~RKRecord |
( |
|
) |
[virtual] |
Member Function Documentation
void RKRecord::setData |
( |
unsigned |
size, |
|
|
const unsigned char * |
data | |
|
) |
| | [virtual] |
bool RKRecord::isInteger |
( |
|
) |
const |
bool RKRecord::isFloat |
( |
|
) |
const |
int RKRecord::asInteger |
( |
|
) |
const |
Returns the integer value specified by the record.
It is only valid when isInteger returns true.
- See also:
- isInteger, asFloat
Definition at line 3699 of file excel.cpp.
double RKRecord::asFloat |
( |
|
) |
const |
Returns the floating-point value specified by the record.
It is only valid when isFloat returns true.
- See also:
- isFloat, asInteger
Definition at line 3707 of file excel.cpp.
void RKRecord::setInteger |
( |
int |
i |
) |
|
Sets the integer value to be specified by the record.
- See also:
- setFloat
Definition at line 3715 of file excel.cpp.
void RKRecord::setFloat |
( |
double |
f |
) |
|
Sets the floating-point value to be specified by the record.
- See also:
- setFloat
Definition at line 3722 of file excel.cpp.
virtual const char* Swinder::RKRecord::name |
( |
|
) |
[inline, virtual] |
void RKRecord::dump |
( |
std::ostream & |
out |
) |
const [virtual] |
Dumps record information to output stream.
For debugging only.
Reimplemented from Swinder::Record.
Definition at line 3751 of file excel.cpp.
Member Data Documentation
Static ID of the record.
Subclasses should override this value with the id of the record they handle.
Reimplemented from Swinder::Record.
Definition at line 2235 of file excel.h.
The documentation for this class was generated from the following files: