CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdTraceRuntime.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 _ODTraceRuntime_h_Included_
26#define _ODTraceRuntime_h_Included_
27
28#include "TD_PackPush.h"
29#include "RxDefs.h"
30#include "DbDatabase.h"
32
33class OdDbTraceRuntimeObject;
34class OdTraceRuntime;
36
44
52struct OdTraceCollaborator
53{
54private:
56 OdString m_firstName;
58 OdString m_lastName;
60 OdString m_userName;
61 //DOM-IGNORE-BEGIN
62 OdString m_traceFile;//internal use
63 OdString m_oxygenID; //internal use. String containing the user unique hash code
64 //DOM-IGNORE-END
66 OdDb::Visibility m_visibility = OdDb::kVisible;
67
68 //DOM-IGNORE-BEGIN
69 OdTraceCollaborator() = delete;
70 OdTraceCollaborator(const OdString& firstName, const OdString& lastName, const OdString& userName, const OdString& traceFile, const OdString oxygenID, const OdDb::Visibility visibility)
71 : m_firstName(firstName), m_lastName(lastName), m_userName(userName), m_traceFile(traceFile), m_oxygenID(oxygenID), m_visibility(visibility) {}
72 //DOM-IGNORE-END
73public:
81 void setVisible(const OdDb::Visibility visibility){ m_visibility = visibility; }
82
88 OdDb::Visibility isVisible() const { return m_visibility; }
89
95 OdString getFirstName() const { return m_firstName; }
96
102 OdString getLastName() const { return m_lastName; }
103
109 OdString getUserName() const { return m_userName; }
110
116 OdString getTraceFile() const { return m_traceFile; }
117
123 OdString getOxygenId() const { return m_oxygenID; }
124
125 //DOM-IGNORE-BEGIN
127 //DOM-IGNORE-END
128};
129
137{
138public:
151 OdResult appendDwgAsTrace(const OdString& sPath2DwgFileAsTrace, OdString& traceName);
152
166
178
195
206 OdResult renameTrace(const OdTraceUserInfo& trace, const OdString& newTraceName);
207
220
235 OdResult removeSubTrace(const OdTraceUserInfo& traceInfo, const OdTraceCollaborator& subTrace);
236
248
261
274
284
298
314
327
335 bool isObjectFromTrace(const OdDbObject* pSubject) const;
336public:
349
356
366
375 static OdTraceRuntime* getInstance(OdDbDatabase* pDb, const bool bCreateIfNotFound = false);
376
383
384 //DOM-IGNORE-BEGIN
386 //DOM-IGNORE-END
387protected:
395
402 OdTraceRuntime() = delete;
403
404 //DOM-IGNORE-BEGIN
406
407 //DOM-IGNORE-END
408};
409
410#include "TD_PackPop.h"
411
412#endif
#define OD_DLL_EXPORT
OdResult
Definition OdResult.h:29
OdDbDate(* OdTraceDateFunc)()
OdTraceDateFunc OD_DLL_EXPORT odSetTraceDateFunc(OdTraceDateFunc traceDateFunc)
OdResult traceFront() const
OdResult renameTrace(const OdTraceUserInfo &trace, const OdString &newTraceName)
OdResult removeSubTrace(const OdTraceUserInfo &traceInfo, const OdTraceCollaborator &subTrace)
OdResult getTraceCollaborators(const OdTraceUserInfo &trace, OdArray< OdTraceCollaborator > &traceCollaborators) const
OdTraceUserProfile getCurrentUserInfo() const
bool isObjectFromTrace(const OdDbObject *pSubject) const
OdResult newTrace()
OdTraceRuntime(OdDbDatabase *, const bool)
virtual ~OdTraceRuntime()
OdTraceRuntime()=delete
OdResult removeTrace(const OdTraceUserInfo &traceInfo)
OdResult getOpenTraceExtents(OdGeExtents3d &) const
OdResult appendDwgAsTrace(const OdString &sPath2DwgFileAsTrace, OdString &traceName)
static OdTraceRuntime * getInstance(OdDbDatabase *pDb, const bool bCreateIfNotFound=false)
OdResult closeTrace()
OdResult openTrace(const OdTraceUserInfo &traceInfo)
OdResult getTracesUserInfo(OdArray< OdTraceUserInfo > &userInfoArr) const
OdDbObjectId getTraceRuntimeId() const
OdResult getOpenTraceCollaborators(OdArray< OdTraceCollaborator > &traceCollaborators) const
OdResult showOpenTraceCollaborators(const OdArray< OdTraceCollaborator > &traceCollaborators) const
OdResult traceBack() const
OdDbObjectId m_traceRuntimeId
OdResult appendDwgAsTrace(OdDbDatabase *pDbTrace, OdString &traceName)
OdResult setCurrentUserInfo(const OdTraceUserProfile &currentUserInfo)
Visibility
Definition DbObject.h:146
@ kVisible
Definition DbObject.h:148
friend class OdDbTraceRuntimeObject
OdString getFirstName() const
OdString getUserName() const
OdString getTraceFile() const
void setVisible(const OdDb::Visibility visibility)
OdDb::Visibility isVisible() const
OdString getOxygenId() const
OdString getLastName() const