HPS::Exchange::TranslationNotifier

class HPS::Exchange::TranslationNotifier : public HPS::IONotifier

The TranslationNotifier class is a smart-pointer that is tied to a file translation. It is used to interact with an ongoing translation or get the results from a completed translation.

Public Functions

void Assign(TranslationNotifier const &in_that)

Associate this TranslationNotifier with the same file translation as the source TranslationNotifier.

Parameters

in_that – The source TranslationNotifier for the assignment.

HPS::Time GetImportTime() const

Get the number of milliseconds it took Exchange to read the CAD file(s) and generate the corresponding PRC data. Throws an IOException if the translation is not complete, was not successful or was canceled.

Exchange::ParasolidEntityArray GetParasolidParts() const

Get the Parasolid parts obtained from the translation. Throws an IOException if the translation is not complete, was not successful or was canceled.

Returns

The Parasolid Parts for a successful file translation.

HPS::Time GetTranslationTime() const

Get the number of milliseconds it took Exchange to translate the PRC data into Parasolid data. Throws an IOException if the translation is not complete, was not successful or was canceled.

inline virtual HPS::Type ObjectType() const

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Returns

The declared type of the object in question, which may differ from the true, underlying type.

TranslationNotifier &operator=(TranslationNotifier &&in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this TranslationNotifier thereby avoiding a copy.

Parameters

in_that – An rvalue reference to an TranslationNotifier to take the impl from.

Returns

A reference to this TranslationNotifier.

TranslationNotifier &operator=(TranslationNotifier const &in_that)

Associate this TranslationNotifier with the same file translation as the source TranslationNotifier.

Parameters

in_that – The source TranslationNotifier for the assignment.

Returns

A reference to this TranslationNotifier.

TranslationNotifier()

The default constructor creates an TranslationNotifier object which is not tied to any file translation.

TranslationNotifier(IONotifier const &in_that)

The conversion constructor creates a new derived TranslationNotifier object from a base IONotifier object. The copy will only be successful if the source notifier is really an upcast of this notifier type. Otherwise the copy will fail and the resulting TranslationNotifier will be invalid.

Parameters

in_that – The source IONotifier to copy.

TranslationNotifier(TranslationNotifier &&in_that)

The move constructor creates an TranslationNotifier by transferring the underlying impl of the rvalue reference to this TranslationNotifier thereby avoiding a copy and allocation.

Parameters

in_that – An rvalue reference to an TranslationNotifier to take the impl from.

TranslationNotifier(TranslationNotifier const &in_that)

The copy constructor creates a new TranslationNotifier object that is associated with the same file translation as the source TranslationNotifier.

Parameters

in_that – The source TranslationNotifier to copy.

virtual ~TranslationNotifier()

Public Static Attributes

static const HPS::Type staticType = HPS::Type::ExchangeTranslationNotifier