CPP06
1.0
読み取り中…
検索中…
一致する文字列を見つけられません
ScalarConverter.hpp
[詳解]
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ScalarConverter.hpp :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2025/07/22 14:22:35 by kamitsui #+# #+# */
9
/* Updated: 2025/07/23 01:18:01 by kamitsui ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
18
#ifndef SCALARCONVERTER_HPP
19
#define SCALARCONVERTER_HPP
20
21
#include <
string
>
22
29
class
ScalarConverter
{
30
public
:
31
static
void
convert
(
const
std::string
&literal);
32
33
private
:
34
// Private members to prevent instantiation.
35
ScalarConverter
();
36
ScalarConverter
(
const
ScalarConverter
&src);
37
ScalarConverter
&operator=(
const
ScalarConverter
&rhs);
38
~ScalarConverter
();
39
};
40
41
#endif
std::string
ScalarConverter
A static class to convert string literals to scalar types.
Definition
ScalarConverter.hpp:29
ScalarConverter::convert
static void convert(const std::string &literal)
The main conversion method.
Definition
ScalarConverter.cpp:177
string
ex00
ScalarConverter.hpp
構築:
1.9.8