cost 249 ms
oat++ String::loadFromFile 如何處理 `\0`

[英]how oat++ String::loadFromFile deal with `\0`

當我使用oatpp::String::loadFromFile()時,我想到了一個問題: loadFromFile如何處理\0 ? 我查找源代碼並找到二進制 mod 中的loadFromFile讀取文件,然后將文件數據轉換為char並構建一個oatpp::String object 返回。 如果文 ...

2022-10-25 15:03:31   1   15    oat++  
使用 QUERY 時出現編譯錯誤,如文檔中所述

[英]Compile error when using QUERY like in documentaion described

我正在關注文檔並在編譯以下示例時出錯: https://oatpp.io/docs/components/api-controller/#query-parameters-mapping Visual Studio 2017 抱怨 C2839:invalid return type 'type ' ...

2022-01-28 12:45:58   1   18    c++ / oat++  
如何將 C++ std::vector 設置為 OAT++ Vector

[英]How to set a C++ std::vector to OAT++ Vector

我從設備獲取矩陣數據 (float *),我可以將其轉換為 std::vector,並且我想將數據返回給調用者。 我將 DTO 定義為 在應用程序代碼中: 如何將 std::vector 或數組 (float *) 設置為 tempMatrix->MatrixData? 謝謝你。 ...

2021-11-11 12:02:36   1   9    oat++  
oat++ : 將 DTO 放入 DTO 列表中

[英]oat++ : put DTO in a list of DTOs

我正在嘗試從多個 DTO 創建一個大 DTO,但是將我的 DTO 放入列表時遇到了很多麻煩。 我有兩個 DTO: 這里的想法是一個文檔對象可以攜帶多個“TypeDoc”對象。 所以我嘗試創建一個 TypeDocDto 列表,然后將其添加到我的 DocumentDto 對象中。 但是我無法 ...

2021-10-27 13:50:21   1   18    c++ / dto / oat++  
無法使用其他 WebSocket 庫連接到 Oat++

[英]Can't connect to Oat++ with other WebSocket libraries

Oat++ 是否支持 RFC 6455 WebSocket 協議? 我試圖通過 js 從瀏覽器和QWebSocket (qt) 連接到 Oat++ WebSocket 服務器,但它們沒有連接。 ...

關於visual studio中第三方庫(oat++)配置的問題

[英]Questions about third-party library(oat++) configuration in visual studio

作為一個初學者,想在visual studio中使用oat++作為第三方庫,但是遇到了一些配置問題。 首先我下載了 oat++ 項目的源文件,並在 Visual Studio 和cmake中打開並install . 然后我在visual studio中新建了一個項目,開始運行官網的第一個例子。 首先 ...

錯誤發送錯誤 json 文檔

[英]Bug with sending incorrect json doc

我正在測試 example-crud 在我的項目中應用你的框架。 但是我注意到了一些錯誤。 我嘗試通過這種方式從發送的 json 中獲取值到 std::string 中: std::string test = userDto->userName->c_str(); UserDto 定義 ...

在 centos 7 上安裝 OAT++ 失敗

[英]OAT++ installation failed on centos 7

我嘗試安裝 OAT++。 但是失敗了。 操作系統信息 如何解決以下錯誤? 我在 ubuntu 上成功安裝了 OAT++。 為什么在 centos 7 上安裝 OAT++ 失敗? ...

2020-10-28 04:32:50   1   53    oat++  
在 Endpoint 中使用 oatpp::Enum 作為路徑參數類型的正確方法是什么?

[英]What is the correct way to use oatpp::Enum as a path parameter type in Endpoint?

我正在使用 Oat++ 框架 ( https://oatpp.io/ ) 來構建 REST API。 我想管理用戶角色,並且我想要一個端點來更新用戶記錄的單個字段 - 用戶角色。 為了實現這一點,我創建了一個端點: 現在,我想驗證用戶角色是否具有正確的值。 具體來說,它的值屬於允許值的集合。 我 ...

2020-09-11 13:52:01   1   266    c++ / oat++  
使用 oatpp 發送請求負載

[英]sending request payload with oatpp

我是 oatpp 的初學者,正在構建一個 crud 操作演示應用程序。 我只想在 dto 中發送這四個屬性(id、name、email、salary)中的兩個以更改電子郵件服務,在請求有效負載中,如下所示: ...

2020-08-24 05:11:40   1   179    c++ / oat++  

排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM