filters

Swinder::RKRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::RKRecord:

Swinder::Record Swinder::CellInfo 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

Constructor & Destructor Documentation

RKRecord::RKRecord (  ) 

Creates a new RK record.

Definition at line 3672 of file excel.cpp.

RKRecord::~RKRecord (  )  [virtual]

Destroys the record.

Definition at line 3682 of file excel.cpp.


Member Function Documentation

void RKRecord::setData ( unsigned  size,
const unsigned char *  data 
) [virtual]

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 3734 of file excel.cpp.

bool RKRecord::isInteger (  )  const

Returns true if the record holds an integer value.

See also:
asInteger, isFloat

Definition at line 3687 of file excel.cpp.

bool RKRecord::isFloat (  )  const

Returns true if the record holds a floating-point value.

See also:
asFloat, isInteger

Definition at line 3692 of file excel.cpp.

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 3697 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 3705 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 3713 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 3720 of file excel.cpp.

virtual const char* Swinder::RKRecord::name (  )  [inline, virtual]

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2299 of file excel.h.

void RKRecord::dump ( std::ostream &  out  )  const [virtual]

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 3749 of file excel.cpp.


Member Data Documentation

const unsigned int RKRecord::id [static]

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:
KDE Home | KDE Accessibility Home | Description of Access Keys