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

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

#include <oof4.h>

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

Public Types

enum  { kKeyLengthAutoCalculated = USHRT_MAX }
 
enum  FieldIsStandaloneT { eFieldIsStandalone }
 

Public Member Functions

virtual const char * asChars () const
 
dbQueryTrinary between (long, long) const
 
dbTimecalculateWith (dbTimeCalculator *adoptedCalculator, bool useOnlyForDefaults=false)
 
dbTimeCalculatorcalculator () const
 
bool caseSensitive () const
 
virtual void clear ()
 
virtual dbFieldclone () const
 
virtual oofString copyString () const
 
virtual void copyValueFrom (const dbField *)
 
virtual void copyValueIfDifferent (const dbField *)
 
short day () const
 
 dbTime (const char *fieldName=0)
 
 dbTime (const OOF_IndexOptions indexOptions)
 
 dbTime (const char *fieldName, const OOF_IndexOptions indexOptions)
 
 dbTime (const dbTime &rhs)
 
 dbTime (dbField::FieldIsStandaloneT k)
 
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
 
dbTablefieldTable () 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
 
long getTime () const
 
void getTime (short &days, unsigned short &hours, unsigned short &minutes, unsigned short &seconds, unsigned short &milliseconds) const
 
void getTime (short &days, unsigned short &hours, unsigned short &minutes, unsigned short &seconds) const
 
void getTime (unsigned short &hours, unsigned short &minutes, unsigned short &seconds) const
 
void getTime (tm &unixTime) 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
 
virtual bool isEmpty () const
 
dbQueryBinary lessThan (long) const
 
dbQueryBinary lessThanOrEqual (long) const
 
virtual dbQueryLiteralmakeQueryLiteral (long) const
 
unsigned short millisecond () const
 
unsigned short minute () const
 
virtual oofString name () const
 
dbQueryBinary notEqual (long) const
 
 operator long () const
 
dbQueryBinary operator!= (long) const
 
void operator*= (long)
 
void operator*= (double)
 
void operator+= (double)
 
long operator- (const dbTime &) const
 
void operator-= (double)
 
void operator/= (long)
 
void operator/= (double)
 
dbQueryBinary operator< (long) const
 
dbQueryBinary operator<= (long) const
 
dbTimeoperator= (const char *str)
 
dbTimeoperator= (const dbTime &rhs)
 
dbTimeoperator= (const tm &)
 
dbQueryBinary operator== (long) const
 
dbQueryBinary operator> (long) const
 
dbQueryBinary operator>= (long) const
 
dbQueryTrinary outside (long, long) const
 
virtual void postCloneTableCleanup ()
 
void saveDefaultCalculatedValue ()
 
void saveStoredCalculatedValue ()
 
unsigned short second () const
 
void setName (const char *name)
 
virtual void setNumber (long)
 
virtual void setString (const char *)
 
void setTime (long)
 Stores the value in the mBackend pointer for use in the lightweight subclass oofTime when the field storage isn't connected to a database. More...
 
void setTime (short day, unsigned short hour, unsigned short minute, unsigned short second, unsigned short millisecond)
 
void setTime (short day, unsigned short hour, unsigned short minute, unsigned short second)
 
void setTime (unsigned short hour, unsigned short minute, unsigned short second)
 
void setTime (const tm &unixTime)
 
void setTimeToCurrentTime ()
 
void storeCalculatedValues ()
 
bool storesCalculatedValues () const
 
const char * tableName () const
 
void useCalculatorOnlyForDefaults ()
 
bool usingCalculator () const
 
virtual bool validateContents ()
 
long value () const
 
virtual dbQueryClausevalueAsQueryLiteral () const
 
bool valueIsDuplicate () const
 
virtual oofWordParserwords () const
 
virtual ~dbTime ()
 
arithmetic operators
virtual dbTimeoperator++ ()
 
virtual dbTimeoperator-- ()
 
dbTimeoperator+= (long)
 
dbTimeoperator-= (long)
 
dbTime operator- (long) const
 
dbTime operator+ (long) const
 
search factories
dbQueryTrinary between (const char *, const char *) const
 
