filters

Swinder::DateModeRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::DateModeRecord:
Swinder::Record

Public Member Functions

unsigned int rtti ()
 DateModeRecord ()
 ~DateModeRecord ()
bool base1904 () const
void setBase1904 (bool r)
virtual void setData (unsigned size, const unsigned char *data)
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

Static Public Attributes

static const unsigned int id = 0x0022
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

Date reference.

Class DateModeRecord represents DateMode record, which specifies reference date for displaying date value of given serial number. If base1904 is true, the reference date is 1st of January, 1904 (in which serial number 1 means 2nd of January, 1904). Otherwise, the reference date is 31st of December, 1899 (in which serial number 1 means 1st of January, 1900).

Definition at line 962 of file excel.h.

Constructor & Destructor Documentation

◆ DateModeRecord()

DateModeRecord::DateModeRecord ( )

Creates a new DateMode record.

Definition at line 2201 of file excel.cpp.

◆ ~DateModeRecord()

DateModeRecord::~DateModeRecord ( )

Destroy the record.

Definition at line 2208 of file excel.cpp.

Member Function Documentation

◆ base1904()

bool DateModeRecord::base1904 ( ) const

Returns true if the reference date is 1st of January, 1904 or false if the reference date is 31st of December, 1899.

See also
setBase1904

Definition at line 2213 of file excel.cpp.

◆ dump()

void DateModeRecord::dump ( std::ostream & out) const
virtual

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2231 of file excel.cpp.

◆ name()

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

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 1000 of file excel.h.

◆ rtti()

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

Reimplemented from Swinder::Record.

Definition at line 968 of file excel.h.

◆ setBase1904()

void DateModeRecord::setBase1904 ( bool r)

If r is true, sets the reference date to 1st of January, 1904.

Else, sets the reference date to 31st of December, 1899.

See also
base1904

Definition at line 2218 of file excel.cpp.

◆ setData()

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

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 2223 of file excel.cpp.

Member Data Documentation

◆ id

const unsigned int DateModeRecord::id = 0x0022
static

Definition at line 966 of file excel.h.


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