mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 16:57:16 +01:00
4a6bfc086c
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
#ifndef CPR_BODY_H
|
|
#define CPR_BODY_H
|
|
|
|
#include <initializer_list>
|
|
#include <string>
|
|
|
|
#include "cpr/cprtypes.h"
|
|
|
|
namespace cpr {
|
|
|
|
class Body : public StringHolder<Body> {
|
|
public:
|
|
Body() : StringHolder<Body>() {}
|
|
// NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
|
|
Body(const std::string& body) : StringHolder<Body>(body) {}
|
|
// NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
|
|
Body(std::string&& body) : StringHolder<Body>(std::move(body)) {}
|
|
// NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
|
|
Body(const char* body) : StringHolder<Body>(body) {}
|
|
Body(const char* str, size_t len) : StringHolder<Body>(str, len) {}
|
|
Body(const std::initializer_list<std::string> args) : StringHolder<Body>(args) {}
|
|
Body(const Body& other) = default;
|
|
Body(Body&& old) noexcept = default;
|
|
~Body() override = default;
|
|
|
|
Body& operator=(Body&& old) noexcept = default;
|
|
Body& operator=(const Body& other) = default;
|
|
};
|
|
|
|
} // namespace cpr
|
|
|
|
#endif
|