webserv/webserv/config/directive/StringDirective.cpp
2025-09-26 18:10:41 +02:00

19 lines
569 B
C++

#include <webserv/config/directive/ADirective.hpp> // for ADirective
#include <webserv/config/directive/DirectiveValue.hpp> // for DirectiveValueType
#include <webserv/config/directive/StringDirective.hpp> // for IntDirective
StringDirective::StringDirective(const std::string &name, const std::string &value)
: ADirective(name) // NOLINT(bugprone-easily-swappable-parameters)
{
parse(value);
}
void StringDirective::parse(const std::string &value)
{
value_ = value;
}
DirectiveValueType StringDirective::getValueType() const
{
return value_;
}