CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdAuditInfo.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
25
26
27#ifndef _OD_AUDITINFO_INCLUDED_
28#define _OD_AUDITINFO_INCLUDED_
29
30#include "TD_PackPush.h"
31
32#include "DbRootExport.h"
33#include "OdString.h"
34#include "RxObject.h"
35
36class OdAuditInfoImpl;
37//class OdRxObject;
38
48{
49public:
50
52 {
53 kSilent = 0, // None.
54 kCmdLine = 1, // Command line.
55 kFile = 2, // File.
56 kBoth = 3 // Both command line and file.
57 };
58 struct MsgInfo
59 {
65 };
66
68
69 virtual ~OdAuditInfo();
70
75 bool fixErrors() const;
76
84 bool fixErrors);
85
89 int numErrors() const;
90
94 int numFixes() const;
95
101 int count);
102
108 int count);
109
115 int count);
116
131 virtual void printError(
132 const OdString& name,
133 const OdString& value,
134 const OdString& validation = OdString::kEmpty,
135 const OdString& defaultValue = OdString::kEmpty );
136
148 virtual void printError(
149 const OdRxObject* pObject,
150 const OdString& value,
151 const OdString& validation = OdString::kEmpty,
152 const OdString& defaultValue = OdString::kEmpty);
153
159 virtual void printInfo (
160 const OdString& logInfo);
161
166
171
176
181
185 virtual const MsgInfo& getLastInfo();
186
191 virtual void setLastInfo(
192 MsgInfo &lastInfo);
193
194 /* If the current count of entities being maintained in the instance
195 of OdAuditInfo is a multiple of 100, and msg is not NULL,
196 then this function will print the string pointed to by msg
197 followed by the current entity count out to the audit log file.
198 void printNumEntities(const OdChar* msg);
199 */
200
217 PrintDest printDest);
218
234
235private:
236 OdAuditInfoImpl* m_pImpl;
237};
238
245
246#include "TD_PackPop.h"
247
248#endif // _OD_AUDITINFO_INCLUDED_
249
#define DBROOT_EXPORT
Definition: DbRootExport.h:39
void(* ODAUDITINFO_CALLBACK)(const OdAuditInfo *)
Definition: OdAuditInfo.h:242
DBROOT_EXPORT void odrxUnregisterAuditInfoDestructorCallback()
DBROOT_EXPORT void odrxRegisterAuditInfoDestructorCallback(const ODAUDITINFO_CALLBACK callbackFunc)
PrintDest getPrintDest()
virtual void printInfo(const OdString &logInfo)
int numErrors() const
void incNumEntities()
virtual const MsgInfo & getLastInfo()
void setFixErrors(bool fixErrors)
void errorsSkip(int count)
void setPrintDest(PrintDest printDest)
void requestRegen()
virtual void printError(const OdRxObject *pObject, const OdString &value, const OdString &validation=OdString::kEmpty, const OdString &defaultValue=OdString::kEmpty)
int numFixes() const
void errorsFound(int count)
void resetNumEntities()
virtual ~OdAuditInfo()
virtual void setLastInfo(MsgInfo &lastInfo)
virtual void printError(const OdString &name, const OdString &value, const OdString &validation=OdString::kEmpty, const OdString &defaultValue=OdString::kEmpty)
bool fixErrors() const
int numEntities()
void errorsFixed(int count)
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLsizei GLsizei * count
Definition: gles2_ext.h:276
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdString strValidation
Definition: OdAuditInfo.h:62
OdString strDefaultValue
Definition: OdAuditInfo.h:63