Overview

Sample Code

Programming Guide

API Reference

Support

HPS::Exchange::ExportXMLOptionsKit Class Reference

#include <sprk_exchange.h>

Inheritance diagram for HPS::Exchange::ExportXMLOptionsKit:
HPS::Sprocket HPS::Object

Public Member Functions

bool Empty () const
 
bool Equals (ExportXMLOptionsKit const &in_kit) const
 
 ExportXMLOptionsKit ()
 
 ExportXMLOptionsKit (ExportXMLOptionsKit const &in_kit)
 
 ExportXMLOptionsKit (ExportXMLOptionsKit &&in_that)
 
HPS::Type ObjectType () const
 
bool operator!= (ExportXMLOptionsKit const &in_kit) const
 
ExportXMLOptionsKitoperator= (ExportXMLOptionsKit const &in_kit)
 
ExportXMLOptionsKitoperator= (ExportXMLOptionsKit &&in_that)
 
bool operator== (ExportXMLOptionsKit const &in_kit) const
 
void Set (ExportXMLOptionsKit const &in_kit)
 
ExportXMLOptionsKitSetMaterials (bool in_state)
 
ExportXMLOptionsKitSetMetadata (bool in_state)
 
ExportXMLOptionsKitSetTransformations (bool in_state)
 
void Show (ExportXMLOptionsKit &out_kit) const
 
bool ShowMaterials (bool &out_state) const
 
bool ShowMetadata (bool &out_state) const
 
bool ShowTransformations (bool &out_state) const
 
ExportXMLOptionsKitUnsetEverything ()
 
ExportXMLOptionsKitUnsetMaterials ()
 
ExportXMLOptionsKitUnsetMetadata ()
 
ExportXMLOptionsKitUnsetTransformations ()
 
- Public Member Functions inherited from HPS::Sprocket
 Sprocket (HPS::Sprocket const &in_that)=default
 
 Sprocket (Sprocket &&in_that)
 
- Public Member Functions inherited from HPS::Object
intptr_t GetClassID () const
 
intptr_t GetInstanceID () const
 
bool HasType (HPS::Type in_mask) const
 
 Object (Object const &that)
 
 Object (Object &&in_that)
 
Objectoperator= (Object const &other_object)
 
Objectoperator= (Object &&in_that)
 
virtual void Reset ()
 
HPS::Type Type () const
 

Static Public Member Functions

static ExportXMLOptionsKit GetDefault ()
 
- Static Public Member Functions inherited from HPS::Object
template<typename T >
static intptr_t ClassID ()
 

Detailed Description

The HPS::Exchange::ExportXMLOptionsKit class is a user space object. It contains settings controlling how XML data is exported via Exchange. Calling HPS::Exchange::ExportXMLOptionsKit::GetDefault() will return an options kit with values found in here.

Constructor & Destructor Documentation

HPS::Exchange::ExportXMLOptionsKit::ExportXMLOptionsKit ( )

The default constructor creates an empty ExportXMLOptionsKit object.

HPS::Exchange::ExportXMLOptionsKit::ExportXMLOptionsKit ( ExportXMLOptionsKit const &  in_kit)

The copy constructor creates a new ExportXMLOptionsKit object that contains the same settings as the source ExportXMLOptionsKit.

Parameters
in_kitThe source ExportXMLOptionsKit to copy.
HPS::Exchange::ExportXMLOptionsKit::ExportXMLOptionsKit ( ExportXMLOptionsKit &&  in_that)

The move constructor creates an ExportXMLOptionsKit by transferring the underlying object of the rvalue reference to this ExportXMLOptionsKit.

Parameters
in_thatAn rvalue reference to an ExportXMLOptionsKit to take the underlying object from.

Member Function Documentation

bool HPS::Exchange::ExportXMLOptionsKit::Empty ( ) const
virtual

Indicates whether this ExportXMLOptionsKit has any values set on it.

Returns
true if no values are set on this ExportXMLOptionsKit, false otherwise.

Reimplemented from HPS::Object.

bool HPS::Exchange::ExportXMLOptionsKit::Equals ( ExportXMLOptionsKit const &  in_kit) const

Check if the source ExportXMLOptionsKit is equivalent to this ExportXMLOptionsKit.

Parameters
in_kitThe source ExportXMLOptionsKit to compare to this ExportXMLOptionsKit.
Returns
true if the objects are equivalent, false otherwise.
static ExportXMLOptionsKit HPS::Exchange::ExportXMLOptionsKit::GetDefault ( )
static

