CFx SDK Documentation  2022 SP0
BcfTopic.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2020, 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-2020 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_TOPIC_H
25 #define _BFC_TOPIC_H
26 
27 #include "BcfCommon.h"
28 
29 #include "SharedPtr.h"
30 #include "StringArray.h"
31 #include "OdGUID.h"
32 
33 #include "BcfElement.h"
34 
38 namespace OdBcf {
39 
40  class OdBcfTimeStamp;
42 
43  class OdBcfBimSnippet;
45 
46  class OdBcfDocumentReference;
49 
50  class OdBcfGUIDAttribute;
53 
54  class OdBcfSession;
55 
60  {
61  public:
74  protected:
82  };
83 
88  {
89  public:
90 
91  //DOM-IGNORE-BEGIN
93  //DOM-IGNORE-END
94 
99 
105  virtual OdResult inFields(TiXmlElement *pParent) ODRX_OVERRIDE;
106 
112  virtual OdResult outFields(TiXmlElement *pParent) const ODRX_OVERRIDE;
113 
118  virtual bool validate() const ODRX_OVERRIDE;
119 
120  DECLARE_ACCESSORS( ReferenceLink, OdStringArray, m_referenceLink);
121  DECLARE_ACCESSORS( Title, OdString, m_title);
122  DECLARE_ACCESSORS( Priority, OdString, m_priority);
123  DECLARE_ACCESSORS( Index, OdInt32, m_index);
124  DECLARE_ACCESSORS( Labels, OdStringArray, m_labels);
125  DECLARE_ACCESSORS( DueDate, OdBcfTimeStampPtr, m_pDueDate);
126  DECLARE_ACCESSORS( AssignedTo, OdString, m_assignedTo);
127  DECLARE_ACCESSORS( Stage, OdString, m_stage);
128  DECLARE_ACCESSORS( Description, OdString, m_description);
129  DECLARE_ACCESSORS( BimSnippet, OdBcfBimSnippetPtr, m_pBimSnippet);
130  DECLARE_ACCESSORS( TopicType, OdString, m_topicType);
131  DECLARE_ACCESSORS( TopicStatus, OdString, m_topicStatus);
132 
133  DECLARE_CONST_ACCESSORS(CreationDate, OdBcfTimeStampPtr, m_pCreationDate);
134  DECLARE_CONST_ACCESSORS(CreationAuthor, OdString, m_creationAuthor);
135  DECLARE_CONST_ACCESSORS(ModifiedDate, OdBcfTimeStampPtr, m_pModifiedDate);
136  DECLARE_CONST_ACCESSORS(ModifiedAuthor, OdString, m_modifiedAuthor);
137  DECLARE_CONST_ACCESSORS(DocumentReference, OdBcfDocumentReferenceArray, m_documentReference);
138  DECLARE_CONST_ACCESSORS(RelatedTopic, OdBcfGUIDAttributeArray, m_relatedTopic);
140 
141  //DOM-IGNORE-BEGIN
142  protected:
143  DECLARE_SET( CreationDate, OdBcfTimeStampPtr, m_pCreationDate);
144  DECLARE_SET( CreationAuthor, OdString, m_creationAuthor);
145  DECLARE_SET( ModifiedDate, OdBcfTimeStampPtr, m_pModifiedDate);
146  DECLARE_SET( ModifiedAuthor, OdString, m_modifiedAuthor);
147  DECLARE_SET( DocumentReference, OdBcfDocumentReferenceArray, m_documentReference);
148  DECLARE_SET( RelatedTopic, OdBcfGUIDAttributeArray, m_relatedTopic);
149  DECLARE_SET( Guid, OdGUID, m_guid);
150 
151  DECLARE_GET( CreationDate, OdBcfTimeStampPtr, m_pCreationDate);
152  DECLARE_GET( CreationAuthor, OdString, m_creationAuthor);
153  DECLARE_GET( ModifiedDate, OdBcfTimeStampPtr, m_pModifiedDate);
154  DECLARE_GET( ModifiedAuthor, OdString, m_modifiedAuthor);
155  DECLARE_GET( DocumentReference, OdBcfDocumentReferenceArray, m_documentReference);
156  DECLARE_GET( RelatedTopic, OdBcfGUIDAttributeArray, m_relatedTopic);
157  DECLARE_GET( Guid, OdGUID, m_guid);
158 
159 
160  OdBcfTopic& operator = (const OdBcfTopicData& val);
161 
162  friend OdBcfSession;
163  //DOM-IGNORE-END
164  };
165 
170 
175 
176 } //namespace OdBcf
177 
178 #endif // _BFC_TOPIC_H
#define DECLARE_ACCESSORS(MethodName, VariableType, VariableName)
Definition: BcfCommon.h:91
#define DECLARE_GET(MethodName, VariableType, VariableName)
Definition: BcfCommon.h:62
#define DECLARE_CONST_ACCESSORS(MethodName, VariableType, VariableName)
Definition: BcfCommon.h:73
#define DECLARE_SET(MethodName, VariableType, VariableName)
Definition: BcfCommon.h:51
#define BCF_EXPORT
int OdInt32
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
OdBcfDocumentReferenceArray m_documentReference
Definition: BcfTopic.h:79
OdStringArray m_referenceLink
Definition: BcfTopic.h:62
OdBcfTimeStampPtr m_pDueDate
Definition: BcfTopic.h:67
OdString m_description
Definition: BcfTopic.h:70
OdBcfBimSnippetPtr m_pBimSnippet
Definition: BcfTopic.h:71
OdBcfTimeStampPtr m_pCreationDate
Definition: BcfTopic.h:75
OdBcfTimeStampPtr m_pModifiedDate
Definition: BcfTopic.h:77
OdString m_creationAuthor
Definition: BcfTopic.h:76
OdStringArray m_labels
Definition: BcfTopic.h:66
OdString m_topicType
Definition: BcfTopic.h:72
OdString m_topicStatus
Definition: BcfTopic.h:73
OdString m_priority
Definition: BcfTopic.h:64
OdString m_assignedTo
Definition: BcfTopic.h:68
OdBcfGUIDAttributeArray m_relatedTopic
Definition: BcfTopic.h:80
OdString m_modifiedAuthor
Definition: BcfTopic.h:78
virtual bool validate() const ODRX_OVERRIDE
ODRX_DECLARE_MEMBERS(OdBcfTopic)
virtual OdResult inFields(TiXmlElement *pParent) ODRX_OVERRIDE
virtual OdResult outFields(TiXmlElement *pParent) const ODRX_OVERRIDE
Definition: OdGUID.h:29
OdSmartPtr< OdBcfBimSnippet > OdBcfBimSnippetPtr
Definition: BcfBimSnippet.h:84
OdSmartPtr< OdBcfDocumentReference > OdBcfDocumentReferencePtr
OdSmartPtr< OdBcfTimeStamp > OdBcfTimeStampPtr
Definition: BcfComment.h:37
OdArray< OdBcfDocumentReferencePtr > OdBcfDocumentReferenceArray
Definition: BcfTopic.h:48
OdArray< OdBcfGUIDAttributePtr > OdBcfGUIDAttributeArray
Definition: BcfTopic.h:52
OdSmartPtr< OdBcfGUIDAttribute > OdBcfGUIDAttributePtr
Definition: BcfComment.h:40