    

 ## On this page

  

 

 # ansys::dpf::CustomContainerBase Class Reference

 Last update: 16.07.2025 

Allows you to define your own containers by deriving from this class. [More...](classansys_1_1dpf_1_1CustomContainerBase.xhtml#details)

`#include <dpf_api.h>`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [CustomContainerBase](classansys_1_1dpf_1_1CustomContainerBase.xhtml#ab2649202d9da1730e164634a4d864f3e) (std::string const &amp;class\_name)  [CustomContainerBase](classansys_1_1dpf_1_1CustomContainerBase.xhtml#ae7229c52821828cec4fca9dce836ee55) (std::string const &amp;class\_name, GenericDataContainer const &amp;[container](classansys_1_1dpf_1_1CustomContainerBase.xhtml#a8a2b9ee5ce0d8b7594f6fc251e5a556e)) GenericDataContainer [container](classansys_1_1dpf_1_1CustomContainerBase.xhtml#a8a2b9ee5ce0d8b7594f6fc251e5a556e) () GenericDataContainer const &amp; [container](classansys_1_1dpf_1_1CustomContainerBase.xhtml#a92893ff58ddca6339079f1a7299d2a9c) () const std::string [describe](classansys_1_1dpf_1_1CustomContainerBase.xhtml#a65a8a6f6585ddf80c7e0dfdf9b9c50f5) () const <a id="a1ba98abe5c74497c829744f302de3cb5" name="a1ba98abe5c74497c829744f302de3cb5"></a>std::vector&lt; std::string &gt; **getAttributeNames** () const <a id="details" name="details"></a>## Detailed Description

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

For the custom class deriving from [CustomContainerBase](classansys_1_1dpf_1_1CustomContainerBase.xhtml "Allows you to define your own containers by deriving from this class.") 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 &amp; Destructor Documentation

<a id="ab2649202d9da1730e164634a4d864f3e" name="ab2649202d9da1730e164634a4d864f3e"></a>## [◆ ](#ab2649202d9da1730e164634a4d864f3e)CustomContainerBase() \[1/2\]

 ansys::dpf::CustomContainerBase::CustomContainerBase  ( std::string const &amp;  *class\_name*) 

Parameters \[in\]class\_nameName of the custom class in camel case format. Will be used to print the instance. 



<a id="ae7229c52821828cec4fca9dce836ee55" name="ae7229c52821828cec4fca9dce836ee55"></a>## [◆ ](#ae7229c52821828cec4fca9dce836ee55)CustomContainerBase() \[2/2\]

 ansys::dpf::CustomContainerBase::CustomContainerBase  ( std::string const &amp;  *class\_name*,    GenericDataContainer const &amp;  *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

<a id="a8a2b9ee5ce0d8b7594f6fc251e5a556e" name="a8a2b9ee5ce0d8b7594f6fc251e5a556e"></a>## [◆ ](#a8a2b9ee5ce0d8b7594f6fc251e5a556e)container() \[1/2\]

 GenericDataContainer ansys::dpf::CustomContainerBase::container  ( ) 

ReturnsThe internal container. 



<a id="a92893ff58ddca6339079f1a7299d2a9c" name="a92893ff58ddca6339079f1a7299d2a9c"></a>## [◆ ](#a92893ff58ddca6339079f1a7299d2a9c)container() \[2/2\]

 GenericDataContainer const &amp; ansys::dpf::CustomContainerBase::container  ( )  const

ReturnsThe internal container. 



<a id="a65a8a6f6585ddf80c7e0dfdf9b9c50f5" name="a65a8a6f6585ddf80c7e0dfdf9b9c50f5"></a>## [◆ ](#a65a8a6f6585ddf80c7e0dfdf9b9c50f5)describe()

 std::string ansys::dpf::CustomContainerBase::describe  ( )  const

ReturnsDescription of object.