SMACC2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
cl_http::CbHttpRequestBase Class Reference

#include <cb_http_request.hpp>

Inheritance diagram for cl_http::CbHttpRequestBase:
Inheritance graph
Collaboration diagram for cl_http::CbHttpRequestBase:
Collaboration graph

Public Member Functions

 CbHttpRequestBase (const ClHttp::kHttpRequestMethod http_request_type)
 
template<typename TOrthogonal , typename TSourceObject >
void onOrthogonalAllocation ()
 
virtual void runtimeConfigure () override
 
virtual void onResponseReceived (const ClHttp::TResponse &response)
 
virtual void onEntry () override
 
virtual void onExit () override
 
- Public Member Functions inherited from smacc2::SmaccClientBehavior
void onEntry () override
 
void onExit () override
 
- Public Member Functions inherited from smacc2::ISmaccClientBehavior
 ISmaccClientBehavior ()
 
virtual ~ISmaccClientBehavior ()
 
ISmaccStateMachinegetStateMachine ()
 
std::string getName () const
 
template<typename SmaccClientType >
void requiresClient (SmaccClientType *&storage)
 
template<typename SmaccComponentType >
void requiresComponent (SmaccComponentType *&storage, bool throwExceptionIfNotExist=false)
 
virtual void executeOnEntry ()
 
virtual void executeOnExit ()
 

Private Attributes

const ClHttp::kHttpRequestMethod kRequestType
 
ClHttpcl_http_
 

Additional Inherited Members

- Protected Member Functions inherited from smacc2::ISmaccClientBehavior
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
ISmaccStategetCurrentState ()
 
virtual void dispose ()
 
virtual rclcpp::Node::SharedPtr getNode () const
 
virtual rclcpp::Logger getLogger () const
 

Detailed Description

Definition at line 30 of file cb_http_request.hpp.

Constructor & Destructor Documentation

◆ CbHttpRequestBase()

cl_http::CbHttpRequestBase::CbHttpRequestBase ( const ClHttp::kHttpRequestMethod  http_request_type)
inline

Definition at line 33 of file cb_http_request.hpp.

34 : kRequestType(http_request_type)
35 {
36 }
const ClHttp::kHttpRequestMethod kRequestType

Member Function Documentation

◆ onEntry()

virtual void cl_http::CbHttpRequestBase::onEntry ( )
inlineoverridevirtual

Reimplemented from smacc2::ISmaccClientBehavior.

Definition at line 51 of file cb_http_request.hpp.

void makeRequest(const kHttpRequestMethod http_method, const std::string &path="/", const std::string &body="", const std::unordered_map< std::string, std::string > &headers={})

References cl_http_, kRequestType, and cl_http::ClHttp::makeRequest().

Here is the call graph for this function:

◆ onExit()

virtual void cl_http::CbHttpRequestBase::onExit ( )
inlineoverridevirtual

Reimplemented from smacc2::ISmaccClientBehavior.

Definition at line 53 of file cb_http_request.hpp.

53{}

◆ onOrthogonalAllocation()

template<typename TOrthogonal , typename TSourceObject >
void cl_http::CbHttpRequestBase::onOrthogonalAllocation ( )
inline

Definition at line 39 of file cb_http_request.hpp.

40 {
41 }

◆ onResponseReceived()

virtual void cl_http::CbHttpRequestBase::onResponseReceived ( const ClHttp::TResponse response)
inlinevirtual

Definition at line 49 of file cb_http_request.hpp.

49{}

Referenced by runtimeConfigure().

Here is the caller graph for this function:

◆ runtimeConfigure()

virtual void cl_http::CbHttpRequestBase::runtimeConfigure ( )
inlineoverridevirtual

Reimplemented from smacc2::ISmaccClientBehavior.

Definition at line 43 of file cb_http_request.hpp.

44 {
47 }
virtual void onResponseReceived(const ClHttp::TResponse &response)
boost::signals2::connection onResponseReceived(void(T::*callback)(const TResponse &), T *object)
void requiresClient(SmaccClientType *&storage)

References cl_http_, onResponseReceived(), cl_http::ClHttp::onResponseReceived(), and smacc2::ISmaccClientBehavior::requiresClient().

Here is the call graph for this function:

Member Data Documentation

◆ cl_http_

ClHttp* cl_http::CbHttpRequestBase::cl_http_
private

Definition at line 58 of file cb_http_request.hpp.

Referenced by onEntry(), and runtimeConfigure().

◆ kRequestType

const ClHttp::kHttpRequestMethod cl_http::CbHttpRequestBase::kRequestType
private

Definition at line 56 of file cb_http_request.hpp.

Referenced by onEntry().


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