#include "BinConverter.h"
/*!
// This function converts any char value that is passed to it to
// its binary representation, in ascii. Each binary digit is
// a char in a static array.
//
// \param value - the char that will be converted to binary ascii.
//
// \return pointer to the first ascii binary
// digit in the static array of chars.
*/
const unsigned char *BinConverter::CharToBin(char value)
{
/* C code here */
}
/*!
// This function converts a short integer to an ascii binary representation.
//
// \param value - a short that will be 'changed' by the function to its
// ascii binary equivalent.
//
// \return pointer to first ascii digit in static array
*/
const unsigned char *BinConverter::ShortToBin( short value )
{
/* C code here */
}
/*!
// Converts an integer value to a null-terminated string of ascii characters
// representing the binary interpretation of the integer value.
//
// \param value - the integer that will be converted.
//
// \return pointer to the first binary char in the static array.
*/
const unsigned char *BinConverter::IntToBin( int value )
{
/* C code here */
}
/*!
// This function's purpose mirrors that of the previous functions. This
// time, floats are being interpreted. This function calls the IntToBin
// function to do the work.
//
// \param value - the float value that will be converted to binary ascii
//
// \return pointer to the first ascii character in
// the static array of binary digits.
*/
const unsigned char *BinConverter::FloatToBin( float value )
{
/* C code here */
}
/*!
// This function interprets a double value as ascii binary, and
// stores that string of ascii characters into a static array.
//
// \param value - double that will be interpreted.
//
// \return pointer to first ascii binary character in the static array.
*/
const unsigned char *BinConverter::DoubleToBin( double value )
{
/* C code here */
}