Creates an ExportXMLOptionsKit which contains the default settings. The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default. These values will be used for import unless an option is overridden by the options passed to File::ExportXML.

Returns
An ExportXMLOptionsKit with the default settings.
HPS::Type HPS::Exchange::ExportXMLOptionsKit::ObjectType ( ) const
inlinevirtual

This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.

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

Reimplemented from HPS::Object.

bool HPS::Exchange::ExportXMLOptionsKit::operator!= ( ExportXMLOptionsKit const &  in_kit) const

Check if the source ExportXMLOptionsKit is not equivalent to this ExportXMLOptionsKit.

Parameters
in_kitThe source ExportXMLOptionsKit to compare to this ExportXMLOptionsKit.
Returns
true if the objects are not equivalent, false otherwise.
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::operator= ( ExportXMLOptionsKit const &  in_kit)

Copies the source ExportXMLOptionsKit into this ExportXMLOptionsKit.

Parameters
in_kitThe source ExportXMLOptionsKit to copy.
Returns
A reference to this ExportXMLOptionsKit.
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::operator= ( ExportXMLOptionsKit &&  in_that)

The move assignment operator transfers the underlying object of the rvalue reference to this ExportXMLOptionsKit.

Parameters
in_thatAn rvalue reference to an ExportXMLOptionsKit to take the underlying object from.
Returns
A reference to this ExportXMLOptionsKit.
bool HPS::Exchange::ExportXMLOptionsKit::operator== ( ExportXMLOptionsKit const &  in_kit) const

Check if the source ExportXMLOptionsKit is equivalent to this ExportXMLOptionsKit.

Parameters
in_kitThe source ExportXMLOptionsKit to compare to this ExportXMLOptionsKit.
Returns
true if the objects are equivalent, false otherwise.
void HPS::Exchange::ExportXMLOptionsKit::Set ( ExportXMLOptionsKit const &  in_kit)

Copies the source ExportXMLOptionsKit into this ExportXMLOptionsKit.

Parameters
in_kitThe source ExportXMLOptionsKit to copy.
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::SetMaterials ( bool  in_state)

Sets whether to export materials. This corresponds to the value that will be passed to A3DRWParamsExportXMLData::m_bExportColorMaterial.

Parameters
in_stateWhether to export materials.
Returns
A reference to this ExportXMLOptionsKit.
See also
Default value
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::SetMetadata ( bool  in_state)

Sets whether to export metadata. This corresponds to the value that will be passed to A3DRWParamsExportXMLData::m_bExportMetadata.

Parameters
in_stateWhether to export metadata.
Returns
A reference to this ExportXMLOptionsKit.
See also
Default value
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::SetTransformations ( bool  in_state)

Sets whether to export transformations. This corresponds to the value that will be passed to A3DRWParamsExportXMLData::m_bExportTransformations.

Parameters
in_stateWhether to export transformations.
Returns
A reference to this ExportXMLOptionsKit.
See also
Default value
void HPS::Exchange::ExportXMLOptionsKit::Show ( ExportXMLOptionsKit out_kit) const

Copies this ExportXMLOptionsKit into the given ExportXMLOptionsKit.

Parameters
out_kitThe ExportXMLOptionsKit to populate with the contents of this ExportXMLOptionsKit.
bool HPS::Exchange::ExportXMLOptionsKit::ShowMaterials ( bool &  out_state) const

Shows the material export setting.

Parameters
out_stateWhether to export materials.
Returns
true if a material export setting was specified, false otherwise.
bool HPS::Exchange::ExportXMLOptionsKit::ShowMetadata ( bool &  out_state) const

Shows the metadata export setting.

Parameters
out_stateWhether to export metadata.
Returns
true if a metadata export setting was specified, false otherwise.
bool HPS::Exchange::ExportXMLOptionsKit::ShowTransformations ( bool &  out_state) const

Shows the transformation export setting.

Parameters
out_stateWhether to export transformations.
Returns
true if a transformation export setting was specified, false otherwise.
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::UnsetEverything ( )

Removes all settings from this ExportXMLOptionsKit.

Returns
A reference to this ExportXMLOptionsKit.
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::UnsetMaterials ( )

Removes the material export setting.

Returns
A reference to this ExportXMLOptionsKit.
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::UnsetMetadata ( )

Removes the metadata export setting.

Returns
A reference to this ExportXMLOptionsKit.
ExportXMLOptionsKit& HPS::Exchange::ExportXMLOptionsKit::UnsetTransformations ( )

Removes the transformation export setting.

Returns
A reference to this ExportXMLOptionsKit.

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