dbQueryTrinary outside (const char *, const char *) const
 
dbQueryBinary operator== (const char *) const
 
dbQueryBinary operator!= (const char *) const
 
dbQueryBinary operator< (const char *) const
 
dbQueryBinary operator<= (const char *) const
 
dbQueryBinary operator> (const char *) const
 
dbQueryBinary operator>= (const char *) const
 
dbQueryTrinary between (const dbTime &, const dbTime &) const
 
dbQueryTrinary outside (const dbTime &, const dbTime &) const
 
dbQueryBinary operator== (const dbTime &) const
 
dbQueryBinary operator!= (const dbTime &) const
 
dbQueryBinary operator< (const dbTime &) const
 
dbQueryBinary operator<= (const dbTime &) const
 
dbQueryBinary operator> (const dbTime &) const
 
dbQueryBinary operator>= (const dbTime &) const
 
reflective operators
virtual unsigned long fieldStorageLen () const
 
virtual OOF_fieldTypes fieldType () const
 
virtual OOF_fieldTypes nativeType () const
 

Static Public Member Functions

static bool checkTime (short day, unsigned short hour, unsigned short minute, unsigned short second, unsigned short millisecond)
 
static const oofStringdefaultFormatMask ()
 
static void defaultFormatMask (const oofString &)
 
static long dhmsm2long (short day, unsigned short hour, unsigned short minute, unsigned short second, unsigned short millisecond)
 
static TOKEN get_token (const char **s, const OOF_TOKENTYPE *m, unsigned int len)
 
static std::ostream & hms2stream (unsigned short hour, unsigned short minute, unsigned short second, std::ostream &os)
 
static std::ostream & hms2stream (unsigned short hour, unsigned short minute, std::ostream &os)
 
static bool istream2dhmsm (std::istream &is, short &day, unsigned short &hour, unsigned short &minute, unsigned short &second, unsigned short &millisecond)
 
static bool istream2dhmsm (std::istream &is, short &day, unsigned short &hour, unsigned short &minute, unsigned short &second, unsigned short &millisecond, char fieldSep, char recSep)
 
static void long2dhmsm (long binaryTime, short &day, unsigned short &hour, unsigned short &minute, unsigned short &second, unsigned short &millisecond)
 
static void parseMask (const char *s, TOKEN *r, const OOF_TOKENTYPE *map, unsigned int len)
 
static bool str2dhmsm (const char *str, short &day, unsigned short &hour, unsigned short &minute, unsigned short &second, unsigned short &millisecond)
 
static long str2long (const char *str)
 
current time
static std::ostream & now (std::ostream &os)
 
static dbTime currentTime ()
 
static void currentTime2hms (unsigned short &, unsigned short &, unsigned short &)
 
static unsigned short currentSecond ()
 
static unsigned short currentMinute ()
 
static unsigned short currentHour ()
 

Public Attributes

OOF_String mFormatMask
 

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
 

Detailed Description

Persistent field used to store a time without date.

Definition at line 751 of file oof4.h.

Constructor & Destructor Documentation

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

Definition at line 1773 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

Referenced by clone(), and currentTime().

dbTime::dbTime ( const OOF_IndexOptions  indexOptions)

Definition at line 1766 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

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

Definition at line 1780 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

dbTime::dbTime ( const dbTime rhs)

Definition at line 1795 of file oof5.cpp.

dbTime::dbTime ( dbField::FieldIsStandaloneT  k)

Definition at line 1787 of file oof5.cpp.

References dbNumericField::formatMask(), and sDefaultFormatMask.

dbTime::~dbTime ( )
virtual

Definition at line 1800 of file oof5.cpp.

Member Function Documentation

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

Definition at line 1874 of file oof5.cpp.

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

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

Definition at line 1939 of file oof5.cpp.

References dbNumericField::between().

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

Definition at line 2020 of file oof5.cpp.

References dbField::CalculateWith().

dbTimeCalculator * dbTime::calculator ( ) const
inline

Definition at line 1927 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 dbTime::checkTime ( short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second,
unsigned short  millisecond 
)
static

Definition at line 2036 of file oof5.cpp.

Referenced by dhmsm2long().

void dbNumericField::clear ( )
virtualinherited

Reimplemented from dbField.

Definition at line 41 of file oof4.cpp.

References dbField::setNumber().

dbField * dbTime::clone ( ) const
virtual

Implements dbField.

Reimplemented in oofTime.

Definition at line 1805 of file oof5.cpp.

References dbTime().

void dbTime::CopyCalculatedValueToBuffer ( )
protectedvirtual

Reimplemented from dbField.

Definition at line 2028 of file oof5.cpp.

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

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 dbTime::copyValueFrom ( const dbField srcField)
virtual

Reimplemented from dbField.

Definition at line 2276 of file oof5.cpp.

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

void dbTime::copyValueIfDifferent ( const dbField srcField)
virtual

Reimplemented from dbField.

Definition at line 2291 of file oof5.cpp.

References dbField::fieldName(), dbField::fieldType(), dbConnect::raise(), setTime(), timeField, and value().

unsigned short dbTime::currentHour ( )
static

Definition at line 2522 of file oof5.cpp.

References currentTime2hms().

unsigned short dbTime::currentMinute ( )
static

Definition at line 2530 of file oof5.cpp.

References currentTime2hms().

unsigned short dbTime::currentSecond ( )
static

Definition at line 2538 of file oof5.cpp.

References currentTime2hms().

dbTime dbTime::currentTime ( )
static

Definition at line 2514 of file oof5.cpp.

References dbTime(), dbField::eFieldIsStandalone, and setTimeToCurrentTime().

void dbTime::currentTime2hms ( unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second 
)
static

Definition at line 2496 of file oof5.cpp.

References dbConnect::raise().

Referenced by currentHour(), currentMinute(), currentSecond(), now(), and setTimeToCurrentTime().

short dbTime::day ( ) const

Definition at line 2414 of file oof5.cpp.

References getTime(), hour(), minute(), and second().

Referenced by extract(), insert(), millisecond(), operator=(), and str2long().

const oofString & dbTime::defaultFormatMask ( )
inlinestatic

Definition at line 1913 of file oof4.h.

References sDefaultFormatMask.

void dbTime::defaultFormatMask ( const oofString inMask)
inlinestatic

Definition at line 1920 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().

long dbTime::dhmsm2long ( short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second,
unsigned short  millisecond 
)
static

Definition at line 2077 of file oof5.cpp.

References checkTime().

Referenced by setTime(), and str2long().

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 dbTime::extract ( std::ostream &  os) const
virtual

Reimplemented from dbField.

Definition at line 2466 of file oof5.cpp.

References day(), hms2stream(), hour(), long2dhmsm(), millisecond(), minute(), and second().

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(), copyValueFrom(), dbDateTime::copyValueFrom(), dbShort::copyValueIfDifferent(), dbChar::copyValueIfDifferent(), dbUshort::copyValueIfDifferent(), dbBool::copyValueIfDifferent(), dbLong::copyValueIfDifferent(), dbUlong::copyValueIfDifferent(), dbText::copyValueIfDifferent(), dbReal::copyValueIfDifferent(), dbDate::copyValueIfDifferent(), 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 dbTime::fieldStorageLen ( ) const
virtual

Implements dbField.

Definition at line 1998 of file oof5.cpp.

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

Implements dbField.

Definition at line 2004 of file oof5.cpp.

References timeField.

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

Reimplemented from dbField.

Definition at line 2209 of file oof5.cpp.

References setTime().

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

long dbTime::getTime ( ) const
inline

Definition at line 1933 of file oof4.h.

Referenced by day(), getTime(), hour(), millisecond(), minute(), and second().

void dbTime::getTime ( short &  days,
unsigned short &  hours,
unsigned short &  minutes,
unsigned short &  seconds,
unsigned short &  milliseconds 
) const

Definition at line 2378 of file oof5.cpp.

References getTime(), and long2dhmsm().

void dbTime::getTime ( short &  days,
unsigned short &  hours,
unsigned short &  minutes,
unsigned short &  seconds 
) const

Definition at line 2384 of file oof5.cpp.

References getTime(), and long2dhmsm().

