CFx SDK Documentation
2026 SP0
Loading...
Searching...
No Matches
SDK
CFx
bim_ifc
BCF_3_0
Bcf_3_0Comment.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
#ifndef _BCF_3_0_COMMENT_H
25
#define _BCF_3_0_COMMENT_H
26
27
#include "
BcfCommon.h
"
28
#include "
OdGUID.h
"
29
30
#include "
BcfElement.h
"
31
35
namespace
OdBcf
{
36
37
class
OdBcfTimeStamp
;
41
typedef
OdSmartPtr<OdBcfTimeStamp>
OdBcfTimeStampPtr
;
42
}
43
47
namespace
OdBcf_3_0
{
48
49
class
OdBcfGUIDAttribute
;
53
typedef
OdSmartPtr<OdBcfGUIDAttribute>
OdBcfGUIDAttributePtr
;
54
55
class
OdBcfSession
;
56
60
class
BCF_3_0_EXPORT
OdBcfCommentData
61
{
62
public
:
63
67
OdBcfCommentData
();
68
72
OdBcf::OdBcfTimeStampPtr
m_pDate
;
73
77
OdString
m_author
;
78
82
OdString
m_comment
;
83
87
OdBcfGUIDAttributePtr
m_pViewpoint
;
88
92
OdBcf::OdBcfTimeStampPtr
m_pModifiedDate
;
93
97
OdString
m_modifiedAuthor
;
98
102
OdGUID
m_guid
;
103
};
104
108
class
BCF_3_0_EXPORT
OdBcfComment
:
public
OdBcf::OdBcfElement
,
protected
OdBcfCommentData
109
{
110
public
:
111
112
//DOM-IGNORE-BEGIN
113
ODRX_DECLARE_MEMBERS
(
OdBcfComment
);
114
//DOM-IGNORE-END
115
121
virtual
OdResult
inFields
(TiXmlElement *pParent)
ODRX_OVERRIDE
;
122
128
virtual
OdResult
outFields
(TiXmlElement *pParent)
const
ODRX_OVERRIDE
;
129
136
const
OdBcf::OdBcfTimeStampPtr
&
getDate
()
const
;
137
142
bool
isDateUnset
()
const
;
143
150
const
OdString
&
getAuthor
()
const
;
151
156
bool
isAuthorUnset
()
const
;
157
162
void
setComment
(
const
OdString
&commentValue);
163
170
OdString
&
getComment
();
171
178
const
OdString
&
getComment
()
const
;
179
184
bool
isCommentUnset
()
const
;
185
190
void
setViewpoint
(
const
OdBcfGUIDAttributePtr
&viewpointValue);
191
198
OdBcfGUIDAttributePtr
&
getViewpoint
();
199
206
const
OdBcfGUIDAttributePtr
&
getViewpoint
()
const
;
207
212
bool
isViewpointUnset
()
const
;
213
218
void
setModifiedDate
(
const
OdBcf::OdBcfTimeStampPtr
&modifiedDateValue);
219
226
OdBcf::OdBcfTimeStampPtr
&
getModifiedDate
();
227
234
const
OdBcf::OdBcfTimeStampPtr
&
getModifiedDate
()
const
;
235
240
bool
isModifiedDateUnset
()
const
;
241
246
void
setModifiedAuthor
(
const
OdString
&modifiedAuthorValue);
247
254
OdString
&
getModifiedAuthor
();
255
262
const
OdString
&
getModifiedAuthor
()
const
;
263
268
bool
isModifiedAuthorUnset
()
const
;
269
276
const
OdGUID
&
getGuid
()
const
;
277
282
bool
isGuidUnset
()
const
;
283
289
OdBcfComment
& operator = (
const
OdBcfCommentData
& val);
290
291
//DOM-IGNORE-BEGIN
292
protected
:
293
300
OdBcf::OdBcfTimeStampPtr
&
getDate
();
301
308
OdString
&
getAuthor
();
309
316
OdGUID
&
getGuid
();
317
322
void
setDate
(
const
OdBcf::OdBcfTimeStampPtr
&dateValue);
323
328
void
setAuthor
(
const
OdString
&authorValue);
329
334
void
setGuid
(
const
OdGUID
&guidValue);
335
340
virtual
bool
validateData
() const
ODRX_OVERRIDE
;
341
342
friend
OdBcfSession
;
343
//DOM-IGNORE-END
344
};
345
349
typedef
OdSmartPtr
<
OdBcfComment
>
OdBcfCommentPtr
;
350
351
}
//namespace OdBcf_3_0
352
353
#endif
// _BCF_3_0_COMMENT_H
BcfCommon.h
BcfElement.h
BCF_3_0_EXPORT
#define BCF_3_0_EXPORT
Definition
IfcBuildOptions.h:76
OdGUID.h
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition
OdPlatformSettings.h:55
OdResult
OdResult
Definition
OdResult.h:29
OdBcf::OdBcfElement
Definition
BcfElement.h:41
OdBcf::OdBcfTimeStamp
Definition
BcfTimeStamp.h:40
OdBcf_3_0::OdBcfCommentData::m_pDate
OdBcf::OdBcfTimeStampPtr m_pDate
Definition
Bcf_3_0Comment.h:72
OdBcf_3_0::OdBcfCommentData::m_pViewpoint
OdBcfGUIDAttributePtr m_pViewpoint
Definition
Bcf_3_0Comment.h:87
OdBcf_3_0::OdBcfCommentData::m_guid
OdGUID m_guid
Definition
Bcf_3_0Comment.h:102
OdBcf_3_0::OdBcfCommentData::OdBcfCommentData
OdBcfCommentData()
OdBcf_3_0::OdBcfCommentData::m_comment
OdString m_comment
Definition
Bcf_3_0Comment.h:82
OdBcf_3_0::OdBcfCommentData::m_author
OdString m_author
Definition
Bcf_3_0Comment.h:77
OdBcf_3_0::OdBcfCommentData::m_modifiedAuthor
OdString m_modifiedAuthor
Definition
Bcf_3_0Comment.h:97
OdBcf_3_0::OdBcfCommentData::m_pModifiedDate
OdBcf::OdBcfTimeStampPtr m_pModifiedDate
Definition
Bcf_3_0Comment.h:92
OdBcf_3_0::OdBcfComment
Definition
Bcf_3_0Comment.h:109
OdBcf_3_0::OdBcfComment::inFields
virtual OdResult inFields(TiXmlElement *pParent) ODRX_OVERRIDE
OdBcf_3_0::OdBcfComment::validateData
virtual bool validateData() const ODRX_OVERRIDE
OdBcf_3_0::OdBcfComment::getViewpoint
const OdBcfGUIDAttributePtr & getViewpoint() const
OdBcf_3_0::OdBcfComment::getDate
OdBcf::OdBcfTimeStampPtr & getDate()
OdBcf_3_0::OdBcfComment::getGuid
OdGUID & getGuid()
OdBcf_3_0::OdBcfComment::setViewpoint
void setViewpoint(const OdBcfGUIDAttributePtr &viewpointValue)
OdBcf_3_0::OdBcfComment::isDateUnset
bool isDateUnset() const
OdBcf_3_0::OdBcfComment::getDate
const OdBcf::OdBcfTimeStampPtr & getDate() const
OdBcf_3_0::OdBcfComment::isGuidUnset
bool isGuidUnset() const
OdBcf_3_0::OdBcfComment::getModifiedDate
const OdBcf::OdBcfTimeStampPtr & getModifiedDate() const
OdBcf_3_0::OdBcfComment::isCommentUnset
bool isCommentUnset() const
OdBcf_3_0::OdBcfComment::setModifiedDate
void setModifiedDate(const OdBcf::OdBcfTimeStampPtr &modifiedDateValue)
OdBcf_3_0::OdBcfComment::isAuthorUnset
bool isAuthorUnset() const
OdBcf_3_0::OdBcfComment::isModifiedAuthorUnset
bool isModifiedAuthorUnset() const
OdBcf_3_0::OdBcfComment::isViewpointUnset
bool isViewpointUnset() const
OdBcf_3_0::OdBcfComment::getComment
const OdString & getComment() const
OdBcf_3_0::OdBcfComment::getAuthor
OdString & getAuthor()
OdBcf_3_0::OdBcfComment::getModifiedAuthor
const OdString & getModifiedAuthor() const
OdBcf_3_0::OdBcfComment::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdBcfComment)
OdBcf_3_0::OdBcfComment::setAuthor
void setAuthor(const OdString &authorValue)
OdBcf_3_0::OdBcfComment::setModifiedAuthor
void setModifiedAuthor(const OdString &modifiedAuthorValue)
OdBcf_3_0::OdBcfComment::OdBcfSession
friend OdBcfSession
Definition
Bcf_3_0Comment.h:342
OdBcf_3_0::OdBcfComment::outFields
virtual OdResult outFields(TiXmlElement *pParent) const ODRX_OVERRIDE
OdBcf_3_0::OdBcfComment::getAuthor
const OdString & getAuthor() const
OdBcf_3_0::OdBcfComment::setGuid
void setGuid(const OdGUID &guidValue)
OdBcf_3_0::OdBcfComment::isModifiedDateUnset
bool isModifiedDateUnset() const
OdBcf_3_0::OdBcfComment::getModifiedDate
OdBcf::OdBcfTimeStampPtr & getModifiedDate()
OdBcf_3_0::OdBcfComment::getGuid
const OdGUID & getGuid() const
OdBcf_3_0::OdBcfComment::getViewpoint
OdBcfGUIDAttributePtr & getViewpoint()
OdBcf_3_0::OdBcfComment::getComment
OdString & getComment()
OdBcf_3_0::OdBcfComment::setDate
void setDate(const OdBcf::OdBcfTimeStampPtr &dateValue)
OdBcf_3_0::OdBcfComment::setComment
void setComment(const OdString &commentValue)
OdBcf_3_0::OdBcfComment::getModifiedAuthor
OdString & getModifiedAuthor()
OdBcf_3_0::OdBcfGUIDAttribute
Definition
Bcf_3_0GUIDAttribute.h:41
OdBcf_3_0::OdBcfSession
Definition
Bcf_3_0Session.h:188
OdGUID
Definition
OdGUID.h:33
OdSmartPtr
Definition
SmartPtr.h:58
OdString
Definition
OdString.h:97
OdBcf_3_0
Definition
Bcf_3_0Archive.h:48
OdBcf_3_0::OdBcfCommentPtr
OdSmartPtr< OdBcfComment > OdBcfCommentPtr
Definition
Bcf_3_0Comment.h:349
OdBcf_3_0::OdBcfGUIDAttributePtr
OdSmartPtr< OdBcfGUIDAttribute > OdBcfGUIDAttributePtr
Definition
Bcf_3_0Comment.h:53
OdBcf
Definition
Bcf_2_1Archive.h:36
OdBcf::OdBcfTimeStampPtr
OdSmartPtr< OdBcfTimeStamp > OdBcfTimeStampPtr
Definition
Bcf_2_1Comment.h:38
Generated on Tue Apr 15 2025 11:28:09