OOFILE  1.9
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
dbDateTime Class Reference

Persistent field used to store a date and time. More...

#include <oof4.h>

Inheritance diagram for dbDateTime:
Inheritance graph
[legend]
Collaboration diagram for dbDateTime:
Collaboration graph
[legend]

Public Types

enum  { kKeyLengthAutoCalculated = USHRT_MAX }
 
enum  { NUMDATETIMETOKENS = 42 }
 
enum  FieldIsStandaloneT { eFieldIsStandalone }
 

Public Member Functions

virtual const char * asChars () const
 
dbQueryTrinary between (long, long) const
 
dbQueryTrinary between (const char *, const char *) const
 
dbQueryTrinary between (const dbDateTime &, const dbDateTime &) const
 
dbDateTimecalculateWith (dbDateTimeCalculator *adoptedCalculator, bool useOnlyForDefaults=false)
 
dbDateTimeCalculatorcalculator () const
 
bool caseSensitive () const
 
virtual void clear ()
 
virtual dbFieldclone () const
 
virtual oofString copyString () const
 
virtual void copyValueFrom (const dbField *)
 
virtual void copyValueIfDifferent (const dbField *)
 
unsigned short day () const
 
 dbDateTime (const char *fieldName=0)
 
 dbDateTime (const OOF_IndexOptions indexOptions)
 
 dbDateTime (const char *fieldName, const OOF_IndexOptions indexOptions)
 
 dbDateTime (const dbDateTime &rhs)
 
 dbDateTime (dbField::FieldIsStandaloneT)
 
virtual void describe (std::ostream &) const
 Provide human-readable information about object. More...
 
dbQueryBinary equal (long) const
 
dbFieldequivalentFieldFromTable (dbTable *) const
 
virtual void extract (std::ostream &os) const
 
unsigned long fieldDataLen () const
 
bool fieldIndexIgnoresNulls () const
 
bool fieldIndexIsCompressLeading () const
 
bool fieldIndexIsCompressPadding () const
 
OOF_IndexOptions fieldIndexOptions () const
 
virtual bool fieldIsBinary () const
 
virtual bool fieldIsBlob () const
 
virtual bool fieldIsIndexed () const
 
bool fieldIsJoinKey () const
 Checks if any relationships in field's table use field as join key. More...
 
virtual bool fieldIsKeywordIndexed () const
 
bool fieldIsPartiallyIndexed () const
 
virtual bool fieldIsSameTypeAs (const dbField *) const
 
bool fieldIsStandalone () const
 
virtual bool fieldIsUniqueIndexed () const
 
virtual bool fieldIsVirtual () const
 
unsigned short fieldKeyLen () const
 
virtual unsigned long fieldMinWrapWidth () const
 
virtual const oofStringfieldName () const
 
fieldNumT fieldNumber () const
 
unsigned short fieldNumIndexes () const
 
virtual unsigned long fieldStorageLen () const
 
dbTablefieldTable () const
 
virtual OOF_fieldTypes fieldType () const
 
virtual unsigned long fieldUsualWrapWidth () const
 
const oofStringformatMask () const
 
void formatMask (const char *)
 
virtual void generateTestData (bool generateRandom, unsigned long seedOrCount)
 
virtual void getChars (char *ioBuff, unsigned long &outLen) const
 
unsigned long getDateTime () const
 
void getDateTime (unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &minute, unsigned short &second) const
 
void getDateTime (tm &unixTime) const
 
void getStr255 (Str255 s) const
 
dbQueryBinary greaterThan (long) const
 
dbQueryBinary greaterThanOrEqual (long) const
 
bool hasDefaultCalculator () const
 
bool hidden () const
 
void hide (bool hideIt=true)
 
unsigned short hour () const
 
void index (const OOF_IndexOptions=kIndexed)
 
void indexPartialKeyLen (unsigned short)
 
virtual bool insert (std::istream &, char fieldSep, char recSep)
 
bool isDirty () const
 
bool isEmpty () const
 
bool isValid () const
 
dbQueryBinary lessThan (long) const
 
dbQueryBinary lessThanOrEqual (long) const
 
virtual dbQueryLiteralmakeQueryLiteral (long) const
 
unsigned short minute () const
 
unsigned short month () const
 
virtual oofString name () const
 
virtual OOF_fieldTypes nativeType () const
 
dbQueryBinary notEqual (long) const
 
 operator unsigned long () const
 
dbQueryBinary operator!= (long) const
 
dbQueryBinary operator!= (const char *) const
 
dbQueryBinary operator!= (const dbDateTime &) const
 
void operator*= (long)
 
void operator*= (double)
 
unsigned long operator+ (const dbDateTime &) const
 
dbDateTime operator+ (long numDays) const
 
virtual dbDateTimeoperator++ ()
 
void operator+= (double)
 
dbDateTimeoperator+= (long numDays)
 
unsigned long operator- (const dbDateTime &) const
 
dbDateTime operator- (long numDays) const
 
virtual dbDateTimeoperator-- ()
 
void operator-= (double)
 
dbDateTimeoperator-= (long numDays)
 
void operator/= (long)
 
void operator/= (double)
 
dbQueryBinary operator< (long) const
 
dbQueryBinary operator< (const char *) const
 
dbQueryBinary operator< (const dbDateTime &) const
 
dbQueryBinary operator<= (long) const
 
dbQueryBinary operator<= (const char *) const
 
dbQueryBinary operator<= (const dbDateTime &) const
 
dbDateTimeoperator= (const char *str)
 
dbDateTimeoperator= (const tm &)
 
dbDateTimeoperator= (const dbDateTime &rhs)
 
dbQueryBinary operator== (long) const
 
dbQueryBinary operator== (const char *) const
 
dbQueryBinary operator== (const dbDateTime &) const
 
dbQueryBinary operator> (long) const
 
dbQueryBinary operator> (const char *) const
 
dbQueryBinary operator> (const dbDateTime &) const
 
dbQueryBinary operator>= (long) const
 
dbQueryBinary operator>= (const char *) const
 
dbQueryBinary operator>= (const dbDateTime &) const
 
dbQueryTrinary outside (long, long) const
 
dbQueryTrinary outside (const char *, const char *) const
 
dbQueryTrinary outside (const dbDateTime &, const dbDateTime &) const
 
virtual void postCloneTableCleanup ()
 
void saveDefaultCalculatedValue ()
 
void saveStoredCalculatedValue ()
 
unsigned short second () const
 
void setDateTime (unsigned long numberSecondsSinceBaseDate)
 
void setDateTime (unsigned short year, unsigned short month, unsigned short day, unsigned short hour, unsigned short minute, unsigned short second)
 
void setDateTime (const tm &unixTime)
 
void setName (const char *name)
 
virtual void setNumber (long)
 
void setStr255 (const Str255 s)
 
virtual void setString (const char *)
 
void setTimeToCurrentTime ()
 
void storeCalculatedValues ()
 
bool storesCalculatedValues () const
 
const char * tableName () const
 
void useCalculatorOnlyForDefaults ()
 
bool usingCalculator () const
 
virtual bool validateContents ()
 
unsigned long value () const
 
virtual dbQueryClausevalueAsQueryLiteral () const
 
bool valueIsDuplicate () const
 
virtual oofWordParserwords () const
 
unsigned short year () const
 
virtual ~dbDateTime ()
 

Static Public Member Functions

static bool checkTime (unsigned short year, unsigned short month, unsigned short day, unsigned short hour, unsigned short minute, unsigned short second)
 
static bool checkTime (const char *)
 
static unsigned short currentDay ()
 
static unsigned short currentHour ()
 
static unsigned short currentMinute ()
 
static unsigned short currentMonth ()
 
static unsigned short currentSecond ()
 
static dbDateTime currentTime ()
 
static void currentTime2ymdhms (unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &minute, unsigned short &second)
 
static unsigned short currentYear ()
 
static unsigned short daysInMonth (unsigned short year, unsigned short month)
 
static const oofStringdefaultFormatMask ()
 
static void defaultFormatMask (const oofString &)
 
static TOKEN get_token (const char **s, const OOF_TOKENTYPE *m, unsigned int len)
 
static bool istream2ymdhms (std::istream &is, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &minute, unsigned short &second, dbDate::dateFieldOrder)
 
static bool istream2ymdhms (std::istream &is, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &minute, unsigned short &second, char fieldSep, char recSep, dbDate::dateFieldOrder)
 
static std::ostream & now (std::ostream &os)
 
static void parseMask (const char *s, TOKEN *r, const OOF_TOKENTYPE *map, unsigned int len)
 
static unsigned long secsInMonth (unsigned short year, unsigned short month)
 
static unsigned long secsInYear (unsigned short year)
 
static void setMacCompatibleBaseYear ()
 
static unsigned long str2ulong (const char *str)
 
static bool str2ymdhms (const char *str, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &minute, unsigned short &second)
 
static void ulong2ymdhms (long binaryTime, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &minute, unsigned short &second)
 
static std::ostream & ymdhms2stream (unsigned short year, unsigned short month, unsigned short day, unsigned short hour, unsigned short minute, unsigned short second, std::ostream &os)
 
static std::ostream & ymdhms2stream (const char *mask, unsigned short year, unsigned short month, unsigned short day, unsigned short hour, unsigned short minute, unsigned short second, std::ostream &os)
 
static unsigned long ymdhms2ulong (unsigned short year, unsigned short month, unsigned short day, unsigned short hour=0, unsigned short minute=0, unsigned short second=0)
 

Public Attributes

OOF_String mFormatMask
 

Static Public Attributes

static unsigned int sBaseYear = 1970
 

Protected Member Functions

void CalculateWith (dbCalculator *adoptedCalculator, bool useOnlyForDefaults)
 
virtual void CopyCalculatedValueToBuffer ()
 

Static Protected Member Functions

static void CheckRange (double d, long minL, long maxL, const char *file, int line)
 
static void CheckRange (long l, long minL, long maxL, const char *file, int line)
 
static void CheckRange (unsigned long l, unsigned long max, const char *file, int line)
 

Protected Attributes

OOF_tableBackendmBackend
 
dbCalculatormCalculator
 
fieldNumT mFieldNumber
 
bool mHidden
 
dbTablemTable
 

Static Protected Attributes

static oofString sDefaultFormatMask
 
static OOF_TOKENTYPE tokenMap [NUMDATETIMETOKENS]
 

Detailed Description

Persistent field used to store a date and time.

Stores as offset from base date with range of about 139 years. Default base date is 1/1/1900 or 1904 if call setMacCompatibleBaseYear Flexible parser is very sensitive to setting dbDate::sDefaultDateOrder.

Todo:
confirm if affected by CodeWarrior 7EA changing tm in <time.h> to use 1900 base year.

Definition at line 929 of file oof4.h.

Constructor & Destructor Documentation

dbDateTime::dbDateTime ( const char *  fieldName = 0)

