filters

#include <excel.h>

Inheritance diagram for Swinder::RKRecord:
Swinder::Record Swinder::CellInfo

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
 
- Public Member Functions inherited from Swinder::Record
 Record ()
 
virtual ~Record ()
 
void setVersion (unsigned v)
 
unsigned version ()
 
void setPosition (unsigned pos)
 
unsigned position () const
 
- Public Member Functions inherited from Swinder::CellInfo
 CellInfo ()
 
virtual ~CellInfo ()
 
virtual unsigned row () const
 
virtual unsigned column () const
 
virtual unsigned xfIndex () const
 
virtual void setRow (unsigned r)
 
virtual void setColumn (unsigned c)
 
virtual void setXfIndex (unsigned i)
 

Static Public Attributes

static const unsigned int id = 0x027e
 
- Static Public Attributes inherited from Swinder::Record
static const unsigned int id = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from Swinder::Record
static Record * create (unsigned type)
 
- Protected Attributes inherited from Swinder::Record
unsigned stream_position
 
unsigned ver
 

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.

Constructor & Destructor Documentation

◆ RKRecord()

RKRecord::RKRecord ( )

Creates a new RK record.

Definition at line 3674 of file excel.cpp.

◆ ~RKRecord()

RKRecord::~RKRecord ( )
virtual

Destroys the record.

Definition at line 3684 of file excel.cpp.

Member Function Documentation

◆ asFloat()

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.

◆ asInteger()

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.

◆ dump()

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.

◆ encodedRK()

unsigned RKRecord::encodedRK ( ) const

Definition at line 3729 of file excel.cpp.

◆ isFloat()

bool RKRecord::isFloat ( ) const

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

See also
asFloat, isInteger

Definition at line 3694 of file excel.cpp.

◆ isInteger()

bool RKRecord::isInteger ( ) const

Returns true if the record holds an integer value.

See also
asInteger, isFloat

Definition at line 3689 of file excel.cpp.

◆ name()

virtual const char * Swinder::RKRecord::name ( )
inlinevirtual

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2299 of file excel.h.

◆ rtti()

unsigned int Swinder::RKRecord::rtti ( )
inlinevirtual

Reimplemented from Swinder::Record.

Definition at line 2237 of file excel.h.

◆ setData()

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

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 3736 of file excel.cpp.

◆ setFloat()

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.

◆ setInteger()

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.

Member Data Documentation

◆ id

const unsigned int RKRecord::id = 0x027e
static

Definition at line 2235 of file excel.h.


The documentation for this class was generated from the following files: