birdbadge/src/response/badge.h
2023-04-18 13:16:36 -03:00

25 lines
513 B
C++

#pragma once
#include "response.h"
class Badge: public Response {
friend class Response;
public:
enum class Kind {
allStatic
};
~Badge() override;
void writeBody(std::ostream & out) const override;
void writeHeader(std::ostream & out) const override;
protected:
Badge(Kind kind, const std::string& title = "", const std::string& value = "", const std::string& color = "");
protected:
Kind kind;
std::string title;
std::string value;
std::string color;
};