Definition at line 2571 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

Referenced by clone(), and currentTime().

dbDateTime::dbDateTime ( const OOF_IndexOptions  indexOptions)

Definition at line 2564 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

dbDateTime::dbDateTime ( const char *  fieldName,
const OOF_IndexOptions  indexOptions 
)

Definition at line 2578 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

dbDateTime::dbDateTime ( const dbDateTime rhs)

Definition at line 2592 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

dbDateTime::dbDateTime ( dbField::FieldIsStandaloneT  k)

Definition at line 2585 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

dbDateTime::~dbDateTime ( )
virtual

Definition at line 2599 of file oof5.cpp.

Member Function Documentation

const char * dbField::asChars ( ) const
virtualinherited
dbQueryTrinary dbNumericField::between ( long  fromNum,
long  toNum 
) const
inherited

Definition at line 48 of file oof4.cpp.

References dbQueryClause::between, and dbNumericField::makeQueryLiteral().

Referenced by dbDate::between(), dbTime::between(), and between().

dbQueryTrinary dbDateTime::between ( const char *  fromStr,
const char *  toStr 
) const

Definition at line 2697 of file oof5.cpp.

References dbNumericField::between(), and str2ulong().

dbQueryTrinary dbDateTime::between ( const dbDateTime fromDate,
const dbDateTime toDate 
) const

Definition at line 2756 of file oof5.cpp.

References dbNumericField::between(), and value().

void dbField::CalculateWith ( dbCalculator adoptedCalculator,
bool  useOnlyForDefaults 
)
protectedinherited
dbDateTime & dbDateTime::calculateWith ( dbDateTimeCalculator adoptedCalculator,
bool  useOnlyForDefaults = false 
)

Definition at line 2830 of file oof5.cpp.

References dbField::CalculateWith().

dbDateTimeCalculator * dbDateTime::calculator ( ) const
inline

Definition at line 2120 of file oof4.h.

References dbField::mCalculator.

Referenced by CopyCalculatedValueToBuffer().

bool dbField::caseSensitive ( ) const
inlineinherited

Definition at line 747 of file oof3.h.

References kIndexCaseSensitive.

void dbNumericField::CheckRange ( double  d,
long  minL,
long  maxL,
const char *  file,
int  line 
)
staticprotectedinherited
void dbNumericField::CheckRange ( long  l,
long  minL,
long  maxL,
const char *  file,
int  line 
)
staticprotectedinherited

Definition at line 455 of file oof4.cpp.

References RAISE_EXCEPTION.

void dbNumericField::CheckRange ( unsigned long  l,
unsigned long  max,
const char *  file,
int  line 
)
staticprotectedinherited

Definition at line 474 of file oof4.cpp.

References RAISE_EXCEPTION.

bool dbDateTime::checkTime ( unsigned short  year,
unsigned short  month,
unsigned short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second 
)
static

Definition at line 2846 of file oof5.cpp.

References daysInMonth(), and sBaseYear.

Referenced by checkTime(), ulong2ymdhms(), dbDateTimeLink2Editor::validToLeaveLink(), and ymdhms2ulong().

bool dbDateTime::checkTime ( const char *  str)
static
void dbNumericField::clear ( )
virtualinherited

Reimplemented from dbField.

Definition at line 41 of file oof4.cpp.

References dbField::setNumber().

dbField * dbDateTime::clone ( ) const
virtual

Implements dbField.

Reimplemented in oofDateTime.

Definition at line 2604 of file oof5.cpp.

References dbDateTime().

void dbDateTime::CopyCalculatedValueToBuffer ( )
protectedvirtual

Reimplemented from dbField.

Definition at line 2838 of file oof5.cpp.

References calculator(), dbField::mCalculator, and setDateTime().

oofString dbField::copyString ( ) const
virtualinherited

Reimplemented in dbText, and dbChar.

Definition at line 472 of file oof3.cpp.

References dbField::extract().

Referenced by dbFieldLink::copyFieldToLink(), dbFieldLink::copyLinkToField(), oofRepGraphBand_CSVRender::draw(), oofRepGraphBand_TSVRender::draw(), oofRepViewBand_HTMLRender::draw(), oofRepViewBand_CSVRender::draw(), oofRepViewBand_TSVRender::draw(), oofRepViewBand_WinRender::draw(), oofRepViewBand_MacRender::draw(), oofRepViewBand_RTFRender::draw(), dbRepHTML::drawColumnar(), dbRepHTMLTable::drawColumnar(), dbRepChar::drawColumnar(), dbRepHTML::drawPageWise(), dbRepHTMLTable::drawPageWise(), dbRepChar::drawPageWise(), dbRep::extract(), oofColumnGraph::finishConstruction(), oofPointGraph::finishConstruction(), oofLineGraph::finishConstruction(), oofBarGraph::finishConstruction(), oofStackedBarGraph::finishConstruction(), oofOrdinalStackedBarGraph::finishConstruction(), oofPieGraph::finishConstruction(), oofRepViewEditLink::getCellText(), oofRepFieldBlock::getCellText(), OOF_mixOutlineItem::GetDrawContentsFromView(), dbDate::getStr255(), getStr255(), dbFieldLink::linkEqualsField(), oofRepFieldBlock::MiddleText(), oofRepCustomViewDrawer::plainText(), OOF_simpleRecordBackend::recordNumberMatching(), OOF_simpleRecordBackend::SearchEqualNonIndexedWildcard(), OOF_simpleRecordBackend::SearchNotEqualNonIndexedWildcard(), OOF_simpleRecordBackend::searchSelContainsAllOf(), OOF_simpleRecordBackend::searchSelContainsAnyOf(), dbGUIAdaptLPopupButton::setValueList(), OOF_simpleRecordBackend::SubSort(), dbFieldLink::validToLeaveForm(), and oofXMLDBWriter::writeRecord().

