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

Use to have local non-persistent variable of type dbDate. More...

#include <oof4.h>

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

Public Types

enum  { kKeyLengthAutoCalculated = USHRT_MAX }
 
enum  { NUMDATETOKENS = 35 }
 
enum  dateFieldOrder { orderYMD, orderDMY, orderMDY }
 
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 dbDate &, const dbDate &) const
 
dbDatecalculateWith (dbDateCalculator *adoptedCalculator, bool useOnlyForDefaults=false)
 
dbDateCalculatorcalculator () 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
 
unsigned long daynum () const
 
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
 
void getDate (unsigned short &year, unsigned short &month, unsigned short &day) 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)
 
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 month () const
 
virtual oofString name () const
 
virtual OOF_fieldTypes nativeType () const
 
dbQueryBinary notEqual (long) const
 
 oofDate ()
 
 oofDate (const char *initialDate)
 
 oofDate (const dbDate &)
 
 oofDate (const oofDate &)
 
 oofDate (const tm &)
 
 operator unsigned long () const
 
dbQueryBinary operator!= (long) const
 
dbQueryBinary operator!= (const char *) const
 
dbQueryBinary operator!= (const dbDate &) const
 
void operator*= (long)
 
void operator*= (double)
 
dbDate operator+ (long) const
 
virtual dbDateoperator++ ()
 
void operator+= (double)
 
dbDateoperator+= (long)
 
long operator- (const dbDate &) const
 
dbDate operator- (long) const
 
virtual dbDateoperator-- ()
 
void operator-= (double)
 
dbDateoperator-= (long)
 
void operator/= (long)
 
void operator/= (double)
 
dbQueryBinary operator< (long) const
 
dbQueryBinary operator< (const char *) const
 
dbQueryBinary operator< (const dbDate &) const
 
dbQueryBinary operator<= (long) const
 
dbQueryBinary operator<= (const char *) const
 
dbQueryBinary operator<= (const dbDate &) const
 
oofDateoperator= (const char *)
 
oofDateoperator= (const oofDate &)
 
oofDateoperator= (const dbDate &)
 
oofDateoperator= (const tm &)
 
dbQueryBinary operator== (long) const
 
dbQueryBinary operator== (const char *) const
 
dbQueryBinary operator== (const dbDate &) const
 
dbQueryBinary operator> (long) const
 
dbQueryBinary operator> (const char *) const
 
dbQueryBinary operator> (const dbDate &) const
 
dbQueryBinary operator>= (long) const
 
dbQueryBinary operator>= (const char *) const
 
dbQueryBinary operator>= (const dbDate &) const
 
dbQueryTrinary outside (long, long) const
 
dbQueryTrinary outside (const char *, const char *) const
 
dbQueryTrinary outside (const dbDate &, const dbDate &) const
 
virtual void postCloneTableCleanup ()
 
void saveDefaultCalculatedValue ()
 
void saveStoredCalculatedValue ()
 
void setDate (unsigned long)
 
void setDate (unsigned short year, unsigned short month, unsigned short day)
 
void setDate (const tm &)
 
void setDateToCurrentDate ()
 
void setDaynum (unsigned long)
 
void setName (const char *name)
 
virtual void setNumber (long)
 
void setStr255 (const Str255 s)
 
virtual void setString (const char *)
 
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 ~oofDate ()
 

Static Public Member Functions

static unsigned short adjustShortYear (unsigned short inYear)
 
static bool checkDate (unsigned short year, unsigned short month, unsigned short day)
 
static bool checkDate (const char *, dateFieldOrder theOrder=dbDate::sDefaultDateOrder)
 
static unsigned short currentCentury ()
 
static dbDate currentDate ()
 
static void currentDate2ymd (unsigned short &, unsigned short &, unsigned short &)
 
static unsigned short currentDay ()
 
static unsigned short currentMonth ()
 
static unsigned short currentYear ()
 
static void daynum2ymd (unsigned long, unsigned short &, unsigned short &, unsigned short &)
 
static void ddth (unsigned short daynum, char *ddth, bool isupper=false)
 
static const oofStringdefaultFormatMask ()
 
static void defaultFormatMask (const oofString &)
 
static TOKEN get_token (const char **s, const OOF_TOKENTYPE *m, unsigned int len)
 
static bool isLeapYear (unsigned short year)
 
static unsigned short istream2month (std::istream &)
 
static bool istream2ymd (std::istream &is, unsigned short &, unsigned short &, unsigned short &, dateFieldOrder theOrder=dbDate::sDefaultDateOrder)
 
static bool istream2ymd (std::istream &is, unsigned short &, unsigned short &, unsigned short &, char fieldSep, char recordSep, dateFieldOrder theOrder=dbDate::sDefaultDateOrder)
 
static void long2ymd (unsigned long binaryDate, unsigned short &, unsigned short &, unsigned short &)
 
static void month2str (unsigned short monthnum, char *monthname, bool isshort=true, bool isupper=false)
 
static unsigned short nextCenturyThreshold ()
 
static void nextCenturyThreshold (unsigned short)
 
static void parseMask (const char *s, TOKEN *r, const OOF_TOKENTYPE *map, unsigned int len)
 
static unsigned short prevCenturyThreshold ()
 
static void prevCenturyThreshold (unsigned short)
 
static unsigned long str2Long (const char *, dateFieldOrder theOrder=dbDate::sDefaultDateOrder)
 
static unsigned short str2month (const char *)
 
static bool str2ymd (const char *, unsigned short &, unsigned short &, unsigned short &, dateFieldOrder theOrder=dbDate::sDefaultDateOrder)
 
static std::ostream & today (std::ostream &os)
 
static void ymd2dayname (unsigned short, unsigned short, unsigned short, char *dayname, bool isshort=true, bool isupper=false)
 
static unsigned long ymd2daynum (unsigned short, unsigned short, unsigned short)
 
static unsigned short ymd2dow (unsigned short, unsigned short, unsigned short)
 
static unsigned long ymd2Long (unsigned short, unsigned short, unsigned short)
 
static std::ostream & ymd2Stream (unsigned short, unsigned short, unsigned short, std::ostream &os)
 
static std::ostream & ymd2Stream (const char *mask, unsigned short year, unsigned short month, unsigned short day, std::ostream &os)
 

Public Attributes

OOF_String mFormatMask
 

Static Public Attributes

static dateFieldOrder sDefaultDateOrder =orderDMY
 

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 unsigned short sNextCenturyThreshold = 1970
 
static unsigned short sPrevCenturyThreshold = 2070
 
static OOF_TOKENTYPE tokenMap [NUMDATETOKENS]
 

Detailed Description

Use to have local non-persistent variable of type dbDate.

See also
dbDate::currentDate

Definition at line 1186 of file oof4.h.

Constructor & Destructor Documentation

oofDate::oofDate ( )

Definition at line 3882 of file oof5.cpp.

Referenced by clone().

oofDate::oofDate ( const char *  initialDate)

Definition at line 3887 of file oof5.cpp.

References dbDate::operator=().

oofDate::oofDate ( const dbDate rhs)

Definition at line 3903 of file oof5.cpp.

References dbDate::operator=().

oofDate::oofDate ( const oofDate rhs)

Definition at line 3910 of file oof5.cpp.

References dbDate::operator=().

oofDate::oofDate ( const tm &  unixTime)

Definition at line 3895 of file oof5.cpp.

References dbDate::setDate().

virtual oofDate::~oofDate ( )
inlinevirtual

Definition at line 1194 of file oof4.h.

Member Function Documentation

unsigned short dbDate::adjustShortYear ( unsigned short  inYear)
staticinherited
const char * dbField::asChars ( ) const
virtualinherited
dbQueryTrinary dbNumericField::between ( long  fromNum,
long  toNum 
) const
inherited
dbQueryTrinary dbDate::between ( const char *  fromStr,
const char *  toStr 
) const
inherited

Definition at line 914 of file oof5.cpp.

References dbNumericField::between(), and dbDate::str2Long().

dbQueryTrinary dbDate::between ( const dbDate fromDate,
const dbDate toDate 
) const
inherited

Definition at line 978 of file oof5.cpp.

References dbNumericField::between().