void dbTime::getTime ( unsigned short &  hours,
unsigned short &  minutes,
unsigned short &  seconds 
) const

Definition at line 2392 of file oof5.cpp.

References getTime(), and long2dhmsm().

void dbTime::getTime ( tm &  unixTime) const

Definition at line 2401 of file oof5.cpp.

References getTime(), and long2dhmsm().

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.

static std::ostream& dbTime::hms2stream ( unsigned short  hour,
unsigned short  minute,
unsigned short  second,
std::ostream &  os 
)
static

Referenced by extract(), and now().

static std::ostream& dbTime::hms2stream ( unsigned short  hour,
unsigned short  minute,
std::ostream &  os 
)
static
unsigned short dbTime::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 dbTime::insert ( std::istream &  ,
char  fieldSep,
char  recSep 
)
virtual

Reimplemented from dbField.

Definition at line 2336 of file oof5.cpp.

References day(), hour(), istream2dhmsm(), millisecond(), minute(), second(), and setTime().

bool dbField::isDirty ( ) const
inherited
bool dbField::isEmpty ( ) const
virtualinherited

Reimplemented in dbDateTime, dbDate, dbBLOB, and dbChar.

Definition at line 170 of file oof3.cpp.

Referenced by OOF_ctreeKeywordIndex::updateWords().

static bool dbTime::istream2dhmsm ( std::istream &  is,
short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second,
unsigned short &  millisecond 
)
static

Referenced by insert(), str2dhmsm(), and str2long().

static bool dbTime::istream2dhmsm ( std::istream &  is,
short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second,
unsigned short &  millisecond,
char  fieldSep,
char  recSep 
)
static
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 dbTime::long2dhmsm ( long  binaryTime,
short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second,
unsigned short &  millisecond 
)
static

Definition at line 2058 of file oof5.cpp.

Referenced by extract(), and getTime().

dbQueryLiteral * dbNumericField::makeQueryLiteral ( long  n) const
virtualinherited
unsigned short dbTime::millisecond ( ) const

Definition at line 2455 of file oof5.cpp.

References day(), getTime(), hour(), minute(), and second().

Referenced by extract(), insert(), operator=(), and str2long().

unsigned short dbTime::minute ( ) const

Definition at line 2435 of file oof5.cpp.

References getTime(), hour(), and second().

Referenced by day(), extract(), hour(), insert(), millisecond(), now(), operator=(), second(), setTimeToCurrentTime(), and str2long().

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 dbTime::nativeType ( ) const
virtual

Reimplemented from dbField.

Definition at line 2010 of file oof5.cpp.

References longField.

dbQueryBinary dbNumericField::notEqual ( long  n) const
inherited

Definition at line 327 of file oof4.cpp.

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

ostream & dbTime::now ( std::ostream &  os)
static

Definition at line 2488 of file oof5.cpp.

References currentTime2hms(), hms2stream(), hour(), minute(), and second().

dbTime::operator long ( ) const

Definition at line 2361 of file oof5.cpp.

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

Definition at line 1903 of file oof5.cpp.

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

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

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

dbTime dbTime::operator+ ( long  rhs) const

Definition at line 1862 of file oof5.cpp.

dbTime & dbTime::operator++ ( )
virtual

Definition at line 1819 of file oof5.cpp.

References setTime(), and value().

void dbNumericField::operator+= ( double  )
inherited

Definition at line 416 of file oof4.cpp.

dbTime & dbTime::operator+= ( long  numMilliseconds)

Definition at line 1833 of file oof5.cpp.

References setTime(), and value().

long dbTime::operator- ( const dbTime rhs) const

Definition at line 1847 of file oof5.cpp.

dbTime dbTime::operator- ( long  rhs) const

Definition at line 1854 of file oof5.cpp.

dbTime & dbTime::operator-- ( )
virtual

Definition at line 1826 of file oof5.cpp.

References setTime(), and value().

void dbNumericField::operator-= ( double  )
inherited

Definition at line 407 of file oof4.cpp.

dbTime & dbTime::operator-= ( long  numMilliseconds)

Definition at line 1840 of file oof5.cpp.

