OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DataStorageResponse.h
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include <string>
4#include <bsoncxx/document/value.hpp>
5#include <bsoncxx/stdx/optional.hpp>
6#include <mongocxx/cursor.hpp>
8
9namespace DataStorageAPI
10{
12 {
13 public:
14 __declspec(dllexport) void UpdateDataStorageResponse(std::string result, bool success, std::string message);
15
16 __declspec(dllexport) std::string getResult() { return _result; }
17 __declspec(dllexport) void setResult(std::string result) { _result = result; };
18
19 __declspec(dllexport) std::string getMessage() { return _message; };
20 __declspec(dllexport) void setMessage(std::string message) { _message = message; };
21
22 __declspec(dllexport) bool getSuccess() { return _success; };
23 __declspec(dllexport) void setSuccess(bool success) { _success = success; };
24
25 __declspec(dllexport) bsoncxx::stdx::optional<bsoncxx::document::value> getBsonResult() { return _bsonResult; };
26 __declspec(dllexport) void setBsonResult(bsoncxx::stdx::optional<bsoncxx::document::value> value) { _bsonResult = value; };
27
28 __declspec(dllexport) std::string getFilePath() { return _filePath; };
29 __declspec(dllexport) void setFilePath(std::string filePath) { _filePath = filePath; };
30
31 __declspec(dllexport) int getInsertType() { return _insertType; };
32 __declspec(dllexport) void setInsertType(int insertType) { _insertType = insertType; };
33
34 private:
35 std::string _result;
36 bool _success;
37 std::string _message;
38 bsoncxx::stdx::optional<bsoncxx::document::value> _bsonResult;
39 std::string _filePath;
40 int _insertType;
41 };
42}
43
bsoncxx::types::value value
Definition DocumentManager.h:16
int result
Definition dllmain.cpp:82
Definition DataStorageResponse.h:12
__declspec(dllexport) void UpdateDataStorageResponse(std __declspec(dllexport) std
Definition DataStorageResponse.h:16
__declspec(dllexport) void setSuccess(bool success)
Definition DataStorageResponse.h:23
__declspec(dllexport) void setInsertType(int insertType)
Definition DataStorageResponse.h:32
__declspec(dllexport) int getInsertType()
Definition DataStorageResponse.h:31
__declspec(dllexport) bool getSuccess()
Definition DataStorageResponse.h:22
__declspec(dllexport) std
Definition DataStorageResponse.h:19
__declspec(dllexport) bsoncxx
Definition DataStorageResponse.h:25
__declspec(dllexport) void setFilePath(std
Definition DataStorageResponse.h:29
__declspec(dllexport) void setBsonResult(bsoncxx
Definition DataStorageResponse.h:26
__declspec(dllexport) void setResult(std
Definition DataStorageResponse.h:17
__declspec(dllexport) void setMessage(std
Definition DataStorageResponse.h:20
Definition ArrayBinaryConverter.h:3