void dbField::CalculateWith ( dbCalculator adoptedCalculator,
bool  useOnlyForDefaults 
)
protectedinherited
dbDate & dbDate::calculateWith ( dbDateCalculator adoptedCalculator,
bool  useOnlyForDefaults = false 
)
inherited

Definition at line 284 of file oof5.cpp.

References dbField::CalculateWith().

dbDateCalculator * dbDate::calculator ( ) const
inlineinherited

Definition at line 1689 of file oof4.h.

References dbField::mCalculator.

Referenced by dbDate::CopyCalculatedValueToBuffer().

bool dbField::caseSensitive ( ) const
inlineinherited

Definition at line 747 of file oof3.h.

References kIndexCaseSensitive.

bool dbDate::checkDate ( unsigned short  year,
unsigned short  month,
unsigned short  day 
)
staticinherited
bool dbDate::checkDate ( const char *  str,
dateFieldOrder  theOrder = dbDate::sDefaultDateOrder 
)
staticinherited
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.

void dbNumericField::clear ( )
virtualinherited

Reimplemented from dbField.

Definition at line 41 of file oof4.cpp.

References dbField::setNumber().

dbField * oofDate::clone ( ) const
virtual

Reimplemented from dbDate.

Definition at line 3918 of file oof5.cpp.

References oofDate().

void dbDate::CopyCalculatedValueToBuffer ( )
protectedvirtualinherited

Reimplemented from dbField.

Definition at line 292 of file oof5.cpp.

References dbDate::calculator(), dbField::mCalculator, and dbDate::setDate().

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(), dbDateTime::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 dbDate::copyValueFrom ( const dbField srcField)
virtualinherited

Reimplemented from dbField.

Definition at line 307 of file oof5.cpp.

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

void dbDate::copyValueIfDifferent ( const dbField srcField)
virtualinherited

Reimplemented from dbField.

Definition at line 319 of file oof5.cpp.

References dateField, dbField::fieldName(), dbField::fieldType(), dbConnect::raise(), dbDate::setDate(), and dbDate::value().

unsigned short dbDate::currentCentury ( )
staticinherited
dbDate dbDate::currentDate ( )
staticinherited
void dbDate::currentDate2ymd ( unsigned short &  year,
unsigned short &  month,
unsigned short &  day 
)
staticinherited
unsigned short dbDate::currentDay ( )
staticinherited

Definition at line 1717 of file oof5.cpp.

References dbDate::currentDate2ymd().

unsigned short dbDate::currentMonth ( )
staticinherited

Definition at line 1726 of file oof5.cpp.

References dbDate::currentDate2ymd().

unsigned short dbDate::currentYear ( )
staticinherited

Definition at line 1734 of file oof5.cpp.

References dbDate::currentDate2ymd().

unsigned short dbDate::day ( ) const
inherited
unsigned long dbDate::daynum ( ) const
inherited
void dbDate::daynum2ymd ( unsigned long  dn,
unsigned short &  y,
unsigned short &  m,
unsigned short &  d 
)
staticinherited

Definition at line 1610 of file oof5.cpp.

Referenced by dbDate::setDaynum().

void dbDate::ddth ( unsigned short  daynum,
char *  ddth,
bool  isupper = false 
)
staticinherited

Definition at line 840 of file oof5.cpp.

References dbDate::daynum().

const oofString & dbDate::defaultFormatMask ( )
inlinestaticinherited

Definition at line 1659 of file oof4.h.

References dbDate::sDefaultFormatMask.

void dbDate::defaultFormatMask ( const oofString inMask)
inlinestaticinherited

Definition at line 1666 of file oof4.h.

References dbDate::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 dbDate::extract ( std::ostream &  os) const
virtualinherited
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(), dbDateTime::copyValueFrom(), dbShort::copyValueIfDifferent(), dbChar::copyValueIfDifferent(), dbUshort::copyValueIfDifferent(), dbBool::copyValueIfDifferent(), dbLong::copyValueIfDifferent(), dbUlong::copyValueIfDifferent(), dbText::copyValueIfDifferent(), dbReal::copyValueIfDifferent(), dbDate::copyValueIfDifferent(), dbTime::copyValueIfDifferent(), dbDateTime::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 dbDate::fieldStorageLen ( ) const
virtualinherited