References setTime(), 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 dbTime::operator< ( const char *  str) const

Definition at line 1910 of file oof5.cpp.

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

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

Definition at line 1967 of file oof5.cpp.

References dbNumericField::operator<().

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

Definition at line 1917 of file oof5.cpp.

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

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

Definition at line 1974 of file oof5.cpp.

References dbNumericField::operator<=().

dbTime & dbTime::operator= ( const char *  str)

Definition at line 2310 of file oof5.cpp.

References day(), hour(), millisecond(), minute(), second(), setTime(), and str2dhmsm().

Referenced by oofTime::oofTime(), and oofTime::operator=().

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

Definition at line 2325 of file oof5.cpp.

References setTime().

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

Definition at line 1905 of file oof4.h.

References setTime().

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

Definition at line 1896 of file oof5.cpp.

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

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

Definition at line 1953 of file oof5.cpp.

References dbNumericField::operator==().

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

Definition at line 1924 of file oof5.cpp.

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

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

Definition at line 1981 of file oof5.cpp.

References dbNumericField::operator>().

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

Definition at line 1931 of file oof5.cpp.

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

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

Definition at line 1988 of file oof5.cpp.

References dbNumericField::operator>=().

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

Definition at line 1881 of file oof5.cpp.

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

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

Definition at line 1946 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().

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 dbTime::second ( ) const

Definition at line 2445 of file oof5.cpp.

References getTime(), hour(), and minute().

Referenced by day(), extract(), hour(), insert(), millisecond(), minute(), now(), operator=(), setTimeToCurrentTime(), and str2long().

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

virtual void dbField::setNumber ( long  )
inlinevirtualinherited

Reimplemented in dbDateTime, dbDate, dbReal, dbText, dbUlong, dbLong, dbBool, dbUshort, dbChar, and dbShort.

Definition at line 133 of file oof3.h.

Referenced by dbNumericField::clear().

virtual void dbField::setString ( const char *  )
inlinevirtualinherited
void dbTime::setTime ( long  n)

Stores the value in the mBackend pointer for use in the lightweight subclass oofTime when the field storage isn't connected to a database.

Definition at line 2226 of file oof5.cpp.

References dbField::fieldIsStandalone(), dbField::mBackend, and OOF_tableBackend::writeLong().

Referenced by CopyCalculatedValueToBuffer(), copyValueFrom(), copyValueIfDifferent(), generateTestData(), insert(), operator++(), operator+=(), operator--(), operator-=(), operator=(), setTime(), and setTimeToCurrentTime().

void dbTime::setTime ( short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second,
unsigned short  millisecond 
)

Definition at line 2239 of file oof5.cpp.

References dhmsm2long(), and setTime().

void dbTime::setTime ( short  day,
unsigned short  hour,
unsigned short  minute,
unsigned short  second 
)

Definition at line 2245 of file oof5.cpp.

References dhmsm2long(), and setTime().

void dbTime::setTime ( unsigned short  hour,
unsigned short  minute,
unsigned short  second 
)

Definition at line 2251 of file oof5.cpp.

References dhmsm2long(), and setTime().

void dbTime::setTime ( const tm &  unixTime)

Definition at line 2257 of file oof5.cpp.

References setTime().

void dbTime::setTimeToCurrentTime ( )

Definition at line 2267 of file oof5.cpp.

References currentTime2hms(), hour(), minute(), second(), and setTime().

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

bool dbTime::str2dhmsm ( const char *  str,
short &  day,
unsigned short &  hour,
unsigned short &  minute,
unsigned short &  second,
unsigned short &  millisecond 
)
static

Definition at line 2196 of file oof5.cpp.

References istream2dhmsm().

Referenced by operator=().

long dbTime::str2long ( const char *  str)
static
const char * dbField::tableName ( ) const
inherited
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.

long dbTime::value ( ) const
inline
dbQueryClause * dbTime::valueAsQueryLiteral ( ) const
virtual

Reimplemented from dbField.

Definition at line 1888 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().

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
oofString dbTime::sDefaultFormatMask
staticprotected

Definition at line 912 of file oof4.h.

Referenced by dbTime(), and defaultFormatMask().


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