CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbTraceStore.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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#ifndef _OdDbTraceStorage_h_Included_
26#define _OdDbTraceStorage_h_Included_
27
28#include "TD_PackPush.h"
29#include "RxDefs.h"
30#include "DbObject.h"
31#include "StringArray.h"
32#include "OdPlatformSettings.h"
33#include "DbDictionary.h"
34#include "DbDatabase.h"
35
36class OdDbTraceStore;
45
53{
66 OdTraceUserProfile(const OdString& firstName, const OdString& lastName, const OdString& userName, const OdString& oxygenId = OdString::kEmpty) :
67 m_firstName(firstName), m_lastName(lastName), m_userName(userName), m_oxygenID(oxygenId) {};
68
74 bool isEmpty()
75 {
76 return m_firstName.isEmpty() || m_lastName.isEmpty() || m_userName.isEmpty();
77 }
78
87
88 //DOM-IGNORE-BEGIN
91 //DOM-IGNORE-END
92};
93
113
121{
122public:
124
129
136
137
139 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const ODRX_OVERRIDE;
140
150 {
151 if(!pDb)
152 return false;
154 OdDbDictionaryPtr pDir = dicId.openObject();
155 OdDbObjectId id = pDir->getAt(L"ACAD_TRACESTORE");
156 if (id.isNull())
157 return false;
158 pTraceStore = id.openObject(openMode);
159 return true;
160 }
161};
162
163
164
165
166#include "TD_PackPop.h"
167
168#endif
OdSmartPtr< OdDbDictionary > OdDbDictionaryPtr
Definition DbDatabase.h:109
OdSmartPtr< OdDbTraceStore > OdDbTraceStorePtr
#define ODRX_OVERRIDE
#define OD_DLL_EXPORT
OdResult
Definition OdResult.h:29
OdDbObjectId getNamedObjectsDictionaryId() const
OdDbObjectPtr getAt(const OdString &name, OdDb::OpenMode mode) const
OdResult openObject(OdDbObjectPtr &pObj, OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) ODRX_OVERRIDE
OdArray< OdTraceUserInfo > getTraceUserInfo() const
static bool openTraceStore(OdDbDatabase *pDb, OdDbTraceStorePtr &pTraceStore, OdDb::OpenMode openMode=OdDb::kForRead)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const ODRX_OVERRIDE
ODDB_DECLARE_MEMBERS(OdDbTraceStore)
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition OdString.h:100
@ kForRead
Definition DbObjectId.h:56
OdString m_traceName
OdTraceUserProfile m_lastSavedBy
OdTraceUserProfile m_createdBy
OdString m_traceFile
OdTraceUserProfile(const OdString &firstName, const OdString &lastName, const OdString &userName, const OdString &oxygenId=OdString::kEmpty)