Webserv
Loading...
Searching...
No Matches
Integer.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "IArgument.hpp"
4
5namespace config {
6
7class Integer : public IArgument {
8public:
9 explicit Integer(size_t val);
10 std::string evaluate(http::Request const &) const;
11 size_t getIntValue() const;
12 ArgumentType getType() const { return ARG_INTEGER; }
13 std::string getRawValue() const { return sValue_; }
14 IArgument *clone() const { return new Integer(*this); }
15
16private:
17 size_t iValue_;
18 std::string sValue_;
19};
20
21} // namespace config
Definition IArgument.hpp:13
size_t getIntValue() const
Definition Integer.cpp:8
IArgument * clone() const
Definition Integer.hpp:14
std::string evaluate(http::Request const &) const
Definition Integer.cpp:7
std::string getRawValue() const
Definition Integer.hpp:13
ArgumentType getType() const
Definition Integer.hpp:12
size_t iValue_
Definition Integer.hpp:17
std::string sValue_
Definition Integer.hpp:18
Integer(size_t val)
Definition Integer.cpp:6
Definition Request.hpp:66
Definition ArgumentFactory.hpp:5
ArgumentType
Definition IArgument.hpp:11
@ ARG_INTEGER
Definition IArgument.hpp:11