Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::SDBVMFieldDate Class Reference

Convert a date to fill 3 columns in the VMat: YYYY, MM, DD. More...

#include <SDBVMat.h>

Inheritance diagram for PLearn::SDBVMFieldDate:

Inheritance graph
[legend]
Collaboration diagram for PLearn::SDBVMFieldDate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SDBVMFieldDate (SDBVMSource source, real missing_values_mapping=MISSING_VALUE)
virtual void convertField (const SDBWithStats &sdb, const Row &row, const Vec &output) const
virtual int fieldWidth () const
 Width that the field occupies in the VMat.


Private Types

typedef SDBVMFieldSource1 inherited

Detailed Description

Convert a date to fill 3 columns in the VMat: YYYY, MM, DD.

Definition at line 503 of file SDBVMat.h.


Member Typedef Documentation

typedef SDBVMFieldSource1 PLearn::SDBVMFieldDate::inherited [private]
 

Reimplemented from PLearn::SDBVMFieldSource1.

Definition at line 505 of file SDBVMat.h.


Constructor & Destructor Documentation

PLearn::SDBVMFieldDate::SDBVMFieldDate SDBVMSource  source,
real  missing_values_mapping = MISSING_VALUE
[inline]
 

Definition at line 508 of file SDBVMat.h.


Member Function Documentation

void PLearn::SDBVMFieldDate::convertField const SDBWithStats sdb,
const Row row,
const Vec output
const [virtual]
 

Given a database row, convert the appropriate parts to a (preallocated) output vector of the correct width (given by fieldWidth). Replace MISSING_VALUEs by missing_values_mapping.

Implements PLearn::SDBVMField.

Definition at line 443 of file SDBVMat.cc.

References PLearn::PDate::day, PLearn::float_to_date(), PLearn::SDBVMSource::getValue(), PLearn::is_missing(), PLearn::PDate::month, PLearn::Vec, and PLearn::PDate::year.

int PLearn::SDBVMFieldDate::fieldWidth  )  const [virtual]
 

Width that the field occupies in the VMat.

Implements PLearn::SDBVMField.

Definition at line 460 of file SDBVMat.cc.


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:22:55 2004 for PLearn by doxygen 1.3.7