CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
BcfComment.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#ifndef _BFC_COMMENT_H
25#define _BFC_COMMENT_H
26
27#include "BcfCommon.h"
28#include "OdGUID.h"
29
30#include "BcfElement.h"
31
35namespace OdBcf {
36
37 class OdBcfTimeStamp;
39
42
43 class OdBcfSession;
44
49 {
50 public:
51
52 //DOM-IGNORE-BEGIN
54 //DOM-IGNORE-END
55
60
66 virtual OdResult inFields(TiXmlElement *pParent) ODRX_OVERRIDE;
67
73 virtual OdResult outFields(TiXmlElement *pParent) const ODRX_OVERRIDE;
74
79 virtual bool validate() const ODRX_OVERRIDE;
80
87 const OdBcfTimeStampPtr& getDate() const;
88
93 bool isDateUnset() const;
94
101 const OdString& getAuthor() const;
102
107 bool isAuthorUnset() const;
108
113 void setComment(const OdString &commentValue);
114
121 OdString& getComment();
122
129 const OdString& getComment() const;
130
135 bool isCommentUnset() const;
136
141 void setViewpoint(const OdBcfGUIDAttributePtr &viewpointValue);
142
149 OdBcfGUIDAttributePtr& getViewpoint();
150
157 const OdBcfGUIDAttributePtr& getViewpoint() const;
158
163 bool isViewpointUnset() const;
164
169 void setModifiedDate(const OdBcfTimeStampPtr &modifiedDateValue);
170
177 OdBcfTimeStampPtr& getModifiedDate();
178
185 const OdBcfTimeStampPtr& getModifiedDate() const;
186
191 bool isModifiedDateUnset() const;
192
197 void setModifiedAuthor(const OdString &modifiedAuthorValue);
198
205 OdString& getModifiedAuthor();
206
213 const OdString& getModifiedAuthor() const;
214
219 bool isModifiedAuthorUnset() const;
220
227 const OdGUID& getGuid() const;
228
233 bool isGuidUnset() const;
234
235
236 //DOM-IGNORE-BEGIN
237 protected:
239 OdString m_author;
240 OdString m_comment;
242 OdBcfTimeStampPtr m_pModifiedDate;
243 OdString m_modifiedAuthor;
244 OdGUID m_guid;
245
253
260 OdString& getAuthor();
261
268 OdGUID& getGuid();
269
274 void setDate(const OdBcfTimeStampPtr &dateValue);
275
280 void setAuthor(const OdString &authorValue);
281
286 void setGuid(const OdGUID &guidValue);
287
289 //DOM-IGNORE-END
290 };
291
296
297} //namespace OdBcf
298
299#endif // _BFC_COMMENT_H
#define BCF_EXPORT
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual OdResult outFields(TiXmlElement *pParent) const ODRX_OVERRIDE
ODRX_DECLARE_MEMBERS(OdBcfComment)
virtual OdResult inFields(TiXmlElement *pParent) ODRX_OVERRIDE
virtual bool validate() const ODRX_OVERRIDE
Definition: OdGUID.h:33
OdSmartPtr< OdBcfTimeStamp > OdBcfTimeStampPtr
Definition: BcfComment.h:38
OdSmartPtr< OdBcfGUIDAttribute > OdBcfGUIDAttributePtr
Definition: BcfComment.h:41