Implements dbField.

Definition at line 300 of file oof5.cpp.

dbTable * dbField::fieldTable ( ) const
inherited
OOF_fieldTypes dbDate::fieldType ( ) const
virtualinherited

Implements dbField.

Definition at line 334 of file oof5.cpp.

References dateField.

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 dbDate::generateTestData ( bool  generateRandom,
unsigned long  seedOrCount 
)
virtualinherited

Reimplemented from dbField.

Definition at line 893 of file oof5.cpp.

References dbDate::setDate(), and dbDate::ymd2Long().

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().

void dbDate::getDate ( unsigned short &  year,
unsigned short &  month,
unsigned short &  day 
) const
inherited

Definition at line 1202 of file oof5.cpp.

References dbDate::long2ymd().

Referenced by dbDate::daynum().

void dbDate::getStr255 ( Str255  s) const
inherited

Definition at line 1086 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.

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 dbDate::insert ( std::istream &  ,
char  fieldSep,
char  recSep 
)
virtualinherited

Reimplemented from dbField.

Definition at line 363 of file oof5.cpp.

References dbDate::istream2ymd(), dbDate::sDefaultDateOrder, and dbDate::setDate().

bool dbField::isDirty ( ) const
inherited
bool dbDate::isEmpty ( ) const
inlinevirtualinherited

Reimplemented from dbField.

Definition at line 1702 of file oof4.h.

bool dbDate::isLeapYear ( unsigned short  year)
staticinherited

Definition at line 1392 of file oof5.cpp.

Referenced by dbDate::checkDate(), dbDateTime::daysInMonth(), and dbDateTime::secsInYear().

unsigned short dbDate::istream2month ( std::istream &  )
staticinherited

Definition at line 1525 of file oof5.cpp.

References dbDate::str2month().

static bool dbDate::istream2ymd ( std::istream &  is,
unsigned short &  ,
unsigned short &  ,
unsigned short &  ,
dateFieldOrder  theOrder = dbDate::sDefaultDateOrder 
)
staticinherited
static bool dbDate::istream2ymd ( std::istream &  is,
unsigned short &  ,
unsigned short &  ,
unsigned short &  ,
char  fieldSep,
char  recordSep,
dateFieldOrder  theOrder = dbDate::sDefaultDateOrder 
)
staticinherited
bool dbDate::isValid ( ) const
inlineinherited

Definition at line 1709 of file oof4.h.

Referenced by dbDateLink2Editor::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().

void dbDate::long2ymd ( unsigned long  binaryDate,
unsigned short &  year,
unsigned short &  month,
unsigned short &  day 
)
staticinherited

Definition at line 1224 of file oof5.cpp.

Referenced by dbDate::extract(), and dbDate::getDate().

dbQueryLiteral * dbNumericField::makeQueryLiteral ( long  n) const
virtualinherited
unsigned short dbDate::month ( ) const
inherited
void dbDate::month2str ( unsigned short  monthnum,
char *  monthname,
bool  isshort = true,
bool  isupper = false 
)
staticinherited

Definition at line 664 of file oof5.cpp.

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 dbDate::nativeType ( ) const
virtualinherited

Reimplemented from dbField.

Definition at line 341 of file oof5.cpp.

References uLongField.

unsigned short dbDate::nextCenturyThreshold ( )
inlinestaticinherited

Definition at line 1862 of file oof4.h.

References dbDate::sNextCenturyThreshold.

void dbDate::nextCenturyThreshold ( unsigned short  inYear)
staticinherited
dbQueryBinary dbNumericField::notEqual ( long  n) const
inherited

Definition at line 327 of file oof4.cpp.

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

dbDate::operator unsigned long ( ) const
inherited

Definition at line 1113 of file oof5.cpp.

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

Definition at line 943 of file oof5.cpp.

References dbNumericField::operator!=(), and dbDate::str2Long().

dbQueryBinary dbDate::operator!= ( const dbDate rhs) const
inherited

Definition at line 999 of file oof5.cpp.

References dbNumericField::operator!=().

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.

dbDate dbDate::operator+ ( long  rhs) const
inherited

Definition at line 1256 of file oof5.cpp.

dbDate & dbDate::operator++ ( )
virtualinherited