void dbDateTime::copyValueFrom ( const dbField srcField)
virtual

Reimplemented from dbField.

Definition at line 3540 of file oof5.cpp.

References dateTimeField, dbField::fieldName(), dbField::fieldType(), dbConnect::raise(), and setDateTime().

void dbDateTime::copyValueIfDifferent ( const dbField srcField)
virtual

Reimplemented from dbField.

Definition at line 3552 of file oof5.cpp.

References dateTimeField, dbField::fieldName(), dbField::fieldType(), dbConnect::raise(), setDateTime(), and value().

unsigned short dbDateTime::currentDay ( )
static

Definition at line 3823 of file oof5.cpp.

References currentTime2ymdhms(), day(), hour(), minute(), month(), second(), and year().

unsigned short dbDateTime::currentHour ( )
static

Definition at line 3831 of file oof5.cpp.

References currentTime2ymdhms(), day(), hour(), minute(), month(), second(), and year().

unsigned short dbDateTime::currentMinute ( )
static

Definition at line 3839 of file oof5.cpp.

References currentTime2ymdhms(), day(), hour(), minute(), month(), second(), and year().

unsigned short dbDateTime::currentMonth ( )
static

Definition at line 3815 of file oof5.cpp.

References currentTime2ymdhms(), day(), hour(), minute(), month(), second(), and year().

unsigned short dbDateTime::currentSecond ( )
static

Definition at line 3847 of file oof5.cpp.

References currentTime2ymdhms(), day(), hour(), minute(), month(), second(), and year().

dbDateTime dbDateTime::currentTime ( )
static
void dbDateTime::currentTime2ymdhms ( unsigned short &  year,
unsigned short &  month,
unsigned short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second 
)
static
unsigned short dbDateTime::currentYear ( )
static

Definition at line 3807 of file oof5.cpp.

References currentTime2ymdhms(), day(), hour(), minute(), month(), second(), and year().

unsigned short dbDateTime::day ( ) const
unsigned short dbDateTime::daysInMonth ( unsigned short  year,
unsigned short  month 
)
static

Definition at line 3421 of file oof5.cpp.

References dbDate::isLeapYear(), and dbConnect::raise().

Referenced by checkTime(), and secsInMonth().

const oofString & dbDateTime::defaultFormatMask ( )
inlinestatic

Definition at line 2098 of file oof4.h.

References sDefaultFormatMask.

void dbDateTime::defaultFormatMask ( const oofString inMask)
inlinestatic

Definition at line 2105 of file oof4.h.

References sDefaultFormatMask.

void dbField::describe ( std::ostream &  ) const
virtualinherited

Provide human-readable information about object.

Overriden to provide much more detail particularly for dbTable::describe() which provides full schema.

Reimplemented from OOF_PublicBase.

Reimplemented in dbFixedBinary, dbChar, and dbRelRefBase.

Definition at line 544 of file oof3.cpp.

References dbField::fieldIndexOptions(), dbField::fieldIsIndexed(), dbField::fieldType(), and oofString::isEmpty().

Referenced by dbChar::describe(), dbFixedBinary::describe(), and dbTable::setSortOrder().

dbQueryBinary dbNumericField::equal ( long  n) const
inherited

Definition at line 320 of file oof4.cpp.

References dbQueryClause::equals, and dbNumericField::makeQueryLiteral().

dbField * dbField::equivalentFieldFromTable ( dbTable baseTable) const
inherited
void dbDateTime::extract ( std::ostream &  os) const
virtual

Reimplemented from dbField.

Definition at line 3745 of file oof5.cpp.

References day(), hour(), oofString::length(), dbNumericField::mFormatMask, minute(), month(), second(), ulong2ymdhms(), year(), and ymdhms2stream().

Referenced by operator<<().

unsigned long dbField::fieldDataLen ( ) const
inlineinherited
bool dbField::fieldIndexIgnoresNulls ( ) const
inlineinherited

Definition at line 699 of file oof3.h.

References kIndexNoNulls.

Referenced by OOF_ctreeBackend::countAll().

bool dbField::fieldIndexIsCompressLeading ( ) const
inlineinherited

Definition at line 707 of file oof3.h.

References kIndexCompressLeading.

bool dbField::fieldIndexIsCompressPadding ( ) const
inlineinherited

Definition at line 715 of file oof3.h.

References kIndexCompressPadding.

OOF_IndexOptions dbField::fieldIndexOptions ( ) const
inlineinherited

Definition at line 678 of file oof3.h.

Referenced by dbField::describe().

bool dbField::fieldIsBinary ( ) const
virtualinherited

Reimplemented in dbText, and dbChar.

Definition at line 393 of file oof3.cpp.

bool dbField::fieldIsBlob ( ) const
virtualinherited
bool dbField::fieldIsIndexed ( ) const
virtualinherited
bool dbField::fieldIsJoinKey ( ) const
inherited

Checks if any relationships in field's table use field as join key.

Relatively expensive because it's iterating over all fields but all the function calls below are inline queries so will compile down well in release mode.

WARNING Doesn't fan out - if any other tables use this field as a join key then they are doing really weird stuff and the application programmer must add their own checks.

