Skip to main content

DPF C++ Client Library 2024 R1

ansys::dpf::CustomContainerBase Class Reference

Last update: 16.07.2025

Allows you to define your own containers by deriving from this class. More...

#include <dpf_api.h>

Public Member Functions

 CustomContainerBase (std::string const &class_name)
 
 CustomContainerBase (std::string const &class_name, GenericDataContainer const &container)
 
GenericDataContainer container ()
 
GenericDataContainer const & container () const
 
std::string describe () const
 
std::vector< std::string > getAttributeNames () const
 

Detailed Description

Allows you to define your own containers by deriving from this class.

For the custom class deriving from CustomContainerBase to be fully supported by DPF features (connection to Operator, remote access, multi languages API), all private attributes should registered into the GenericDataContainer held.

Constructor & Destructor Documentation

◆ CustomContainerBase() [1/2]

ansys::dpf::CustomContainerBase::CustomContainerBase ( std::string const &  class_name)
Parameters
[in]class_nameName of the custom class in camel case format. Will be used to print the instance.

◆ CustomContainerBase() [2/2]

ansys::dpf::CustomContainerBase::CustomContainerBase ( std::string const &  class_name,
GenericDataContainer const &  container 
)
Parameters
[in]class_nameName of the custom class in camel case format. Will be used to print the instance.
[in]containerInternal container holding all the attributes as properties.

Member Function Documentation

◆ container() [1/2]

GenericDataContainer ansys::dpf::CustomContainerBase::container ( )
Returns
The internal container.

◆ container() [2/2]

GenericDataContainer const & ansys::dpf::CustomContainerBase::container ( ) const
Returns
The internal container.

◆ describe()

std::string ansys::dpf::CustomContainerBase::describe ( ) const
Returns
Description of object.

Connect with Ansys