Definition at line 1644 of file oof5.cpp.

References dbDate::daynum(), and dbDate::setDaynum().

void dbNumericField::operator+= ( double  )
inherited

Definition at line 416 of file oof4.cpp.

dbDate & dbDate::operator+= ( long  numDays)
inherited

Definition at line 1662 of file oof5.cpp.

References dbDate::daynum(), and dbDate::setDaynum().

long dbDate::operator- ( const dbDate rhs) const
inherited

Definition at line 1235 of file oof5.cpp.

References dbDate::daynum().

dbDate dbDate::operator- ( long  rhs) const
inherited

Definition at line 1244 of file oof5.cpp.

dbDate & dbDate::operator-- ( )
virtualinherited

Definition at line 1653 of file oof5.cpp.

References dbDate::daynum(), and dbDate::setDaynum().

void dbNumericField::operator-= ( double  )
inherited

Definition at line 407 of file oof4.cpp.

dbDate & dbDate::operator-= ( long  numDays)
inherited

Definition at line 1671 of file oof5.cpp.

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 dbDate::operator< ( const char *  str) const
inherited

Definition at line 950 of file oof5.cpp.

References dbNumericField::operator<(), and dbDate::str2Long().

dbQueryBinary dbDate::operator< ( const dbDate rhs) const
inherited

Definition at line 1006 of file oof5.cpp.

References dbNumericField::operator<().

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

Definition at line 957 of file oof5.cpp.

References dbNumericField::operator<=(), and dbDate::str2Long().

dbQueryBinary dbDate::operator<= ( const dbDate rhs) const
inherited

Definition at line 1013 of file oof5.cpp.

References dbNumericField::operator<=().

oofDate & oofDate::operator= ( const char *  rhs)
inline

Definition at line 2378 of file oof4.h.

References dbDate::operator=().

oofDate & oofDate::operator= ( const oofDate rhs)
inline

Definition at line 2350 of file oof4.h.

References dbDate::operator=().

oofDate & oofDate::operator= ( const dbDate rhs)
inline

Definition at line 2360 of file oof4.h.

References dbDate::operator=().

oofDate & oofDate::operator= ( const tm &  rhs)
inline

Definition at line 2370 of file oof4.h.

References dbDate::operator=().

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

Definition at line 936 of file oof5.cpp.

References dbNumericField::operator==(), and dbDate::str2Long().

dbQueryBinary dbDate::operator== ( const dbDate rhs) const
inherited

Definition at line 992 of file oof5.cpp.

References dbNumericField::operator==().

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

Definition at line 964 of file oof5.cpp.

References dbNumericField::operator>(), and dbDate::str2Long().

dbQueryBinary dbDate::operator> ( const dbDate rhs) const
inherited

Definition at line 1020 of file oof5.cpp.

References dbNumericField::operator>().

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

Definition at line 971 of file oof5.cpp.

References dbNumericField::operator>=(), and dbDate::str2Long().

dbQueryBinary dbDate::operator>= ( const dbDate rhs) const
inherited

Definition at line 1027 of file oof5.cpp.

References dbNumericField::operator>=().

dbQueryTrinary dbNumericField::outside ( long  fromNum,
long  toNum 
) const
inherited
dbQueryTrinary dbDate::outside ( const char *  fromStr,
const char *  toStr 
) const
inherited

Definition at line 921 of file oof5.cpp.

References dbNumericField::outside(), and dbDate::str2Long().

dbQueryTrinary dbDate::outside ( const dbDate fromDate,
const dbDate toDate 
) const
inherited

Definition at line 985 of file oof5.cpp.

References dbNumericField::outside().

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().

unsigned short dbDate::prevCenturyThreshold ( )
inlinestaticinherited

Definition at line 1869 of file oof4.h.

References dbDate::sPrevCenturyThreshold.

void dbDate::prevCenturyThreshold ( unsigned short  inYear)
staticinherited
void dbField::saveDefaultCalculatedValue ( )
inherited
void dbField::saveStoredCalculatedValue ( )
inherited

Definition at line 282 of file oof3.cpp.

References dbField::CopyCalculatedValueToBuffer().

