-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used xrequest_context for execute_request
- Loading branch information
1 parent
6518c75
commit 364f0ee
Showing
13 changed files
with
205 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2024, Dr. Thorsten Beier | ||
* Distributed under the terms of the BSD 3-Clause License. * | ||
* * | ||
* The full license is in the file LICENSE, distributed with this software. * | ||
****************************************************************************/ | ||
|
||
#ifndef XEUS_REQUEST_CONTEXT_HPP | ||
#define XEUS_REQUEST_CONTEXT_HPP | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "xeus/xeus.hpp" | ||
#include "nlohmann/json.hpp" | ||
#include "xeus/xmessage.hpp" // for xmessage::guid_list | ||
#include "xeus/xserver.hpp" // for channel | ||
|
||
namespace nl = nlohmann; | ||
|
||
namespace xeus | ||
{ | ||
|
||
class XEUS_API xrequest_context{ | ||
public: | ||
using guid_list = xmessage::guid_list; | ||
xrequest_context(nl::json header, channel origin, guid_list id); | ||
const nl::json& header() const; | ||
channel origin() const; | ||
const guid_list& id() const; | ||
|
||
private: | ||
|
||
nl::json m_header; | ||
channel m_origin; | ||
guid_list m_id; | ||
|
||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.