13 lines
272 B
C++
13 lines
272 B
C++
#include <webserv/config/directive/IntDirective.hpp> // for IntDirective
|
|
|
|
#include <any>
|
|
|
|
void IntDirective::parse(const std::string &value)
|
|
{
|
|
value_ = std::stoi(value); // TODO: check parsing
|
|
}
|
|
|
|
DirectiveValueType IntDirective::getValue() const
|
|
{
|
|
return value_;
|
|
} |