This feature originally added to support OOF_repEditSetupVisitor::VisitViewBandBody

Definition at line 327 of file oof3.cpp.

References dbTable::field(), dbField::fieldIsStandalone(), dbField::fieldType(), dbRelRefBase::joinField(), dbField::mFieldNumber, dbField::mTable, dbTable::numFields(), and relationshipField.

Referenced by OOF_repEditSetupVisitor::VisitIterableBandBody().

bool dbField::fieldIsKeywordIndexed ( ) const
virtualinherited

Reimplemented in dbText, and dbChar.

Definition at line 415 of file oof3.cpp.

Referenced by OOF_ctreeBackend::BuildBackendtables().

bool dbField::fieldIsPartiallyIndexed ( ) const
inlineinherited

Definition at line 692 of file oof3.h.

References dbField::kKeyLengthAutoCalculated.

Referenced by dbField::fieldKeyLen().

bool dbField::fieldIsSameTypeAs ( const dbField rhs) const
virtualinherited
bool dbField::fieldIsStandalone ( ) const
inlineinherited
bool dbField::fieldIsUniqueIndexed ( ) const
virtualinherited
bool dbField::fieldIsVirtual ( ) const
virtualinherited
unsigned short dbField::fieldKeyLen ( ) const
inherited
unsigned long dbNumericField::fieldMinWrapWidth ( ) const
virtualinherited

Reimplemented from dbField.

Definition at line 493 of file oof4.cpp.

References dbField::fieldStorageLen(), oofString::length(), and dbNumericField::mFormatMask.

const oofString & dbField::fieldName ( ) const
inlinevirtualinherited

Reimplemented in dbRelRefBase.

Definition at line 769 of file oof3.h.

Referenced by dbView::AppendOwnedField(), OOF_ramBackend::BuildBackendtables(), OOF_dbaseBackend::BuildBackendtables(), OOF_ctreeBackend::BuildBackendtables(), dbShort::copyValueFrom(), dbChar::copyValueFrom(), dbUshort::copyValueFrom(), dbBool::copyValueFrom(), dbLong::copyValueFrom(), dbUlong::copyValueFrom(), dbText::copyValueFrom(), dbReal::copyValueFrom(), dbDate::copyValueFrom(), dbTime::copyValueFrom(), copyValueFrom(), dbShort::copyValueIfDifferent(), dbChar::copyValueIfDifferent(), dbUshort::copyValueIfDifferent(), dbBool::copyValueIfDifferent(), dbLong::copyValueIfDifferent(), dbUlong::copyValueIfDifferent(), dbText::copyValueIfDifferent(), dbReal::copyValueIfDifferent(), dbDate::copyValueIfDifferent(), dbTime::copyValueIfDifferent(), copyValueIfDifferent(), OOF_dbaseBackend::createTableInConnection(), dbView::currentHeading(), dbRelRefBase::describe(), dbQueryField::describe(), dbRepHTML::drawHeader(), dbRepHTMLTable::drawHeader(), dbRepChar::drawHeader(), dbRepHTML::drawPageWise(), dbRepHTMLTable::drawPageWise(), dbRepChar::drawPageWise(), oofXMLdataParser::EnterNestedData(), dbRep::extract(), oofE_CtreeBlobError::extract(), dbRelRefBase::fieldName(), oofColumnGraph::finishConstruction(), oofPointGraph::finishConstruction(), oofLineGraph::finishConstruction(), oofXYGraph::finishConstruction(), oofBarGraph::finishConstruction(), oofStackedBarGraph::finishConstruction(), oofOrdinalStackedBarGraph::finishConstruction(), dbView::getHeading(), dbQueryField::getSearchTables(), dbChar::insert(), dbText::insert(), dbField::name(), OOF_simpleRecordBackend::sortSelectionInverseNow(), OOF_simpleRecordBackend::sortSelectionNow(), oofXMLdataParser::startElement(), oofXMLDBWriter::startSchema(), OOF_repXMLschemaVisitor::UniquifyTables(), dbFieldLink::validToLeaveForm(), and oofXMLDBWriter::writeRecord().

fieldNumT dbField::fieldNumber ( ) const
inlineinherited
unsigned short dbField::fieldNumIndexes ( ) const
inlineinherited

Definition at line 723 of file oof3.h.

References kNotIndexed.

Referenced by OOF_ctreeBackend::BuildBackendtables().

unsigned long dbDateTime::fieldStorageLen ( ) const
virtual

Implements dbField.

Definition at line 2808 of file oof5.cpp.

dbTable * dbField::fieldTable ( ) const
inherited
OOF_fieldTypes dbDateTime::fieldType ( ) const
virtual

Implements dbField.

Definition at line 2814 of file oof5.cpp.

References dateTimeField.

unsigned long dbField::fieldUsualWrapWidth ( ) const
virtualinherited

Reimplemented in dbText, and dbChar.

Definition at line 235 of file oof3.cpp.

References dbField::fieldMinWrapWidth().

Referenced by oofViewFieldDefaultsColSizer::CalculateDefaultWidths().

const oofString & dbNumericField::formatMask ( ) const
inlineinherited
void dbNumericField::formatMask ( const char *  str)
inlineinherited

Definition at line 1388 of file oof4.h.

References dbNumericField::mFormatMask.

void dbDateTime::generateTestData ( bool  generateRandom,
unsigned long  seedOrCount 
)
virtual

Reimplemented from dbField.

Definition at line 3464 of file oof5.cpp.

References sBaseYear, setDateTime(), and ymdhms2ulong().

TOKEN dbNumericField::get_token ( const char **  s,
const OOF_TOKENTYPE m,
unsigned int  len 
)
staticinherited

Definition at line 142 of file oof5.cpp.

References eNUM, eOTHER, TOKEN::s, SLEN, TOKEN::token, TOKEN::value, vlen, and vocab.

void dbField::getChars ( char *  ioBuff,
unsigned long &  outLen 
) const
virtualinherited

Reimplemented in dbText, and dbChar.

Definition at line 481 of file oof3.cpp.

References dbField::extract().

Referenced by dbViewAsTableStorage::GetCellData().

unsigned long dbDateTime::getDateTime ( ) const
inline

Definition at line 2127 of file oof4.h.

Referenced by day(), getDateTime(), hour(), minute(), month(), second(), and year().

void dbDateTime::getDateTime ( unsigned short &  year,
unsigned short &  month,
unsigned short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second 
) const

Definition at line 3676 of file oof5.cpp.

References getDateTime(), and ulong2ymdhms().

void dbDateTime::getDateTime ( tm &  unixTime) const

Definition at line 3682 of file oof5.cpp.

References day(), getDateTime(), hour(), minute(), month(), second(), and year().

void dbDateTime::getStr255 ( Str255  s) const

Definition at line 3624 of file oof5.cpp.

References dbField::copyString(), and oofString::getStr255().

dbQueryBinary dbNumericField::greaterThan ( long  n) const
inherited

Definition at line 348 of file oof4.cpp.

References dbQueryClause::greaterThan, and dbNumericField::makeQueryLiteral().

dbQueryBinary dbNumericField::greaterThanOrEqual ( long  n) const
inherited
bool dbField::hasDefaultCalculator ( ) const
inlineinherited
bool OOF_PublicBase::hidden ( ) const
inlineinherited

Definition at line 51 of file oof1.h.

Referenced by OOF_Dictionary::EntryMatchesVisibility().

void OOF_PublicBase::hide ( bool  hideIt = true)
inlineinherited

Definition at line 52 of file oof1.h.

unsigned short dbDateTime::hour ( ) const
void dbField::index ( const OOF_IndexOptions  indexOpt = kIndexed)
inherited

Definition at line 212 of file oof3.cpp.

Referenced by dbRelRefBase::joinField(), and dbRelRefBase::SetCommonRelationshipFields().

void dbField::indexPartialKeyLen ( unsigned short  inLen)
inlineinherited

Definition at line 685 of file oof3.h.

bool dbDateTime::insert ( std::istream &  ,
char  fieldSep,
char  recSep 
)
virtual

Reimplemented from dbField.

Definition at line 3598 of file oof5.cpp.

References day(), hour(), istream2ymdhms(), minute(), month(), dbDate::sDefaultDateOrder, second(), setDateTime(), and year().

bool dbField::isDirty ( ) const
inherited
bool dbDateTime::isEmpty ( ) const
inlinevirtual

Reimplemented from dbField.

Definition at line 2141 of file oof4.h.

static bool dbDateTime::istream2ymdhms ( std::istream &  is,
unsigned short &  year,
unsigned short &  month,
unsigned short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second,
dbDate::dateFieldOrder   
)
static
static bool dbDateTime::istream2ymdhms ( std::istream &  is,
unsigned short &  year,
unsigned short &  month,
unsigned short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second,
char  fieldSep,
char  recSep,
dbDate::dateFieldOrder   
)
static
bool dbDateTime::isValid ( ) const
inline

Definition at line 2149 of file oof4.h.

Referenced by dbDateTimeLink2Editor::updateDerivedFieldDisplay().

dbQueryBinary dbNumericField::lessThan ( long  n) const
inherited

Definition at line 334 of file oof4.cpp.

References dbQueryClause::lessThan, and dbNumericField::makeQueryLiteral().

dbQueryBinary dbNumericField::lessThanOrEqual ( long  n) const
inherited

Definition at line 341 of file oof4.cpp.

References dbQueryClause::lessThanOrEqual, and dbNumericField::makeQueryLiteral().

dbQueryLiteral * dbNumericField::makeQueryLiteral ( long  n) const
virtualinherited
unsigned short dbDateTime::minute ( ) const
unsigned short dbDateTime::month ( ) const
oofString dbField::name ( ) const
virtualinherited

Reimplemented from OOF_PublicBase.

Definition at line 156 of file oof3.cpp.

References dbField::fieldName().

Referenced by dbField::setName().

OOF_fieldTypes dbDateTime::nativeType ( ) const
virtual

Reimplemented from dbField.

Definition at line 2820 of file oof5.cpp.

References uLongField.

dbQueryBinary dbNumericField::notEqual ( long  n) const
inherited

Definition at line 327 of file oof4.cpp.

References dbNumericField::makeQueryLiteral(), and dbQueryClause::notEquals.

ostream & dbDateTime::now ( std::ostream &  os)
static
dbDateTime::operator unsigned long ( ) const

Definition at line 3658 of file oof5.cpp.

dbQueryBinary dbNumericField::operator!= ( long  n) const
inherited
dbQueryBinary dbDateTime::operator!= ( const char *  str) const

Definition at line 2724 of file oof5.cpp.

References dbNumericField::operator!=(), and str2ulong().

dbQueryBinary dbDateTime::operator!= ( const dbDateTime rhs) const

Definition at line 2774 of file oof5.cpp.

References dbNumericField::operator!=(), and value().

void dbNumericField::operator*= ( long  )
inherited

Definition at line 389 of file oof4.cpp.

void dbNumericField::operator*= ( double  )
inherited

Definition at line 425 of file oof4.cpp.

unsigned long dbDateTime::operator+ ( const dbDateTime rhs) const

Definition at line 2649 of file oof5.cpp.

dbDateTime dbDateTime::operator+ ( long  numDays) const

Definition at line 2663 of file oof5.cpp.

dbDateTime & dbDateTime::operator++ ( )
virtual

Definition at line 2626 of file oof5.cpp.

void dbNumericField::operator+= ( double  )
inherited

Definition at line 416 of file oof4.cpp.

dbDateTime & dbDateTime::operator+= ( long  numDays)

Definition at line 2618 of file oof5.cpp.

References kSecondsInDay, setDateTime(), and value().

unsigned long dbDateTime::operator- ( const dbDateTime rhs) const

Definition at line 2656 of file oof5.cpp.

dbDateTime dbDateTime::operator- ( long  numDays) const

Definition at line 2671 of file oof5.cpp.

dbDateTime & dbDateTime::operator-- ( )
virtual

Definition at line 2634 of file oof5.cpp.

void dbNumericField::operator-= ( double  )
inherited

Definition at line 407 of file oof4.cpp.

dbDateTime & dbDateTime::operator-= ( long  numDays)

Definition at line 2642 of file oof5.cpp.

References kSecondsInDay, setDateTime(), and value().

void dbNumericField::operator/= ( long  )
inherited

Definition at line 362 of file oof4.cpp.

void dbNumericField::operator/= ( double  )
inherited

Definition at line 398 of file oof4.cpp.

dbQueryBinary dbNumericField::operator< ( long  n) const
inherited
dbQueryBinary dbDateTime::operator< ( const char *  str) const

Definition at line 2730 of file oof5.cpp.

References dbNumericField::operator<(), and str2ulong().

dbQueryBinary dbDateTime::operator< ( const dbDateTime rhs) const

Definition at line 2780 of file oof5.cpp.

References dbNumericField::operator<(), and value().

dbQueryBinary dbNumericField::operator<= ( long  n) const
inherited
dbQueryBinary dbDateTime::operator<= ( const char *  str) const

Definition at line 2736 of file oof5.cpp.

References dbNumericField::operator<=(), and str2ulong().

dbQueryBinary dbDateTime::operator<= ( const dbDateTime rhs) const

Definition at line 2786 of file oof5.cpp.

References dbNumericField::operator<=(), and value().

dbDateTime & dbDateTime::operator= ( const char *  str)
dbDateTime & dbDateTime::operator= ( const tm &  rhs)
inline

Definition at line 2112 of file oof4.h.

References setDateTime().

dbDateTime & dbDateTime::operator= ( const dbDateTime rhs)

Definition at line 3587 of file oof5.cpp.

References setDateTime(), and value().

dbQueryBinary dbNumericField::operator== ( long  n) const
inherited
dbQueryBinary dbDateTime::operator== ( const char *  str) const

Definition at line 2718 of file oof5.cpp.

References dbNumericField::operator==(), and str2ulong().

dbQueryBinary dbDateTime::operator== ( const dbDateTime rhs) const

Definition at line 2768 of file oof5.cpp.

References dbNumericField::operator==(), and value().

dbQueryBinary dbNumericField::operator> ( long  n) const
inherited
dbQueryBinary dbDateTime::operator> ( const char *  str) const

Definition at line 2742 of file oof5.cpp.

References dbNumericField::operator>(), and str2ulong().

dbQueryBinary dbDateTime::operator> ( const dbDateTime rhs) const

Definition at line 2792 of file oof5.cpp.

References dbNumericField::operator>(), and value().

dbQueryBinary dbNumericField::operator>= ( long  n) const
inherited
dbQueryBinary dbDateTime::operator>= ( const char *  str) const

Definition at line 2748 of file oof5.cpp.

References dbNumericField::operator>=(), and str2ulong().

dbQueryBinary dbDateTime::operator>= ( const dbDateTime rhs) const

Definition at line 2798 of file oof5.cpp.

References dbNumericField::operator>=(), and value().

dbQueryTrinary dbNumericField::outside ( long  fromNum,
long  toNum 
) const
inherited

Definition at line 56 of file oof4.cpp.

References dbNumericField::makeQueryLiteral(), and dbQueryClause::outside.

Referenced by dbDate::outside(), dbTime::outside(), and outside().

dbQueryTrinary dbDateTime::outside ( const char *  fromStr,
const char *  toStr 
) const

Definition at line 2703 of file oof5.cpp.

References dbNumericField::outside(), and str2ulong().

dbQueryTrinary dbDateTime::outside ( const dbDateTime fromDate,
const dbDateTime toDate 
) const

Definition at line 2762 of file oof5.cpp.

References dbNumericField::outside(), and value().

void dbNumericField::parseMask ( const char *  s,
TOKEN r,
const OOF_TOKENTYPE map,
unsigned int  len 
)
staticinherited

Definition at line 193 of file oof5.cpp.

References eACT, eDEA, eEOT, eOTHER, MAXTOKENS, TOKEN::s, and TOKEN::token.

virtual void dbField::postCloneTableCleanup ( )
inlinevirtualinherited

Reimplemented in dbRelRefBase.

Definition at line 77 of file oof3.h.

Referenced by dbTable::postCloneTableCleanup().

void dbField::saveDefaultCalculatedValue ( )
inherited
void dbField::saveStoredCalculatedValue ( )
inherited

