webserv/webserv/config/directive/IntDirective.cpp

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_;
}