28 lines
681 B
C++
28 lines
681 B
C++
#ifndef SCALARCONVERTER_HPP
|
|
#define SCALARCONVERTER_HPP
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <limits>
|
|
#include <iomanip>
|
|
|
|
class ScalarConverter
|
|
{
|
|
private:
|
|
ScalarConverter(void);
|
|
ScalarConverter(ScalarConverter const &src);
|
|
~ScalarConverter(void);
|
|
ScalarConverter &operator=(ScalarConverter const &rhs);
|
|
|
|
public:
|
|
void convert(const std::string& input);
|
|
|
|
static bool isChar(const std::string& input);
|
|
static bool isInt(const std::string& input);
|
|
static bool isFloat(const std::string& input);
|
|
static bool isDouble(const std::string& input);
|
|
void ScalarConverter::toChar(const std::string &input);
|
|
|
|
};
|
|
|
|
#endif |