CFx SDK Documentation  2020SP3
DbAudit.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 _ODDB_AUDIT_INCLUDED_
28 #define _ODDB_AUDIT_INCLUDED_
29 
30 #include "TD_PackPush.h"
31 
32 #include "OdString.h"
33 #include "CmColor.h"
34 #include "OdAuditInfo.h"
35 
36 class OdDbObject;
37 class OdDbObjectId;
38 class OdDbDatabase;
40 
46 TOOLKIT_EXPORT bool odDbAuditColorIndex(OdInt16& colorIndex, OdDbAuditInfo* pAuditInfo, OdDbHostAppServices* pHostApp = 0);
47 TOOLKIT_EXPORT bool odDbAuditColorIndex(OdInt16& colorIndex, OdDbAuditInfo* pAuditInfo, OdDbHostAppServices* pHostApp, OdDbObject* pObj, unsigned int sid, unsigned int n);
48 TOOLKIT_EXPORT bool odDbAuditColor(OdCmColor& color, OdDbAuditInfo* pAuditInfo, OdDbHostAppServices* pHostApp = 0);
49 TOOLKIT_EXPORT bool odDbAuditColor(OdCmColor& color, OdDbAuditInfo* pAuditInfo, OdDbHostAppServices* pHostApp, OdDbObject* pObj, unsigned int sid, unsigned int n);
50 
60 {
61 public:
75  virtual void printError(
76  const OdString& name,
77  const OdString& value,
78  const OdString& validation = OdString::kEmpty,
79  const OdString& defaultValue = OdString::kEmpty );
80 
92  virtual void printError(
93  const OdRxObject* pObject,
94  const OdString& value,
95  const OdString& validation = OdString::kEmpty,
96  const OdString& defaultValue = OdString::kEmpty);
97 };
98 
99 #include "TD_PackPop.h"
100 
101 #endif // _ODDB_AUDIT_INCLUDED_
102 
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
odDbGetObjectName
TOOLKIT_EXPORT OdString odDbGetObjectName(const OdDbObject *pObj)
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
CmColor.h
TD_PackPop.h
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdInt16
short OdInt16
Definition: OdPlatformSettings.h:756
OdString.h
odDbAuditColorIndex
TOOLKIT_EXPORT bool odDbAuditColorIndex(OdInt16 &colorIndex, OdDbAuditInfo *pAuditInfo, OdDbHostAppServices *pHostApp=0)
odDbGenerateName
TOOLKIT_EXPORT OdString odDbGenerateName(const OdDbObjectId &id, OdDbHostAppServices *pHostApp=0)
OdDbHostAppServices
Definition: DbHostAppServices.h:65
odDbGetObjectIdName
TOOLKIT_EXPORT OdString odDbGetObjectIdName(const OdDbObjectId &id)
odDbAuditColor
TOOLKIT_EXPORT bool odDbAuditColor(OdCmColor &color, OdDbAuditInfo *pAuditInfo, OdDbHostAppServices *pHostApp=0)
TD_PackPush.h
odDbGetHandleName
TOOLKIT_EXPORT OdString odDbGetHandleName(const OdDbHandle &handle)
OdDbAuditInfo::printError
virtual void printError(const OdString &name, const OdString &value, const OdString &validation=OdString::kEmpty, const OdString &defaultValue=OdString::kEmpty)
OdDbHandle
Definition: DbHandle.h:67
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdString::kEmpty
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbAuditInfo::printError
virtual void printError(const OdRxObject *pObject, const OdString &value, const OdString &validation=OdString::kEmpty, const OdString &defaultValue=OdString::kEmpty)
OdDbAuditInfo
Definition: DbAudit.h:60
OdAuditInfo
Definition: OdAuditInfo.h:48
OdCmColor
Definition: CmColor.h:59
OdAuditInfo.h
OdDbObject
Definition: DbObject.h:211