CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdDbAuditInfo Class Reference

#include <DbAudit.h>

Inheritance diagram for OdDbAuditInfo:
OdAuditInfo

Public Member Functions

virtual void printError (const OdString &name, const OdString &value, const OdString &validation=OdString::kEmpty, const OdString &defaultValue=OdString::kEmpty)
 
virtual void printError (const OdRxObject *pObject, const OdString &value, const OdString &validation=OdString::kEmpty, const OdString &defaultValue=OdString::kEmpty)
 
- Public Member Functions inherited from OdAuditInfo
 OdAuditInfo ()
 
virtual ~OdAuditInfo ()
 
bool fixErrors () const
 
void setFixErrors (bool fixErrors)
 
int numErrors () const
 
int numFixes () const
 
void errorsFound (int count)
 
void errorsFixed (int count)
 
virtual void printInfo (const OdString &logInfo)
 
void requestRegen ()
 
void resetNumEntities ()
 
void incNumEntities ()
 
int numEntities ()
 
virtual const MsgInfogetLastInfo ()
 
virtual void setLastInfo (MsgInfo &lastInfo)
 
void setPrintDest (PrintDest printDest)
 
PrintDest getPrintDest ()
 

Additional Inherited Members

- Public Types inherited from OdAuditInfo
enum  PrintDest { kSilent = 0, kCmdLine = 1, kFile = 2, kBoth = 3 }
 

Detailed Description

This class tracks audit information during a database audit.

See also
TD_Db

<group OdDb_Classes>

Definition at line 59 of file DbAudit.h.

Member Function Documentation

◆ printError() [1/2]

virtual void OdDbAuditInfo::printError ( const OdRxObject pObject,
const OdString value,
const OdString validation = OdString::kEmpty,
const OdString defaultValue = OdString::kEmpty 
)
virtual

Notification function called to print error information.

Parameters
pObject[in] Pointer to the object which generated the error.
value[in] Value of the bad data.
validation[in] Reason the data were bad.
defaultValue[in] Default value to which the were set.
Remarks
odDbGetObjectName(pObject) is used to generate the name.

Reimplemented from OdAuditInfo.

◆ printError() [2/2]

virtual void OdDbAuditInfo::printError ( const OdString name,
const OdString value,
const OdString validation = OdString::kEmpty,
const OdString defaultValue = OdString::kEmpty 
)
virtual

Notification function called to print error information.

Remarks
Prints log information about an error detected or fixed during an audit.
Parameters
name[in] Type of erroneous data found.
value[in] Value of the bad data.
validation[in] Reason the data were bad.
defaultValue[in] Default value to which the were set.
Remarks
As implemented, this functions does nothing.

Reimplemented from OdAuditInfo.


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