Maestro 0.3.11
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
RequestWorker.cpp File Reference
#include "../maestrolib/Interface.h"
#include <boost/json.hpp>
#include <cstdlib>
#include <iostream>
#include <iterator>
#include <memory>
#include <string>
Include dependency graph for RequestWorker.cpp:

Go to the source code of this file.

Typedefs

using Buffer = std::unique_ptr<char, decltype(&FreeResult)>

Functions

json::object Decode (char *pointer)
int main (int argc, char **argv)
void Output (const json::object &result, bool framed)
bool Success (const json::object &value)

Variables

constexpr size_t MaxRequest = 16 * 1024 * 1024

Typedef Documentation

◆ Buffer

using Buffer = std::unique_ptr<char, decltype(&FreeResult)>

Definition at line 14 of file RequestWorker.cpp.

Function Documentation

◆ Decode()

json::object Decode ( char * pointer)

Definition at line 24 of file RequestWorker.cpp.

References FreeResult().

Referenced by main().

◆ main()

◆ Output()

void Output ( const json::object & result,
bool framed )

◆ Success()

bool Success ( const json::object & value)

Definition at line 32 of file RequestWorker.cpp.

Referenced by main().

Variable Documentation

◆ MaxRequest

size_t MaxRequest = 16 * 1024 * 1024
constexpr

Definition at line 15 of file RequestWorker.cpp.

Referenced by main().