19 lines
569 B
C++
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_;
|
|
} |