AuxPort 0.2
Modules for Audio Software Development
Loading...
Searching...
No Matches
AuxPort::Casters Class Reference

This class provides functions to cast data from one type to another. More...

#include <AuxCaster.h>

Inheritance diagram for AuxPort::Casters:
AuxPort::String

Static Public Member Functions

static std::string toStdString (uint32 number)
 This casts a unsigned int32 to a std::string.
 
static std::string toStdString (double number)
 This casts a double to a std::string.
 
static std::string toStdString (long long number)
 This casts a long long to a std::string.
 
static int32 toInt (char value)
 This casts a numerical char to int32.
 
static char toChar (int32 value)
 This casts a int32 to char.
 
static double toDouble (const std::string &value)
 This casts a string to Double.
 
static long double toLongDouble (const std::string &value)
 This casts a string to a double-precision float.
 
static float toFloat (const std::string &value)
 This casts a std::string to a float.
 

Detailed Description

This class provides functions to cast data from one type to another.

Definition at line 101 of file AuxCaster.h.

Member Function Documentation

◆ toChar()

static char AuxPort::Casters::toChar ( int32 value)
inlinestatic

This casts a int32 to char.

Definition at line 177 of file AuxCaster.h.

◆ toDouble()

static double AuxPort::Casters::toDouble ( const std::string & value)
inlinestatic

This casts a string to Double.

Definition at line 183 of file AuxCaster.h.

◆ toFloat()

static float AuxPort::Casters::toFloat ( const std::string & value)
inlinestatic

This casts a std::string to a float.

Definition at line 214 of file AuxCaster.h.

◆ toInt()

static int32 AuxPort::Casters::toInt ( char value)
inlinestatic

This casts a numerical char to int32.

Definition at line 172 of file AuxCaster.h.

◆ toLongDouble()

static long double AuxPort::Casters::toLongDouble ( const std::string & value)
inlinestatic

This casts a string to a double-precision float.

Definition at line 199 of file AuxCaster.h.

◆ toStdString() [1/3]

static std::string AuxPort::Casters::toStdString ( double number)
inlinestatic

This casts a double to a std::string.

Definition at line 156 of file AuxCaster.h.

◆ toStdString() [2/3]

static std::string AuxPort::Casters::toStdString ( long long number)
inlinestatic

This casts a long long to a std::string.

Definition at line 164 of file AuxCaster.h.

◆ toStdString() [3/3]

static std::string AuxPort::Casters::toStdString ( uint32 number)
inlinestatic

This casts a unsigned int32 to a std::string.

Definition at line 138 of file AuxCaster.h.


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