Webserv
Loading...
Searching...
No Matches
ConcatenatedValue.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "IArgument.hpp"
5
6namespace config {
7
9public:
14
15 void add(IArgument *arg);
16 std::string evaluate(http::Request const &ctx) const;
18 std::string getRawValue() const;
19 IArgument *clone() const;
20
21private:
22 std::vector<ArgumentPtr> variables_;
23};
24
25} // namespace config
Definition ConcatenatedValue.hpp:8
std::vector< ArgumentPtr > variables_
Definition ConcatenatedValue.hpp:22
ArgumentType getType() const
Definition ConcatenatedValue.hpp:17
IArgument * clone() const
Definition ConcatenatedValue.cpp:56
~ConcatenatedValue()
Definition ConcatenatedValue.cpp:7
ConcatenatedValue()
Definition ConcatenatedValue.hpp:10
void add(IArgument *arg)
Definition ConcatenatedValue.cpp:13
std::string getRawValue() const
Definition ConcatenatedValue.cpp:47
ConcatenatedValue & operator=(const ConcatenatedValue &other)
Definition ConcatenatedValue.cpp:25
std::string evaluate(http::Request const &ctx) const
Definition ConcatenatedValue.cpp:38
Definition IArgument.hpp:13
Definition Request.hpp:66
Definition ArgumentFactory.hpp:5
ArgumentType
Definition IArgument.hpp:11
@ ARG_CONCATENATED
Definition IArgument.hpp:11