Public Member Functions | List of all members
ecl::Converter< char *, bool > Class Reference

Fast conversion to text format with character strings. More...

#include <char_strings.hpp>

Inheritance diagram for ecl::Converter< char *, bool >:
Inheritance graph
[legend]

Public Member Functions

 Converter ()
 
char * operator() (const bool &input)
 
virtual ~Converter ()
 

Detailed Description

Fast conversion to text format with character strings.

Provides a fast conversion to text using character strings.

Unlike some of the numeric converters, this uses an internal character buffer as the output is of known lengths (outputs are either 'true' or 'false'). Ensure your converter does not go out of scope while using the character strings otherwise your character strings will end up pointing at rubbish.

See also
Converter

Definition at line 825 of file char_strings.hpp.

Constructor & Destructor Documentation

◆ Converter()

ecl::Converter< char *, bool >::Converter ( )
inline

Constructor that initialises with an internal buffer.

Definition at line 832 of file char_strings.hpp.

◆ ~Converter()

virtual ecl::Converter< char *, bool >::~Converter ( )
inlinevirtual

Reimplemented in ecl::Converter< char *, void >.

Definition at line 834 of file char_strings.hpp.

Member Function Documentation

◆ operator()()

char* ecl::Converter< char *, bool >::operator() ( const bool &  input)
inline

Converts a bool to a char string held in the converter's buffer.

Parameters
input: input value to be converted.
Returns
char* : output text string.

Definition at line 841 of file char_strings.hpp.


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


ecl_converters
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:25