CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdPdfPublish::OdAttachedFile Class Reference

#include <PdfPublishAttachedFile.h>

Inheritance diagram for OdPdfPublish::OdAttachedFile:
OdPdfPublish::OdObject OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdAttachedFile)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdAttachedFile ()
 
void setName (const OdString &name)
 
void setDescription (const OdString &description)
 
void setCreationDate (const OdTimeStamp &creation_date)
 
void setModDate (const OdTimeStamp &mod_date)
 
void setThumb (const OdImagePtr &pImage)
 
void addTextCollectionItem (const OdString &name, const OdString &item)
 
void addDateCollectionItem (const OdString &name, const OdTimeStamp &date)
 
void addNumberCollectionItem (const OdString &name, const double &number)
 
void setFile (const OdString &filename)
 
void setFileStream (OdStreamBufPtr &file)
 
void getName (OdString &name) const
 
void getDescription (OdString &description) const
 
void getCreationDate (OdTimeStamp &creation_date) const
 
void getModDate (OdTimeStamp &mod_date) const
 
void getThumb (OdImagePtr &pOutImage) const
 
void getTextCollectionItems (OdStringArray &names, OdStringArray &items) const
 
void getDateCollectionItems (OdStringArray &names, OdArray< OdTimeStamp > &dates) const
 
void getNumberCollectionItems (OdStringArray &names, OdDoubleArray &numbers) const
 
void getFile (OdString &out_filename) const
 
void getFileStream (OdStreamBufPtr &file) const
 
- Public Member Functions inherited from OdPdfPublish::OdObject
 ODRX_DECLARE_MEMBERS (OdObject)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdObject ()
 
virtual bool isEmpty () const
 
virtual bool isValid () const
 
virtual void clear ()
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Protected Member Functions

 OdAttachedFile ()
 
- Protected Member Functions inherited from OdPdfPublish::OdObject
 OdObject (OdPublishObjectImpl *pImpl)
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
static void rxInit ()
 
static void rxUninit ()
 

Detailed Description

This class implements an attached file entity in .pdf documents created with Publish SDK.

Definition at line 48 of file PdfPublishAttachedFile.h.

Constructor & Destructor Documentation

◆ OdAttachedFile()

OdPdfPublish::OdAttachedFile::OdAttachedFile ( )
protected

◆ ~OdAttachedFile()

virtual OdPdfPublish::OdAttachedFile::~OdAttachedFile ( )
virtual

Destroys an attached file object.

Member Function Documentation

◆ addDateCollectionItem()

void OdPdfPublish::OdAttachedFile::addDateCollectionItem ( const OdString & name,
const OdTimeStamp & date )

Adds the date collection item for the attached file.

Parameters
name[in] A new name of collection item value.
date[in] A new collection item value.
Remarks
The name shouldn't contain any special characters or spaces. To display this item, the collection should contain a column with the same name.

◆ addNumberCollectionItem()

void OdPdfPublish::OdAttachedFile::addNumberCollectionItem ( const OdString & name,
const double & number )

Adds the number collection item for the attached file.

Parameters
name[in] A new name of collection item value.
number[in] A new collection item value.
Remarks
The name shouldn't contain any special characters or spaces. To display this item, the collection should contain a column with the same name.

◆ addTextCollectionItem()

void OdPdfPublish::OdAttachedFile::addTextCollectionItem ( const OdString & name,
const OdString & item )

Adds the text collection item for the attached file.

Parameters
name[in] A new name of collection item value.
item[in] A new collection item value.
Remarks
The name shouldn't contain any special characters or spaces. To display this item, the collection should contain a column with the same name.

◆ getCreationDate()

void OdPdfPublish::OdAttachedFile::getCreationDate ( OdTimeStamp & creation_date) const

Returns the current creation date of the attached file. The method fills a passed TimeStamp and returns it to the calling subroutine.

Parameters
creation_date[out] A placeholder for creation date value.

◆ getDateCollectionItems()

void OdPdfPublish::OdAttachedFile::getDateCollectionItems ( OdStringArray & names,
OdArray< OdTimeStamp > & dates ) const

Returns a collection of date collection item of the attached file. This method fills the passed string array and array of TimeStamp objects, then returns them to a calling subroutine.

Parameters
names[out] A placeholder for collection item names.
images[out] A placeholder for date collection item values.

◆ getDescription()

void OdPdfPublish::OdAttachedFile::getDescription ( OdString & description) const

Returns the current description of the attached file. The method fills a passed string object and returns it to the calling subroutine.

Parameters
description[out] A placeholder for description value.

◆ getFile()

void OdPdfPublish::OdAttachedFile::getFile ( OdString & out_filename) const

Returns the current image full filename. The method fills a passed string object and returns it to the calling subroutine.

Parameters
out_filename[out] A placeholder for the full filename.

◆ getFileStream()

void OdPdfPublish::OdAttachedFile::getFileStream ( OdStreamBufPtr & file) const

Returns the current StreamBuf object. The method fills a passed StreamBuf object and returns it to the calling subroutine.

Parameters
file[out] A placeholder for the StreamBuf object.

◆ getModDate()

void OdPdfPublish::OdAttachedFile::getModDate ( OdTimeStamp & mod_date) const

Returns the current modification date of the attached file. The method fills a passed TimeStamp and returns it to the calling subroutine.

Parameters
mod_date[out] A placeholder for modification date value.

◆ getName()

void OdPdfPublish::OdAttachedFile::getName ( OdString & name) const

Returns the current displayed name of the attached file. The method fills a passed string object and returns it to the calling subroutine.

Parameters
name[out] A placeholder for displayed name value.

◆ getNumberCollectionItems()

void OdPdfPublish::OdAttachedFile::getNumberCollectionItems ( OdStringArray & names,
OdDoubleArray & numbers ) const

Returns a collection of number collection item of the attached file. This method fills the passed string array and array of double, then returns them to a calling subroutine.

Parameters
names[out] A placeholder for collection item names.
images[out] A placeholder for number collection item values.

◆ getTextCollectionItems()

void OdPdfPublish::OdAttachedFile::getTextCollectionItems ( OdStringArray & names,
OdStringArray & items ) const

Returns a collection of text collection item of the attached file. This method fills the passed string array and string array, then returns them to a calling subroutine.

Parameters
names[out] A placeholder for collection item names.
images[out] A placeholder for collection item values.

◆ getThumb()

void OdPdfPublish::OdAttachedFile::getThumb ( OdImagePtr & pOutImage) const

Returns the current thumbnail raster image object of the attached file. The method fills a passed raster image object and returns it to the calling subroutine.

Parameters
pOutImage[out] A placeholder for raster image object.

◆ ODRX_DECLARE_MEMBERS()

OdPdfPublish::OdAttachedFile::ODRX_DECLARE_MEMBERS ( OdAttachedFile )

◆ ODRX_HEAP_OPERATORS()

OdPdfPublish::OdAttachedFile::ODRX_HEAP_OPERATORS ( )

◆ setCreationDate()

void OdPdfPublish::OdAttachedFile::setCreationDate ( const OdTimeStamp & creation_date)

Sets the creation date of the attached file.

Parameters
creation_date[in] A new creation date value.

◆ setDescription()

void OdPdfPublish::OdAttachedFile::setDescription ( const OdString & description)

Sets the description of the attached file.

Parameters
description[in] A new description value.

◆ setFile()

void OdPdfPublish::OdAttachedFile::setFile ( const OdString & filename)

Sets the full filename of the attached file. Use IsValid() to check the status of the operation.

Parameters
filename[in] A new filename value.
Remarks
It also sets the displayed name of the file if it hasn't been set previously.

◆ setFileStream()

void OdPdfPublish::OdAttachedFile::setFileStream ( OdStreamBufPtr & file)

Sets the full filename of the attached file. Use IsValid() to check the status of the operation.

Parameters
file[in] A smart pointer to a StreamBuf object.
Remarks
It also sets the displayed name of the file if it hasn't been set previously, if this information is contained in the StreamBuf.

◆ setModDate()

void OdPdfPublish::OdAttachedFile::setModDate ( const OdTimeStamp & mod_date)

Sets the modification date of the attached file.

Parameters
mod_date[in] A new modification date value.

◆ setName()

void OdPdfPublish::OdAttachedFile::setName ( const OdString & name)

Sets the displayed name of the attached file. Use IsValid() to check the status of the operation.

Parameters
name[in] A new displayed name value.

◆ setThumb()

void OdPdfPublish::OdAttachedFile::setThumb ( const OdImagePtr & pImage)

Sets the thumbnail image of the attached file.

Parameters
pImage[in] A smart pointer to a thumbnail raster image object.

The documentation for this class was generated from the following file: