CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbAudit.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 _ODDB_AUDIT_INCLUDED_
28#define _ODDB_AUDIT_INCLUDED_
29
30#include "TD_PackPush.h"
31
32#include "DbExport.h"
33
34#include "OdString.h"
35#include "CmColor.h"
36#include "OdAuditInfo.h"
37
38class OdDbObject;
39class OdDbObjectId;
40class OdDbDatabase;
41class OdDbHandle;
43
49TOOLKIT_EXPORT bool odDbAuditColorIndex(OdInt16& colorIndex, OdDbAuditInfo* pAuditInfo, OdDbHostAppServices* pHostApp = 0);
50TOOLKIT_EXPORT bool odDbAuditColorIndex(OdInt16& colorIndex, OdDbAuditInfo* pAuditInfo, OdDbHostAppServices* pHostApp, OdDbObject* pObj, unsigned int sid, unsigned int n);
52TOOLKIT_EXPORT bool odDbAuditColor(OdCmColor& color, OdDbAuditInfo* pAuditInfo, OdDbHostAppServices* pHostApp, OdDbObject* pObj, unsigned int sid, unsigned int n);
53
61{
62public:
76 virtual void printError(
77 const OdString& name,
78 const OdString& value,
79 const OdString& validation = OdString::kEmpty,
80 const OdString& defaultValue = OdString::kEmpty );
81
93 virtual void printError(
94 const OdRxObject* pObject,
95 const OdString& value,
96 const OdString& validation = OdString::kEmpty,
97 const OdString& defaultValue = OdString::kEmpty);
98};
99
100#include "TD_PackPop.h"
101
102#endif // _ODDB_AUDIT_INCLUDED_
103
TOOLKIT_EXPORT bool odDbAuditColorIndex(OdInt16 &colorIndex, OdDbAuditInfo *pAuditInfo, OdDbHostAppServices *pHostApp=0)
TOOLKIT_EXPORT OdString odDbGetHandleName(const OdDbHandle &handle)
TOOLKIT_EXPORT OdString odDbGenerateName(const OdDbObjectId &id, OdDbHostAppServices *pHostApp=0)
TOOLKIT_EXPORT OdString odDbGetObjectIdName(const OdDbObjectId &id)
TOOLKIT_EXPORT OdString odDbGetObjectName(const OdDbObject *pObj)
TOOLKIT_EXPORT bool odDbAuditColor(OdCmColor &color, OdDbAuditInfo *pAuditInfo, OdDbHostAppServices *pHostApp=0)
#define DBENT_EXPORT
Definition: DbExport.h:67
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
unsigned int OdUInt32
short OdInt16
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)
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLsizei const GLfloat * value
Definition: gles2_ext.h:302