OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
Loading...
Searching...
No Matches
CrowReturnable.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
crow_win.h
"
4
5
namespace
Utils
6
{
7
template
<
typename
T>
8
class
CrowReturnable
:
public
crow::returnable
9
{
10
public
:
11
CrowReturnable
(
const
T& t,
const
std::string& contentType)
12
: crow::returnable(contentType)
13
,
m_t
(t)
14
{}
15
16
protected
:
17
const
T&
m_t
;
18
19
// Inherited via returnable
20
std::string
dump
()
const override
;
21
22
virtual
std::string
to_string
()
const
= 0;
23
24
};
25
26
template
<
typename
T>
27
inline
std::string
CrowReturnable<T>::dump
()
const
28
{
29
return
to_string();
30
}
31
}
Utils::CrowReturnable
Definition
CrowReturnable.h:9
Utils::CrowReturnable::CrowReturnable
CrowReturnable(const T &t, const std::string &contentType)
Definition
CrowReturnable.h:11
Utils::CrowReturnable::dump
std::string dump() const override
Definition
CrowReturnable.h:27
Utils::CrowReturnable::to_string
virtual std::string to_string() const =0
Utils::CrowReturnable::m_t
const T & m_t
Definition
CrowReturnable.h:17
crow_win.h
Utils
Definition
ArchiveExtractor.cpp:15
Utils
CrowReturnable.h
Generated by
1.9.8