Skip to main content

DPF C++ client library 2023 R2

ansys::dpf::OperatorSpecification Class Reference

Last update: 10.07.2023

#include <dpf_api.h>

Inheritance diagram for ansys::dpf::OperatorSpecification:
ansys::dpf::DpfTypes

Public Member Functions

 OperatorSpecification (OperatorSpecification const &)
 
 OperatorSpecification (OperatorSpecification &&)
 
OperatorSpecificationoperator= (OperatorSpecification const &)
 
OperatorSpecificationoperator= (OperatorSpecification &&)
 
std::vector< PinDefinitioninputPins () const
 
std::vector< PinDefinitionoutputPins () const
 
void setInputPins (std::vector< PinDefinition > const &pins)
 
void setOutputPins (std::vector< PinDefinition > const &pins)
 
std::string getDocumentation () const
 
void setDocumentation (std::string const &text)
 
std::string getProperty (std::string const &key) const
 
void setProperty (std::string const &key, std::string const &value)
 
std::vector< ConfigOptionSpecificationconfigOptions () const
 
void addSupportedConfigOption (std::string const &option_name, bool default_value, std::string const &documentation="")
 
void addSupportedConfigOption (std::string const &option_name, int default_value, std::string const &documentation="")
 
void addSupportedConfigOption (std::string const &option_name, double default_value, std::string const &documentation="")
 
- Public Member Functions inherited from ansys::dpf::DpfTypes
virtual bool empty () const
 
virtual std::string describe () const
 
so::API const * callAPI () const
 
bool isOnCommonAPI () const
 
bool getClient (Client &client) const
 
bool hasBeenMovedLocally () const
 
bool isSameObject (DpfTypes const &rhs) const
 

Detailed Description

Definition of a new operator.

See also
How-tos

Member Function Documentation

◆ addSupportedConfigOption() [1/3]

void ansys::dpf::OperatorSpecification::addSupportedConfigOption ( std::string const &  option_name,
bool  default_value,
std::string const &  documentation = "" 
)

Add a supported config option to the operator. @See OperatorConfig

Parameters
[in]option_name@See OperatorConfig::options.
[in]default_valueDefault value.
[in]documentationDescription of the config option. If nothing is specified default values will be looked for.

◆ addSupportedConfigOption() [2/3]

void ansys::dpf::OperatorSpecification::addSupportedConfigOption ( std::string const &  option_name,
double  default_value,
std::string const &  documentation = "" 
)

Add a supported config option to the operator. @See OperatorConfig

Parameters
[in]option_name@See OperatorConfig::options.
[in]default_valueDefault value.
[in]documentationDescription of the config option. If nothing is specified default values will be looked for.

◆ addSupportedConfigOption() [3/3]

void ansys::dpf::OperatorSpecification::addSupportedConfigOption ( std::string const &  option_name,
int  default_value,
std::string const &  documentation = "" 
)

Add a supported config option to the operator. @See OperatorConfig

Parameters
[in]option_name@See OperatorConfig::options.
[in]default_valueDefault value.
[in]documentationDescription of the config option. If nothing is specified default values will be looked for.

◆ configOptions()

std::vector< ConfigOptionSpecification > ansys::dpf::OperatorSpecification::configOptions ( ) const

Gets the currently defined configuration options specifications.

Returns
Vector of operator configuration option specifications.

◆ getDocumentation()

std::string ansys::dpf::OperatorSpecification::getDocumentation ( ) const
Returns
Description of operator.

◆ getProperty()

std::string ansys::dpf::OperatorSpecification::getProperty ( std::string const &  key) const
Returns
Operator property given by key.
Parameters
[in]keyKey of property to get.

◆ inputPins()

std::vector< PinDefinition > ansys::dpf::OperatorSpecification::inputPins ( ) const

Gets the currently defined input pins of the operator.

Returns
Vector of input pin definitions.

◆ outputPins()

std::vector< PinDefinition > ansys::dpf::OperatorSpecification::outputPins ( ) const

Gets the currently defined output pins of the operator.

Returns
Vector of output pin definitions.

◆ setDocumentation()

void ansys::dpf::OperatorSpecification::setDocumentation ( std::string const &  text)

Sets the description of operator.

Parameters
[in]textString describing the operator.

◆ setInputPins()

void ansys::dpf::OperatorSpecification::setInputPins ( std::vector< PinDefinition > const &  pins)

Sets the input pin definitions of the operator.

Parameters
[in]pinsVector of input pins.

◆ setOutputPins()

void ansys::dpf::OperatorSpecification::setOutputPins ( std::vector< PinDefinition > const &  pins)

Sets the output pin definitions of the operator.

Parameters
[in]pinsVector of input pins.

◆ setProperty()

void ansys::dpf::OperatorSpecification::setProperty ( std::string const &  key,
std::string const &  value 
)

Set property for given key.

Parameters
[in]keyKey for which to set property.
[in]valueProperty value.