CFx SDK Documentation
2020SP3
|
#include <OdAuditInfo.h>
Classes | |
struct | MsgInfo |
Public Types | |
enum | PrintDest { kSilent = 0, kCmdLine = 1, kFile = 2, kBoth = 3 } |
Public Member Functions | |
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 | 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) |
virtual void | printInfo (const OdString &logInfo) |
void | requestRegen () |
void | resetNumEntities () |
void | incNumEntities () |
int | numEntities () |
virtual const MsgInfo & | getLastInfo () |
virtual void | setLastInfo (MsgInfo &lastInfo) |
void | setPrintDest (PrintDest printDest) |
PrintDest | getPrintDest () |
This class tracks audit information during a database audit.
<group OdDb_Classes>
Definition at line 47 of file OdAuditInfo.h.
Enumerator | |
---|---|
kSilent | |
kCmdLine | |
kFile | |
kBoth |
Definition at line 51 of file OdAuditInfo.h.
OdAuditInfo::OdAuditInfo | ( | ) |
|
virtual |
void OdAuditInfo::errorsFixed | ( | int | count | ) |
Increments the count of errors reported as fixed to this AuditInfo object.
increment | [in] Increment. |
void OdAuditInfo::errorsFound | ( | int | count | ) |
Increments the count of errors reported to this AuditInfo object.
increment | [in] Increment. |
bool OdAuditInfo::fixErrors | ( | ) | const |
Returns true if and only if errors are to be fixed during the audit that uses this AuditInfo object.
|
virtual |
Returns the last error information that is intended for printing.
PrintDest OdAuditInfo::getPrintDest | ( | ) |
Returns the destination for log printing.
Value Description kSilent 0 None. kCmdLine 1 Command line. kFile 2 File. kBoth 3 Both command line and file.
void OdAuditInfo::incNumEntities | ( | ) |
Increments by one the number of errors reported as processed to this AuditInfo object.
int OdAuditInfo::numEntities | ( | ) |
Returns the number of entities reported as processed to this AuditInfo object.
int OdAuditInfo::numErrors | ( | ) | const |
Returns the number of errors reported to this AuditInfo object.
int OdAuditInfo::numFixes | ( | ) | const |
Returns the number of errors reported as fixed to this AuditInfo object.
|
virtual |
Notification function called to print error information.
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. |
Reimplemented in OdDbAuditInfo.
|
virtual |
Notification function called to print error information.
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. |
Reimplemented in OdDbAuditInfo.
Notification function called to print log information.
logInfo | [in] Log information. |
void OdAuditInfo::requestRegen | ( | ) |
Allows fixed objects to specify a regen is required.
void OdAuditInfo::resetNumEntities | ( | ) |
Resets the number of errors reported to this AuditInfo object.
void OdAuditInfo::setFixErrors | ( | bool | fixErrors | ) |
Controls the fixing of errors are to be fixed during the audit that uses this AuditInfo object.
fixErrors | [in] Fix errors. |
Sets the last error information that is intended for printing.
lastInfo | [in] Last error information. |
Sets the destination for log printing.
printDest | [in] Print destination. |
Value Description kSilent 0 None. kCmdLine 1 Command line. kFile 2 File. kBoth 3 Both command line and file.