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

Family of converters to character strings. More...

#include <char_strings.hpp>

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

Public Member Functions

 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
virtual ~Converter ()
 
- Public Member Functions inherited from ecl::Converter< char *, char >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const char &input)
 
- Public Member Functions inherited from ecl::Converter< char *, short >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const short &input)
 
- Public Member Functions inherited from ecl::Converter< char *, int >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const int &input)
 
- Public Member Functions inherited from ecl::Converter< char *, long >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const long &input)
 
- Public Member Functions inherited from ecl::Converter< char *, unsigned char >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const unsigned char &input)
 
- Public Member Functions inherited from ecl::Converter< char *, unsigned short >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const unsigned short &input)
 
- Public Member Functions inherited from ecl::Converter< char *, unsigned int >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const unsigned int &input)
 
- Public Member Functions inherited from ecl::Converter< char *, unsigned long >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const unsigned long &input)
 
- Public Member Functions inherited from ecl::Converter< char *, float >
 Converter (char *begin, char *end)
 Initialises with an external buffer. More...
 
 Converter (int buffer_size=250)
 Initialises with an internal buffer. More...
 
char * operator() (const float &input, const int &precision=-1)
 Convert the specified double to int. More...
 
- Public Member Functions inherited from ecl::Converter< char *, double >
 Converter (char *begin, char *end)
 Initialises with an external buffer. More...
 
 Converter (int buffer_size=250)
 Initialises with an internal buffer. More...
 
char * operator() (const double &input, const int &precision=-1)
 Convert the specified double to int. More...
 
- Public Member Functions inherited from ecl::Converter< char *, long long >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const long long &input)
 
- Public Member Functions inherited from ecl::Converter< char *, unsigned long long >
 Converter (char *begin, char *end)
 
 Converter (int buffer_size=250)
 
char * operator() (const unsigned long long &input)
 
- Public Member Functions inherited from ecl::Converter< char *, bool >
 Converter ()
 
char * operator() (const bool &input)
 

Detailed Description

Family of converters to character strings.

This groups all the character string converters of fundamental types into a single cohesive superclass. This is often more convenient, especially as each converter will utilise a single buffer. This is important if doing many different character string conversions in the same scope.

See also
Converter

Definition at line 860 of file char_strings.hpp.

Constructor & Destructor Documentation

◆ Converter() [1/2]

ecl::Converter< char *, void >::Converter ( char *  begin,
char *  end 
)
inline

Constructor that initialises with an external buffer.

Parameters
begin: character pointer that points to the start of the external buffer.
end: character pointer that points to the end of the external buffer.

Definition at line 883 of file char_strings.hpp.

◆ Converter() [2/2]

ecl::Converter< char *, void >::Converter ( int  buffer_size = 250)
inline

Constructor that initialises with an internal buffer.

Parameters
buffer_size: size of the buffer to create - if not supplied it initialises a buffer of size 250.
    @exception StandardException : throws if it failed to allocate memory for the internal buffer [debug mode only].

Definition at line 891 of file char_strings.hpp.

◆ ~Converter()

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

Reimplemented from ecl::Converter< char *, char >.

Definition at line 894 of file char_strings.hpp.


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


ecl_converters
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:09