26 #ifndef COMMON_RESULT_METHOD_RESULT_BUILDER_HPP
27 #define COMMON_RESULT_METHOD_RESULT_BUILDER_HPP
41 typedef std::shared_ptr<MethodResultBuilder>
Pointer;
45 virtual void setError(
const std::string& name,
const std::string& message) = 0;
46 virtual std::string
getID()
const = 0;
48 template<
typename Data>
49 void set(
const std::shared_ptr<Data>&
data)
56 virtual void setImpl(
const std::shared_ptr<void>&
data) = 0;
63 #endif // COMMON_RESULT_METHOD_RESULT_BUILDER_HPP
virtual std::string getID() const =0
virtual void setError(const std::string &name, const std::string &message)=0
virtual void setImpl(const std::shared_ptr< void > &data)=0
virtual ~MethodResultBuilder()
Definition: method-result-builder.hpp:43
Internal configuration helper.
An interface used to set a result to a method call.
Definition: method-result-builder.hpp:39
char data[368]
Definition: initctl.cpp:41
Helper for compile-time checking against existance of template method 'accept'.
Definition: is-visitable.hpp:49
void set(const std::shared_ptr< Data > &data)
Definition: method-result-builder.hpp:49
std::shared_ptr< MethodResultBuilder > Pointer
Definition: method-result-builder.hpp:41