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 2186 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

Swinder::RKRecord::RKRecord  ) 
 

Creates a new RK record.

virtual Swinder::RKRecord::~RKRecord  )  [virtual]
 

Destroys the record.


Member Function Documentation

double Swinder::RKRecord::asFloat  )  const
 

Returns the floating-point value specified by the record.

It is only valid when isFloat returns true.

See also:
isFloat, asInteger

int Swinder::RKRecord::asInteger  )  const
 

Returns the integer value specified by the record.

It is only valid when isInteger returns true.

See also:
isInteger, asFloat

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

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

bool Swinder::RKRecord::isFloat  )  const
 

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

See also:
asFloat, isInteger

bool Swinder::RKRecord::isInteger  )  const
 

Returns true if the record holds an integer value.

See also:
asInteger, isFloat

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

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2254 of file excel.h.

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

Sets the data for this record.

Reimplemented from Swinder::Record.

void Swinder::RKRecord::setFloat double  f  ) 
 

Sets the floating-point value to be specified by the record.

See also:
setFloat

void Swinder::RKRecord::setInteger int  i  ) 
 

Sets the integer value to be specified by the record.

See also:
setFloat

Member Data Documentation

const unsigned int Swinder::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 2190 of file excel.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys