CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishAttachedFile.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
26//
27// OdAttachedFile.h
28//
30
31#ifndef _PDF_PUBLISH_ATTACHED_FILE_INCLUDED_
32#define _PDF_PUBLISH_ATTACHED_FILE_INCLUDED_
33
35#include "PdfPublishImage.h"
36#include "StringArray.h"
37#include "DoubleArray.h"
38
43namespace OdPdfPublish{
44
48class PDFPUBLISH_TOOLKIT OdAttachedFile : public OdObject
49{
50 //DOM-IGNORE-BEGIN
51protected:
53 //DOM-IGNORE-END
54public:
55 //DOM-IGNORE-BEGIN
58 //DOM-IGNORE-END
59
63 virtual ~OdAttachedFile();
64
71 void setName(const OdString& name);
72
78 void setDescription(const OdString& description);
79
85 void setCreationDate(const OdTimeStamp& creation_date);
86
92 void setModDate(const OdTimeStamp& mod_date);
93
99 void setThumb(const OdImagePtr& pImage);
100
109 void addTextCollectionItem(const OdString& name, const OdString& item);
110
120
129 void addNumberCollectionItem(const OdString& name, const double& number);
130
139 void setFile(const OdString& filename);
140
150
157 void getName(OdString& name) const;
158
165 void getDescription(OdString& description) const;
166
173 void getCreationDate(OdTimeStamp& creation_date) const;
174
181 void getModDate(OdTimeStamp& mod_date) const;
182
189 void getThumb(OdImagePtr& pOutImage) const;
190
199
208
217
224 void getFile(OdString& out_filename) const;
225
232 void getFileStream(OdStreamBufPtr& file) const;
233
234};
235
240
241}
242#endif // _PDF_PUBLISH_ATTACHED_FILE_INCLUDED_
243
OdSmartPtr< OdStreamBuf > OdStreamBufPtr
OdArray< OdDouble, OdMemoryAllocator< OdDouble > > OdDoubleArray
Definition DoubleArray.h:36
#define SMARTPTR(classname)
Definition IfcCommon.h:33
#define PDFPUBLISH_TOOLKIT
OdArray< OdString > OdStringArray
Definition StringArray.h:32
void setThumb(const OdImagePtr &pImage)
void getName(OdString &name) const
void getNumberCollectionItems(OdStringArray &names, OdDoubleArray &numbers) const
void getDescription(OdString &description) const
void setModDate(const OdTimeStamp &mod_date)
void getDateCollectionItems(OdStringArray &names, OdArray< OdTimeStamp > &dates) const
void setName(const OdString &name)
void setFile(const OdString &filename)
void getModDate(OdTimeStamp &mod_date) const
void getCreationDate(OdTimeStamp &creation_date) const
void getTextCollectionItems(OdStringArray &names, OdStringArray &items) const
void setFileStream(OdStreamBufPtr &file)
ODRX_DECLARE_MEMBERS(OdAttachedFile)
void addNumberCollectionItem(const OdString &name, const double &number)
void addDateCollectionItem(const OdString &name, const OdTimeStamp &date)
void getFileStream(OdStreamBufPtr &file) const
void setDescription(const OdString &description)
void getThumb(OdImagePtr &pOutImage) const
void getFile(OdString &out_filename) const
void setCreationDate(const OdTimeStamp &creation_date)
void addTextCollectionItem(const OdString &name, const OdString &item)
GLuint const GLchar * name
Definition gles2_ext.h:265