preCICE v3.1.2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
precice::utils::StringMaker< MAX > Class Template Reference

Utility class to build a string from C functions with output pointers and static maximum length. More...

#include <String.hpp>

Collaboration diagram for precice::utils::StringMaker< MAX >:
[legend]

Public Member Functions

 StringMaker ()
 
void clear ()
 
char * data ()
 
std::string str () const
 

Private Attributes

std::array< char, MAX+1 > _data
 

Detailed Description

template<int MAX>
class precice::utils::StringMaker< MAX >

Utility class to build a string from C functions with output pointers and static maximum length.

Definition at line 14 of file String.hpp.

Constructor & Destructor Documentation

◆ StringMaker()

template<int MAX>
precice::utils::StringMaker< MAX >::StringMaker ( )
inline

Definition at line 16 of file String.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

template<int MAX>
void precice::utils::StringMaker< MAX >::clear ( )
inline

Definition at line 21 of file String.hpp.

Here is the call graph for this function:

◆ data()

template<int MAX>
char * precice::utils::StringMaker< MAX >::data ( )
inline

Definition at line 26 of file String.hpp.

Here is the call graph for this function:

◆ str()

template<int MAX>
std::string precice::utils::StringMaker< MAX >::str ( ) const
inline

constructs a string from the buffer

The returned string ends at the fill NULL char.

Definition at line 35 of file String.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ _data

template<int MAX>
std::array<char, MAX + 1> precice::utils::StringMaker< MAX >::_data
private

Definition at line 41 of file String.hpp.


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