OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
BsonValuesHelper.h
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include <string>
4#include <bsoncxx/types/value.hpp>
5
6using value = bsoncxx::types::value;
7
8namespace DataStorageAPI
9{
10 class __declspec(dllexport) BsonValuesHelper
11 {
12 public:
13 static value getInt32BsonValue(int32_t value);
14 static int32_t getInt32FromBsonValue(value value);
15
16 static value getInt64BsonValue(int64_t value);
17 static int64_t getInt64FromBsonValue(value value);
18
19 static value getStringValue(std::string value);
20 static std::string getStringFromBsonValue(value value);
21
22 static value getBoolValue(bool value);
23 static bool getBoolFromBsonValue(value value);
24
25 static value getDoubleValue(double value);
26 static double getDoubleFromBsonValue(value value);
27
28 static value getOIdValue(std::string value);
29 static std::string getOIdFromBsonValue(value value);
30
31 private:
32 BsonValuesHelper() = default;
33 };
34}
35
bsoncxx::types::value value
Definition DocumentManager.h:16
Definition ArrayBinaryConverter.h:3