filters

Swinder::BOFRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::BOFRecord:

Swinder::Record List of all members.

Detailed Description

Beginning of file/set of records.

Class BOFRecord represents BOF (Beginning of File) record, which is used to mark beginning of a set of records (following the BOF record). For each BOF record, there should also be one corresponding EOF record.

Note that the name "BOF" is rather misleading. This is because of historical reason only.

See also:
EOFRecord

Definition at line 480 of file excel.h.


Public Types

enum  {
  UnknownType = 0, Workbook, Worksheet, Chart,
  VBModule, MacroSheet, Workspace
}

Public Member Functions

unsigned int rtti ()
 BOFRecord ()
virtual ~BOFRecord ()
virtual void setData (unsigned size, const unsigned char *data)
unsigned version () const
const char * versionAsString () const
unsigned type () const
const char * typeAsString () const
virtual const char * name ()
virtual void dump (std::ostream &out) const

Static Public Attributes

static const unsigned int id

Member Enumeration Documentation

anonymous enum

Supported BOF type.

Definition at line 496 of file excel.h.


Constructor & Destructor Documentation

BOFRecord::BOFRecord (  ) 

Creates a new BOF record.

Definition at line 1704 of file excel.cpp.

BOFRecord::~BOFRecord (  )  [virtual]

Destroys the record.

Definition at line 1717 of file excel.cpp.


Member Function Documentation

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

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 1722 of file excel.cpp.

unsigned BOFRecord::version (  )  const

Returns the version, like Excel95, Excel97, and so on.

Note that it is possible to use expression like 'version() >= Excel97' but always do that carefully.

Definition at line 1740 of file excel.cpp.

const char * BOFRecord::versionAsString (  )  const

Returns the version as string, something like "Excel97".

Definition at line 1752 of file excel.cpp.

unsigned BOFRecord::type (  )  const

Returns type of the BOF record, like Workbook, Chart, and so on.

Definition at line 1764 of file excel.cpp.

const char * BOFRecord::typeAsString (  )  const

Returns BOF type as string, something like "Worksheet".

Definition at line 1780 of file excel.cpp.

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

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 533 of file excel.h.

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

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 1796 of file excel.cpp.


Member Data Documentation

const unsigned int BOFRecord::id [static]

Static ID of the BOF record.

Reimplemented from Swinder::Record.

Definition at line 487 of file excel.h.


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