Referenced by OOF_simpleRecordBackend::saveRecord().

void dbDate::setDate ( unsigned long  n)
inherited
void dbDate::setDate ( unsigned short  year,
unsigned short  month,
unsigned short  day 
)
inherited

Definition at line 1145 of file oof5.cpp.

References dbDate::setDate(), and dbDate::ymd2Long().

void dbDate::setDate ( const tm &  unixTime)
inherited

Definition at line 1073 of file oof5.cpp.

References dbDate::setDate().

void dbDate::setDateToCurrentDate ( )
inherited
void dbDate::setDaynum ( unsigned long  dn)
inherited
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 dbDate::setNumber ( long  n)
virtualinherited

Reimplemented from dbField.

Definition at line 1131 of file oof5.cpp.

References dbDate::setDaynum().

void dbDate::setStr255 ( const Str255  s)
inherited

Definition at line 1094 of file oof5.cpp.

References dbDate::setDate().

void dbDate::setString ( const char *  str)
virtualinherited

Reimplemented from dbField.

Definition at line 1138 of file oof5.cpp.

References dbDate::operator=().

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 dbDate::str2Long ( const char *  str,
dateFieldOrder  theOrder = dbDate::sDefaultDateOrder 
)
staticinherited
unsigned short dbDate::str2month ( const char *  s)
staticinherited

Definition at line 1551 of file oof5.cpp.

Referenced by dbDate::istream2month().

bool dbDate::str2ymd ( const char *  str,
unsigned short &  year,
unsigned short &  month,
unsigned short &  day,
dateFieldOrder  theOrder = dbDate::sDefaultDateOrder 
)
staticinherited

Definition at line 1310 of file oof5.cpp.

References dbDate::istream2ymd().

Referenced by dbDate::operator=().

const char * dbField::tableName ( ) const
inherited
ostream & dbDate::today ( std::ostream &  os)
staticinherited
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 dbDate::value ( ) const
inlineinherited

Definition at line 1696 of file oof4.h.

Referenced by dbDate::copyValueIfDifferent(), and dbDate::valueAsQueryLiteral().

dbQueryClause * dbDate::valueAsQueryLiteral ( ) const
virtualinherited

Reimplemented from dbField.

Definition at line 928 of file oof5.cpp.

References dbNumericField::makeQueryLiteral(), and dbDate::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 dbDate::year ( ) const
inherited
void dbDate::ymd2dayname ( unsigned short  year,
unsigned short  month,
unsigned short  day,
char *  dayname,
bool  isshort = true,
bool  isupper = false 
)
staticinherited

Definition at line 557 of file oof5.cpp.

References dbDate::ymd2dow().

unsigned long dbDate::ymd2daynum ( unsigned short  y,
unsigned short  m,
unsigned short  d 
)
staticinherited

Definition at line 1588 of file oof5.cpp.

Referenced by dbDate::daynum().

unsigned short dbDate::ymd2dow ( unsigned short  y,
unsigned short  m,
unsigned short  d 
)
staticinherited

Definition at line 543 of file oof5.cpp.

Referenced by dbDate::ymd2dayname().

unsigned long dbDate::ymd2Long ( unsigned short  year,
unsigned short  month,
unsigned short  day 
)
staticinherited
static std::ostream& dbDate::ymd2Stream ( unsigned  short,
unsigned  short,
unsigned  short,
std::ostream &  os 
)
staticinherited

Referenced by dbDate::extract(), and dbDate::today().

static std::ostream& dbDate::ymd2Stream ( const char *  mask,
unsigned short  year,
unsigned short  month,
unsigned short  day,
std::ostream &  os 
)
staticinherited

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
dbDate::dateFieldOrder dbDate::sDefaultDateOrder =orderDMY
staticinherited
oofString dbDate::sDefaultFormatMask
staticprotectedinherited

Definition at line 741 of file oof4.h.

Referenced by dbDate::dbDate(), and dbDate::defaultFormatMask().

unsigned short dbDate::sNextCenturyThreshold = 1970
staticprotectedinherited
unsigned short dbDate::sPrevCenturyThreshold = 2070
staticprotectedinherited
OOF_TOKENTYPE dbDate::tokenMap
staticprotectedinherited

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