Definition at line 282 of file oof3.cpp.

References dbField::CopyCalculatedValueToBuffer().

Referenced by OOF_simpleRecordBackend::saveRecord().

unsigned short dbDateTime::second ( ) const
unsigned long dbDateTime::secsInMonth ( unsigned short  year,
unsigned short  month 
)
static

Definition at line 3413 of file oof5.cpp.

References daysInMonth(), and kSecondsInDay.

Referenced by ulong2ymdhms(), and ymdhms2ulong().

unsigned long dbDateTime::secsInYear ( unsigned short  year)
static

Definition at line 3401 of file oof5.cpp.

References dbDate::isLeapYear(), and kSecondsInDay.

Referenced by ulong2ymdhms(), and ymdhms2ulong().

void dbDateTime::setDateTime ( unsigned long  numberSecondsSinceBaseDate)
void dbDateTime::setDateTime ( unsigned short  year,
unsigned short  month,
unsigned short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second 
)

Definition at line 3510 of file oof5.cpp.

References setDateTime(), and ymdhms2ulong().

void dbDateTime::setDateTime ( const tm &  unixTime)

Definition at line 3517 of file oof5.cpp.

References setDateTime().

void dbDateTime::setMacCompatibleBaseYear ( )
static

Definition at line 3857 of file oof5.cpp.

References sBaseYear.

void dbField::setName ( const char *  name)
inherited

Definition at line 195 of file oof3.cpp.

References dbField::name().

Referenced by dbView::AppendOwnedField(), and OOF_repXMLschemaVisitor::UniquifyTables().

void dbDateTime::setNumber ( long  n)
virtual

Reimplemented from dbField.

Definition at line 3486 of file oof5.cpp.

References setDateTime().

void dbDateTime::setStr255 ( const Str255  s)

Definition at line 3632 of file oof5.cpp.

References setDateTime().

void dbDateTime::setString ( const char *  str)
virtual

Reimplemented from dbField.

Definition at line 3652 of file oof5.cpp.

References operator=().

void dbDateTime::setTimeToCurrentTime ( )

Definition at line 3531 of file oof5.cpp.

References currentTime2ymdhms(), day(), hour(), minute(), month(), second(), setDateTime(), and year().

Referenced by currentTime().

void dbField::storeCalculatedValues ( )
inlineinherited

Definition at line 813 of file oof3.h.

Referenced by OOF_ctreeBackend::BuildBackendtables().

bool dbField::storesCalculatedValues ( ) const
inlineinherited

Definition at line 806 of file oof3.h.

Referenced by OOF_simpleRecordBackend::GetFieldWriteDest().

unsigned long dbDateTime::str2ulong ( const char *  str)
static
bool dbDateTime::str2ymdhms ( const char *  str,
unsigned short &  year,
unsigned short &  month,
unsigned short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second 
)
static

Definition at line 3390 of file oof5.cpp.

References istream2ymdhms(), and dbDate::sDefaultDateOrder.

Referenced by operator=().

const char * dbField::tableName ( ) const
inherited
void dbDateTime::ulong2ymdhms ( long  binaryTime,
unsigned short &  year,
unsigned short &  month,
unsigned short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second 
)
static
void dbField::useCalculatorOnlyForDefaults ( )
inlineinherited

Definition at line 799 of file oof3.h.

Referenced by dbField::CalculateWith().

bool dbField::usingCalculator ( ) const
inherited
bool dbField::validateContents ( )
virtualinherited

Definition at line 177 of file oof3.cpp.

unsigned long dbDateTime::value ( ) const
inline
dbQueryClause * dbDateTime::valueAsQueryLiteral ( ) const
virtual

Reimplemented from dbField.

Definition at line 2710 of file oof5.cpp.

References dbNumericField::makeQueryLiteral(), and value().

bool dbField::valueIsDuplicate ( ) const
inherited
oofWordParser * dbField::words ( ) const
virtualinherited

Reimplemented in dbText, and dbChar.

Definition at line 251 of file oof3.cpp.

Referenced by OOF_simpleRecordBackend::SearchWordNonIndexed(), and OOF_ctreeKeywordIndex::updateWords().

unsigned short dbDateTime::year ( ) const
static std::ostream& dbDateTime::ymdhms2stream ( unsigned short  year,
unsigned short  month,
unsigned short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second,
std::ostream &  os 
)
static

Referenced by extract(), and now().

static std::ostream& dbDateTime::ymdhms2stream ( const char *  mask,
unsigned short  year,
unsigned short  month,
unsigned short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second,
std::ostream &  os 
)
static
unsigned long dbDateTime::ymdhms2ulong ( unsigned short  year,
unsigned short  month,
unsigned short  day,
unsigned short  hour = 0,
unsigned short  minute = 0,
unsigned short  second = 0 
)
static

Member Data Documentation

OOF_tableBackend* dbField::mBackend
protectedinherited
dbCalculator* dbField::mCalculator
protectedinherited
fieldNumT dbField::mFieldNumber
protectedinherited
OOF_String dbNumericField::mFormatMask
inherited
bool OOF_PublicBase::mHidden
protectedinherited

Definition at line 61 of file oof1.h.

dbTable* dbField::mTable
protectedinherited
unsigned int dbDateTime::sBaseYear = 1970
static
oofString dbDateTime::sDefaultFormatMask
staticprotected

Definition at line 1102 of file oof4.h.

Referenced by dbDateTime(), and defaultFormatMask().

OOF_TOKENTYPE dbDateTime::tokenMap
staticprotected

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