OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Utils::JsonCrowReturnable< TJsonable > Class Template Reference

#include <JsonCrowReturnable.h>

Inheritance diagram for Utils::JsonCrowReturnable< TJsonable >:
[legend]
Collaboration diagram for Utils::JsonCrowReturnable< TJsonable >:
[legend]

Public Member Functions

 JsonCrowReturnable (const TJsonable &odbObject)
 
- Public Member Functions inherited from Utils::CrowReturnable< TJsonable >
 CrowReturnable (const TJsonable &t, const std::string &contentType)
 

Static Public Attributes

static constexpr const char * CONTENT_TYPE = "application/json"
 

Protected Member Functions

std::string to_string () const override
 
- Protected Member Functions inherited from Utils::CrowReturnable< TJsonable >
std::string dump () const override
 

Additional Inherited Members

- Protected Attributes inherited from Utils::CrowReturnable< TJsonable >
const TJsonable & m_t
 

Detailed Description

template<typename TJsonable>
class Utils::JsonCrowReturnable< TJsonable >

Definition at line 10 of file JsonCrowReturnable.h.

Constructor & Destructor Documentation

◆ JsonCrowReturnable()

template<typename TJsonable >
Utils::JsonCrowReturnable< TJsonable >::JsonCrowReturnable ( const TJsonable &  odbObject)
inline

Definition at line 13 of file JsonCrowReturnable.h.

Member Function Documentation

◆ to_string()

template<typename TJsonable >
std::string Utils::JsonCrowReturnable< TJsonable >::to_string ( ) const
inlineoverrideprotectedvirtual

Implements Utils::CrowReturnable< TJsonable >.

Definition at line 28 of file JsonCrowReturnable.h.

Member Data Documentation

◆ CONTENT_TYPE

template<typename TJsonable >
constexpr const char* Utils::JsonCrowReturnable< TJsonable >::CONTENT_TYPE = "application/json"
inlinestaticconstexpr

Definition at line 17 of file JsonCrowReturnable.h.


The documentation for this class was generated from the following file: