OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
User.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <iostream>
4
#include <cstdint>
5
#include <iostream>
6
#include <vector>
7
#include <bsoncxx/json.hpp>
8
#include <bsoncxx/types.hpp>
9
#include <mongocxx/client.hpp>
10
#include <mongocxx/stdx.hpp>
11
#include <mongocxx/uri.hpp>
12
#include <mongocxx/instance.hpp>
13
#include <bsoncxx/builder/stream/helpers.hpp>
14
#include <bsoncxx/builder/stream/document.hpp>
15
#include <bsoncxx/builder/stream/array.hpp>
16
#include <bsoncxx/document/view.hpp>
17
18
19
class
User
20
{
21
22
public
:
23
User
(
const
bsoncxx::v_noabi::document::view& _userData)
24
{
25
username
= std::string(_userData[
"user_name"
].get_utf8().
value
.data());
26
userId
= std::string(_userData[
"user_id"
].get_utf8().
value
.data());
27
roleName
= std::string(_userData[
"user_role_name"
].get_utf8().
value
.data());
28
settingsCollectionName
= std::string(_userData[
"settings_collection_name"
].get_utf8().
value
.data());
29
}
30
User
() =
default
;
31
32
std::string
userId
=
""
;
33
std::string
username
=
""
;
34
std::string
settingsCollectionName
=
""
;
35
std::string
roleName
=
""
;
36
};
value
bsoncxx::types::value value
Definition
DocumentManager.h:16
User
Definition
User.h:20
User::settingsCollectionName
std::string settingsCollectionName
Definition
User.h:34
User::userId
std::string userId
Definition
User.h:32
User::User
User(const bsoncxx::v_noabi::document::view &_userData)
Definition
User.h:23
User::User
User()=default
User::roleName
std::string roleName
Definition
User.h:35
User::username
std::string username
Definition
User.h:33
Services
AuthorisationService
include
User.h
Generated by
1.10.0